<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git, branch bench/compat-triage</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%2Fcompat-triage</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=bench%2Fcompat-triage'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-26T03:22:07Z</updated>
<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>
<entry>
<title>z/OS: make zash and make parse under POSIX make again</title>
<updated>2026-11-26T02:24:20Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:24:14Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=67182597f827a0c9c258eadb1b13a96637fe44d0'/>
<id>urn:sha1:67182597f827a0c9c258eadb1b13a96637fe44d0</id>
<content type='text'>
b786aac put a GNU conditional inside the zash rule.  z/OS /bin/make is
IBM POSIX make: it has no ifeq and no $(shell), so plain make and make
zash both stopped at line 124 with FSUM8232 before any target ran.

The rule also required $(OBJS), and that names src/sys_posix.o, which
uses posix_spawn and does not compile on z/OS.  The prerequisites are now
the sources; on Linux they are newer than the objects exactly when
zash-posix has work, so the delegation is a no-op once built.

The new test pins ZOS_SYSNAME and ZOS_SYSPLEX against sysvar(1), and the
shape of ZOS_RELEASE, ZOS_ASID and ZOS_JOBNAME, whose values belong to
the one process.  zos-lint now rejects GNU-only make syntax, so a
conditional cannot come back unnoticed.
</content>
</entry>
<entry>
<title>Merge pull request #29 from skurtz97/chore/c23-idioms</title>
<updated>2026-11-25T21:44:24Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T21:44:24Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=0ebef9da03f1952e8d0189a48cd7b946a7369f4f'/>
<id>urn:sha1:0ebef9da03f1952e8d0189a48cd7b946a7369f4f</id>
<content type='text'>
C23 idioms, 64-bit default link, script charset; docs at the new numbers</content>
</entry>
</feed>
