<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/Makefile, 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-28T03:48:42Z</updated>
<entry>
<title>fix(webdocs): make a script out of the page maker, and test it</title>
<updated>2026-11-28T03:48:42Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-28T03:48:42Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=1cb0581bd9e9ac62cc31f0efa39a70d405f699a9'/>
<id>urn:sha1:1cb0581bd9e9ac62cc31f0efa39a70d405f699a9</id>
<content type='text'>
make reads a `$` in a recipe as a variable reference, so the awk
program that stripped the logo, the author line and the contents list
arrived without its `$`, the README page came out empty and `make
webdocs` said nothing.  The page maker is now web/site-page.sh, which
also names the page after the document rather than after the path the
Makefile happened to pass, and tests/scripts/webdocs.sh checks the
result: front matter, no logo or contents list, links rewritten.
</content>
</entry>
<entry>
<title>tests: pin the CSI type byte in both character sets, and a gzip archive</title>
<updated>2026-11-27T23:59:16Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-27T23:59:16Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=1b00c3d4749038add86bb799d453f1bcd71b52af'/>
<id>urn:sha1:1b00c3d4749038add86bb799d453f1bcd71b52af</id>
<content type='text'>
The CSI entry type byte is converted from EBCDIC in an ASCII build and must
be used as it is in an EBCDIC build (notes/review-2026-11-27.md, item 12).
Nothing but Tab completion on z/OS reaches that code, so the test drives the
decoder directly: tests/tools/csi.c builds a work area with one data set, one
user catalog connector and one catalog entry, and asks csi_parse() for the
names.  On z/OS the Makefile builds it twice, once per character set, and
tests/zos/csi-parse.sh runs both; each prints a verdict, so one expectation
covers both builds.

tests/zos/tagging.sh gains the case the review asked for: a gzip archive
made through zash (with its stdout tagged and converting) must be byte for
byte the archive /bin/sh's redirect makes.  It is: gzip turns conversion off
for its own output, and the 1047 tag is the one /bin/sh leaves on this host
too (_BPXK_AUTOCVT=ON, _CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG)).
</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>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>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>Makefile: make zash on z/OS links the 64-bit build itself</title>
<updated>2026-11-25T19:15:47Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T19:15:47Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=5f085e9d33d0949f578cbc79e476269ed75594ee'/>
<id>urn:sha1:5f085e9d33d0949f578cbc79e476269ed75594ee</id>
<content type='text'>
exec-ing into make zos-ascii hung here with no child processes, and the
shell target is the same command line anyway.
</content>
</entry>
<entry>
<title>C23: constexpr internal linkage, naming and trailing commas; clangd at C23</title>
<updated>2026-11-25T18:52:38Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T18:52:38Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e569552eb9766bc663871b6f3cb203a77e83503c'/>
<id>urn:sha1:e569552eb9766bc663871b6f3cb203a77e83503c</id>
<content type='text'>
A constexpr at file scope has external linkage, so the CSI offsets and
CSI_MAX_CALLS now say static.  The naming check gets the C23 spellings
wrap the check itself: typed constants keep the macro case, and a local
static constexpr table keeps the variable case.  .clangd says -std=c23,
which it still did not, so the editor could not read constexpr at all.
</content>
</entry>
<entry>
<title>repo: drop patches/, move spec-pdf.sh out of scripts/</title>
<updated>2026-11-25T06:26:25Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=7a7320b6a0d7dd6864b708b7e74fb5032a5bdf8e'/>
<id>urn:sha1:7a7320b6a0d7dd6864b708b7e74fb5032a5bdf8e</id>
<content type='text'>
patches/ held one file, a byte-identical copy of LICENSE; no port
patches anything (ZOPEN_TYPE=LOCAL builds the checkout).  The single
script was the typst spec builder, which is a build step, so it lives
beside the other build machinery.
</content>
</entry>
</feed>
