<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/tests/zos, 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-29T18:37:49Z</updated>
<entry>
<title>Remove host-specific references, add CI badge, and prepare 0.5.0-beta zopen buildenv</title>
<updated>2026-11-29T18:37:49Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-29T18:37:49Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=0014d37a6e3113dabc003e84cb2b0ba6bcb94b8c'/>
<id>urn:sha1:0014d37a6e3113dabc003e84cb2b0ba6bcb94b8c</id>
<content type='text'>
- Remove internal z/OS test-host name from notes/review-2026-11-27.md,
  web/layouts/home.html, and tests/zos/zosvars.{sh,exp} (making zosvars
  portable to any z/OS LPAR by comparing against live ZOS_SYSNAME).
- Add GitHub Actions CI status badge to README.md.
- Bump buildenv version to 0.5.0 with ZOPEN_STABLE_URL, ZOPEN_STABLE_TAG
  (v0.5.0-beta), ZOPEN_DEV_URL, and explicit empty ZOPEN_RUNTIME_DEPS.
</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>tests: expect what z/OS does, and keep the review notes</title>
<updated>2026-11-27T23:26:55Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-27T23:26:55Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=dd6cd0c897c36d62c0526df4f379ddc46f5c9f20'/>
<id>urn:sha1:dd6cd0c897c36d62c0526df4f379ddc46f5c9f20</id>
<content type='text'>
The host was verified with IBM make and IBM Open XL, in a copy of the tree
(`tar`, extract, `chtag -R -t -c ISO8859-1 .`, `/bin/make zos-check`):
plain `make` still dispatches to zos-ascii, both binaries build without a
warning, the ASCII suite is 112 passed / 6 skipped / 0 failed, and the
EBCDIC subset passes.

Two expectations cannot be the same on both hosts, so zash/script-errors
keeps the POSIX cases and is skipped on z/OS (a mode 000 script still runs
there, because bit mode does not decide access), and tests/zos/
script-errors records the z/OS side. notes/review-2026-11-27.md now has a
per-item status table, the investigation results and the z/OS run.
</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>docs: name the system by release, not by its hostname</title>
<updated>2026-11-25T05:14:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T05:14:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=44252281ec0044cc816f0b3c384e35cfe5dd8469'/>
<id>urn:sha1:44252281ec0044cc816f0b3c384e35cfe5dd8469</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test: keep child reports out of the leak comparison</title>
<updated>2026-11-24T22:28:51Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:27:23Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=8af98745d400735363a9b98165e73aca18523f7f'/>
<id>urn:sha1:8af98745d400735363a9b98165e73aca18523f7f</id>
<content type='text'>
A child inherits _CEE_DMPTARG and writes its own heap report, so the
substitution and the pipeline added a report per iteration: growth
measured 2 MB over 900 children, none of it zash's.  The forked
commands now turn heap checking off for themselves, and the test fails
if anything but one report came back.
</content>
</entry>
<entry>
<title>test: leak-check the spawn, redirection and pipeline paths too</title>
<updated>2026-11-24T22:25:02Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:25:02Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=1bdde91c6849114dcc65503f6a2325d22217c74b'/>
<id>urn:sha1:1bdde91c6849114dcc65503f6a2325d22217c74b</id>
<content type='text'>
The loop body had builtins only, so nothing but parsing, expansion and
variables was measured.  A substitution, a redirection, a forked
command and a pipeline per iteration put the storage those paths keep
under the same comparison.
</content>
</entry>
<entry>
<title>test: report leak checking as a verdict, not an exact figure</title>
<updated>2026-11-24T21:04:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T21:04:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e633a576ec28f4788f842273fc60adab6999b7dc'/>
<id>urn:sha1:e633a576ec28f4788f842273fc60adab6999b7dc</id>
<content type='text'>
The growth over 10x the work is 0 or 8 bytes depending on how the
environment copy lands on an 8-byte boundary, so printing it made the
expectation depend on the caller's environment.  Print the finding only
when the limit is exceeded; the reports in build/leaks keep the
numbers.
</content>
</entry>
<entry>
<title>test: fail when zash leaks under LE's heap checker</title>
<updated>2026-11-24T20:25:41Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T20:25:41Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e7e469d8f3c48852786468ceb668afe6517c37c2'/>
<id>urn:sha1:e7e469d8f3c48852786468ceb668afe6517c37c2</id>
<content type='text'>
HEAPCHK with a call depth and no per-call walk makes LE write the heap
storage diagnostics into a CEEDUMP at normal termination: every
allocation still live at exit, with the traceback that made it.  A
shell leaves working storage live on purpose, so the total says nothing
by itself; a leak shows as the total growing with the work done.

tests/zos/leak.sh therefore runs one builtin-only loop body at 100 and
1000 iterations in the same shell, sums the live bytes out of each
report, and fails if the second run is more than 2 KiB larger.

`make zos-leakcheck` is the target: it points _CEE_DMPTARG at
build/leaks and skips zash/limits, which recurses deep enough to run out
of storage under the checker.
</content>
</entry>
<entry>
<title>z/OS: keep a close-on-exec pipe out of the child's fd map</title>
<updated>2026-11-23T17:09:45Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-23T17:09:45Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=92fb4b12ac631ce5c794e5b5b29f204f34ab9e59'/>
<id>urn:sha1:92fb4b12ac631ce5c794e5b5b29f204f34ab9e59</id>
<content type='text'>
sys_pipe() duplicates the shell's pipe ends above SYS_NFD and marks them
FD_CLOEXEC, so that other children do not inherit them.  spawn()'s fd_map
hands the child the parent's descriptor as it is, without clearing the
flag the way dup2() would, so a mapping onto the child's 0..2 carried
FD_CLOEXEC into the child.  The child could still write, but the next
exec inside it lost stdout: ps printed

    FSUM6004 write error on standard output: EDC5113I Bad file descriptor

and a #!/bin/sh shim lost the pipe it was given.

Pass a plain duplicate, which fcntl F_DUPFD makes above SYS_NFD without
the flag, for every map entry that names a different descriptor, and
close the duplicates once spawn() has made the child.  Entries that map
a descriptor onto itself are untouched.

tests/zos/fdmap.sh records the case: a pipe the shell made, read by a
child that execs.

Reported in #1.
</content>
</entry>
</feed>
