diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 21:54:08 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 21:54:08 -0600 |
| commit | 87c6a0f8f822c57b4f63bc8bb099a33307871414 (patch) | |
| tree | badd8a2f1485c15280cdf7c64a167b9ffd0e47c5 /web/content/docs | |
| parent | c980daddaa17460a65fe1ce7511b680279381dc1 (diff) | |
| download | zash-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 'web/content/docs')
| -rw-r--r-- | web/content/docs/install.md | 5 | ||||
| -rw-r--r-- | web/content/docs/status.md | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/web/content/docs/install.md b/web/content/docs/install.md index 3b6d670..ffaeb08 100644 --- a/web/content/docs/install.md +++ b/web/content/docs/install.md @@ -24,9 +24,8 @@ make check # run the test suite against it make install # copy it into $(DESTDIR)$(BINDIR) ``` -`EDIT=libedit LDLIBS=-ledit` builds against libedit instead of the built-in -line editor. The default editor is compiled in and initialised only for an -interactive shell. +The line editor is compiled in, needs no library, and is initialised only +for an interactive shell. ## z/OS diff --git a/web/content/docs/status.md b/web/content/docs/status.md index 2c3b247..78a9fd6 100644 --- a/web/content/docs/status.md +++ b/web/content/docs/status.md @@ -9,7 +9,7 @@ description: What works on Linux and on z/OS today, and what is still from docum Feature-complete for a 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, `fc`, libedit optional). It builds +and vi modes, completion, history, `fc`). It builds warning-free with Clang as C23 and passes its suite plain, under ASan/UBSan and under Valgrind. |
