summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-25 21:54:08 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-25 21:54:08 -0600
commit87c6a0f8f822c57b4f63bc8bb099a33307871414 (patch)
treebadd8a2f1485c15280cdf7c64a167b9ffd0e47c5 /README.md
parentc980daddaa17460a65fe1ce7511b680279381dc1 (diff)
downloadzash-editor/one-editor.tar.gz
interactive: one editor, no libraryeditor/one-editor
libedit was a compile-time alternative (`make EDIT=libedit`). It goes: FreeBSD and NetBSD `sh` use it because it is in their base system, which is not the case on z/OS, and it cost about a third of a millisecond to reach the prompt -- three more shared libraries, `el_init()`, an `~/.editrc` read and a copy of the history -- for the same cost per key. What it bought was `~/.editrc` bindings and a kill ring; `bind` and the built-in editor's own bindings cover the keys, and a second editor meant a second build mode and a second set of interactive expectations, with seven tests skipping under it. Everything that existed only to serve two editors goes with it: the `EDIT` switch and the two `edit_$(EDIT)` paths in the makefile, the `$ZASH_EDITOR` variable the tests used to skip, the skip guards in `tests/linux/`, the NUL stripping in `ptydrive.py` that libedit's redraw needed, and the parallel paragraphs in README.md, DESIGN.md, bench/README.md and the two website pages. `bench/README.md` keeps the measurement, since that is why the decision is written in DESIGN.md. Checked on Linux (97 passed, 1 skipped, the one known local failure in linux/i-dscomplete) and on z/OS (64 passed, 3 skipped, 0 failed, plus the EBCDIC build).
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/README.md b/README.md
index 64f5599..d66d126 100644
--- a/README.md
+++ b/README.md
@@ -58,9 +58,9 @@ It aims to be the dash of z/OS, but more usable interactively.
3. Interactive comfort that is free for scripts: job control, tab
completion for files and commands, history, emacs- and vi-style
editing. The keys are bash's, and `bind '^[[H'=beginning-of-line`
- moves one in the BSD shells' notation. A built-in editor is the
- default and libedit is a compile-time alternative. Neither is
- initialised by a non-interactive shell.
+ moves one in the BSD shells' notation. The editor is built in, with
+ no terminfo or curses dependency, and a non-interactive shell never
+ initialises it.
4. The Korn shell features z/OS scripts actually use: `print`,
`whence`, `typeset`, `function name { }`, `(( ))`, `let`, aliases.
They are accepted only where they cost other scripts nothing.
@@ -109,7 +109,6 @@ version. That stays the reference, and it is what Linux builds use.
```sh
make # Linux, clang, -std=c23
make zash # Linux: the same build, named exactly
-make EDIT=libedit LDLIBS=-ledit # use libedit, not the built-in editor
make check # run the test suite
make asan # build zash-asan (ASan + UBSan) and run the tests
make valgrind # run the tests under Valgrind
@@ -207,7 +206,7 @@ code in one small file. That is what makes the Linux tooling useful.
On Linux the shell is feature-complete for its first release: the
scripting core, the FreeBSD and Korn extensions, job control, and the
interactive layer (built-in editor with emacs and vi modes, completion,
-history and `fc`, libedit optional). It builds warning-free with Clang as
+history and `fc`). It builds warning-free with Clang as
C23 and passes its suite plain, under ASan/UBSan, and under Valgrind.
On z/OS it builds in both character modes with Open XL, 64-bit, passes