<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git, branch bench/startup-rounds</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=bench%2Fstartup-rounds</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=bench%2Fstartup-rounds'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-26T03:25:47Z</updated>
<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>Merge pull request #36 from skurtz97/bench/compat-triage</title>
<updated>2026-11-26T03:22:24Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:22:24Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=1109062b7c8418026fc5461f81cd98632f5e5658'/>
<id>urn:sha1:1109062b7c8418026fc5461f81cd98632f5e5658</id>
<content type='text'>
bench: read the 28 differences from the host's sh</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>
<entry>
<title>Merge pull request #35 from skurtz97/bench/host-sh-compat</title>
<updated>2026-11-26T03:04:56Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:04:56Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=6ef928c4d698478997057b107076d65720cfbcdd'/>
<id>urn:sha1:6ef928c4d698478997057b107076d65720cfbcdd</id>
<content type='text'>
bench: measure zash against the sh this host has</content>
</entry>
<entry>
<title>bench: measure zash against the sh this host has</title>
<updated>2026-11-26T03:04:44Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:04:44Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=aa1a6d2179d4c1c139847aba0bb7675ce2e0b20f'/>
<id>urn:sha1:aa1a6d2179d4c1c139847aba0bb7675ce2e0b20f</id>
<content type='text'>
`compat.sh` runs every tests/posix script under zash and under another
shell, each in an empty directory, and prints the ones whose output or
status differ.  It is not a test: the .exp files are a reference shell's
output, and on z/OS /bin/sh is IBM's ksh-lineage shell with wording and
statuses of its own.  The count is how close a script naming #!/bin/sh
gets to its meaning here; the diffs say which differences to read.

On cbt, 10 of the 38 scripts agree and 28 differ, most of them on
diagnostics.
</content>
</entry>
<entry>
<title>Merge pull request #34 from skurtz97/web/spec-md</title>
<updated>2026-11-26T02:41:37Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:41:37Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b7e423db58e95a844b5bc4253f1eccb2745c7814'/>
<id>urn:sha1:b7e423db58e95a844b5bc4253f1eccb2745c7814</id>
<content type='text'>
web: the specification as a page, converted from typst's HTML</content>
</entry>
<entry>
<title>Merge pull request #33 from skurtz97/feat/prompt-width</title>
<updated>2026-11-26T02:41:27Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:41:27Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=31f697b4e619504ab894e064092528f7f73d565d'/>
<id>urn:sha1:31f697b4e619504ab894e064092528f7f73d565d</id>
<content type='text'>
interactive: a prompt's width counts columns, not bytes</content>
</entry>
<entry>
<title>web: the specification as a page, converted from typst's HTML</title>
<updated>2026-11-26T02:30:22Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:30:22Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=1101f029610080c53ac857a258c6b1b0b64c4b88'/>
<id>urn:sha1:1101f029610080c53ac857a258c6b1b0b64c4b88</id>
<content type='text'>
typst writes no markdown, so the site had the typeset HTML export and no
page that a reader could search or link into.  web/spec-md.py reduces the
export to what goldmark reads and hands it to pandoc, then puts back the
heading ids the spec cross-references itself by and carries the MathML
over untouched: browsers render it, so the page ships no TeX script.
`make docs` writes it with the other document pages, and the site stays
hand-written pages until someone runs that.
</content>
</entry>
<entry>
<title>interactive: a prompt's width counts columns, not bytes</title>
<updated>2026-11-26T02:30:22Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:30:22Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=deb0ed011fe2cfc7058facb3f63b7feaeb8d4a8e'/>
<id>urn:sha1:deb0ed011fe2cfc7058facb3f63b7feaeb8d4a8e</id>
<content type='text'>
The built-in editor skipped `ESC [ ...` sequences when working out where
the prompt ends.  Colour and titles are not all CSI: an OSC title or
hyperlink runs to BEL or `ESC \`, DCS runs the same way, and `tput sgr0`
is the three-byte `ESC ( B` before `ESC [ m`.  A prompt built with
`$(tput ...)` was measured wrong, which costs the cursor position and
with it the wrapped-line arithmetic.

`esc_seq_len()` in interact.c now walks what a terminal understands, and
edit_builtin.c uses it.  The libedit build shares the walk: it brackets
control runs for `EL_PROMPT_ESC`, and adds the space libedit needs when
a prompt ends in one, since libedit attaches a literal run to the
character after it.

bench/editor.py measures the two costs run.sh cannot see, start to first
prompt and per-key echo, on a pty; bench/README.md has the table.  The
release, z/OS and fuzz builds move to -O3 while the sanitizer and
coverage builds stay low: inlined frames make their reports harder to
read than the few percent they would gain.
</content>
</entry>
<entry>
<title>Merge pull request #32 from skurtz97/fix/zos-posix-make</title>
<updated>2026-11-26T02:26:31Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:26:31Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=456955dc33f24b1e9857bdc3c11788a2358e954c'/>
<id>urn:sha1:456955dc33f24b1e9857bdc3c11788a2358e954c</id>
<content type='text'>
z/OS: make zash and make parse under POSIX make again</content>
</entry>
</feed>
