<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/DESIGN.md, branch main</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=main</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-28T06:58:45Z</updated>
<entry>
<title>docs(design): list base#number with the extensions</title>
<updated>2026-11-28T06:58:45Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-28T06:58:45Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=6fe2aff8d6611bf45704ba86120efa23950bfa80'/>
<id>urn:sha1:6fe2aff8d6611bf45704ba86120efa23950bfa80</id>
<content type='text'>
parse_based() now reads bases up to 64 with the bash/ksh93 digit set, and
refuses a base out of range or a number that overflows, so the extension
table and the specification (R-ARI-8) say the same thing.
</content>
</entry>
<entry>
<title>docs: zash is the successor to IBM's ksh88 /bin/sh</title>
<updated>2026-11-28T03:48:49Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-28T03:48:49Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=25e4830211e9810f1e2252219b8bd48ca59f401c'/>
<id>urn:sha1:25e4830211e9810f1e2252219b8bd48ca59f401c</id>
<content type='text'>
The shell it replaces is not a different language: it is of the
KornShell line, and a script written for it runs under zash.  Say that
where the documents used to imply the opposite -- "the dash of z/OS",
"the z/OS /bin/sh's semantics are not emulated" -- and sort what is
left into places where IBM departs from POSIX (zash follows POSIX) and
the few ksh88 features zash declines.
</content>
</entry>
<entry>
<title>docs: the tagging rule as the code does it, and input errors in the spec</title>
<updated>2026-11-27T23:59:21Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-27T23:59:21Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=8b4a1936d952dd43929c430e18d4e29f1f91d6b6'/>
<id>urn:sha1:8b4a1936d952dd43929c430e18d4e29f1f91d6b6</id>
<content type='text'>
DESIGN.md's "File tags" table said an ASCII build defers the tag on a `&gt;`
target and takes the first writer's CCSID; sys_zos.c tags a file the shell
creates as IBM-1047 text and converts its own writes, and the paragraph "the
tag follows the writer" now says that deferred tags are the _TAG_REDIR_*
cases only.  The shell's own stdout and stderr are in the table now, and the
reason the inherited conversion is harmless to a binary writer (gzip turns it
off, and tests/zos/tagging.sh checks the archive) is written down.

The specification records what a script reviewer needs: R-LEX-17 no longer
just ends the body at end of input, it says zash does not warn where bash
does, and the new zash-only error rule gives 127/126 for a script that cannot
be opened and 2 for a read error while input is being read.  The PDF is
regenerated.
</content>
</entry>
<entry>
<title>design: state the zopen 819 rule, not a retagging recipe</title>
<updated>2026-11-27T20:25:32Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-27T20:25:32Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=bbd928110bd50b6694fb71d569f9f345632e7e7e'/>
<id>urn:sha1:bbd928110bd50b6694fb71d569f9f345632e7e7e</id>
<content type='text'>
The paragraph said to tag UTF-8 files ISO8859-1 and advised chtag -tc
UTF-8, which is neither what the repository does nor what zopen wants: it
codes to CCSID 819, has git check text out tagged ISO8859-1, and lists
the files whose text Latin-1 cannot hold as UTF-8 exceptions in
.gitattributes.  It also put a euro sign in a file declared ISO8859-1.
</content>
</entry>
<entry>
<title>design: say who converts character sets, and who does not</title>
<updated>2026-11-27T20:13:13Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-27T20:13:13Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=bac2a313fa3517e4777672492e2658cebd5a5b59'/>
<id>urn:sha1:bac2a313fa3517e4777672492e2658cebd5a5b59</id>
<content type='text'>
zash copies bytes; on z/OS the runtime converts between a tagged file
and the program, and the ASCII build turns that on for itself.  The
line editor is the one place that looks at encoding: it keeps UTF-8
continuation bytes with their character, and does not measure
double-width text.

This is the paragraph missing from the questions about `cat` printing
mojibake from a checkout whose files are tagged ISO8859-1.
</content>
</entry>
<entry>
<title>web: a design pass, and documents that stand on their own</title>
<updated>2026-11-27T20:09:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-27T20:09:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=f49e1d77a2ebbd69d225e53197d1f0acfbc5d83b'/>
<id>urn:sha1:f49e1d77a2ebbd69d225e53197d1f0acfbc5d83b</id>
<content type='text'>
The home page drops the feature-card grid for a numbered spec sheet and a
full-width measured transcript.  The docs pages get three columns on a
wide screen - sections, text, and the page's own headings - with a rule
that runs the height of the text, and a row of section chips on a phone.
The hero carries the logo's periwinkle as a gradient and the grid of a
terminal screen, and the header a single lit hairline.

The generated README, Design and Specification pages no longer carry the
logo block, the byline, their own contents list or a second title: the
site header, the sidebar and the front matter do that.  Links between the
documents are page links, and the GitHub-only affordances (sidebar blob
links, "Edit this page") are gone.

The xlc compiler is no longer called legacy in README, DESIGN or status.
</content>
</entry>
<entry>
<title>interactive: one editor, no library</title>
<updated>2026-11-26T03:54:08Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:54:08Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=87c6a0f8f822c57b4f63bc8bb099a33307871414'/>
<id>urn:sha1:87c6a0f8f822c57b4f63bc8bb099a33307871414</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>interactive: completion works in the libedit build too</title>
<updated>2026-11-26T03:44:25Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:44:25Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=5364f98dff13a4bc9202a14bc5f9146436366039'/>
<id>urn:sha1:5364f98dff13a4bc9202a14bc5f9146436366039</id>
<content type='text'>
The libedit editor had no Tab binding at all, so the same line typed in
the two builds behaved differently: `myalias&lt;Tab&gt;` completed under the
built-in editor and ran the name as written under libedit. Completion is
not an editor feature here — it is the shell's, from complete.c — so the
boundary moves: complete.c now owns the escaping (`complete_escaped()`)
and the candidate listing (`complete_listing()`), and each editor only
inserts the result into its line.

For libedit that means a function bound to ^I: it deletes the word,
inserts the escaped candidate, finishes a unique one with a space and
asks for a full redraw (a tail-only refresh left the terminal showing a
line the shell did not have). Two things cost time to find: the binding
name is the editrc spelling `^I`, not a literal Tab, and EL_EDITOR has to
be set before EL_ADDFN/EL_BIND, because selecting an editor replaces the
key map and drops what was bound before.

$ZASH_EDITOR says which editor is compiled in. Keys, redraw and listings
are the editor's own — libedit reads ~/.editrc, and its redraw of a
prompt that starts with an OSC title leaves one space too many on the
screen — so the interactive tests that encode the built-in editor's
bindings and drawing skip under libedit, with a reason. i-complete, which
covers the completion both now share, passes under both.

tests/tools/ptydrive.py drops NUL bytes from what it compares: libedit
writes a run of them after "erase to end of line" when it redraws, and a
NUL puts nothing on a screen.

Built-in build: 97 passed, 1 skipped, 1 failed (linux/i-dscomplete, the
known local failure). libedit build: 6 passed, 7 skipped, 0 failed.
</content>
</entry>
<entry>
<title>bench: make the start-up number a minimum of interleaved rounds</title>
<updated>2026-11-26T03:25:47Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:25:47Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=ab003863f9a3eaf6099d560af64022b7bd7c2f2a'/>
<id>urn:sha1:ab003863f9a3eaf6099d560af64022b7bd7c2f2a</id>
<content type='text'>
startup.sh ran BENCH_N starts once, and on the shared z/OS machine the
same binary measured anywhere between 5 and 14 ms depending on the hour.

Now each cell is the fastest of BENCH_R rounds (default 5) of BENCH_N
starts, and a row's two columns are measured one after the other inside
each round, so `-c :` and `script` see the same load instead of one
following five rounds of the other. A minimum is the right summary
because contention only adds time.

Measured that way on cbt today, zash is 1.34 ms for `-c :` and 1.36 ms
for a script, and the z/OS sh 2.16 and 2.18 — the same two numbers
bench/README.md already claimed from a quieter machine, which is the
point: the method now reproduces them.

Also records the rule the ksh88 constraint implies: where zash and the
z/OS sh disagree, zash keeps the better behaviour unless a ksh88 script
could observe it, and the one such case — a failed redirection,
assignment or read being 2 rather than 1 — is accepted because POSIX
does not pin it and the shells disagree among themselves.
</content>
</entry>
<entry>
<title>bench: read the 28 differences from the host's sh</title>
<updated>2026-11-26T03:22:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:22:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=d9ea106455acb97d06607e74d5ec0bafb7ad3f6b'/>
<id>urn:sha1:d9ea106455acb97d06607e74d5ec0bafb7ad3f6b</id>
<content type='text'>
Every script that zash and the IBM sh disagree on has now been read. None
is a zash bug: zash matches dash on all 38 (that is what the suite says),
and the differences are the IBM shell's — it cannot do `[ a \&lt; b ]`, `fc`,
or arithmetic across a newline; it exits where `command eval` should only
set a status; it keeps literal quotes inside `${y:-"q r"}` and empty
fields from unquoted `$@`; its exit status is 1 for every failure.

The one row that is our choice is the status one: the ash family's 2 for
a failed redirection, which DESIGN.md already lists and this now records
in the table, so that a ksh script on z/OS testing `$?` against 1 is not
a surprise.
</content>
</entry>
</feed>
