<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/tests/zos, branch chore/c23-nullptr-constexpr</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=chore%2Fc23-nullptr-constexpr</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=chore%2Fc23-nullptr-constexpr'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-25T05:14:17Z</updated>
<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>
<entry>
<title>z/OS: run 31-bit and load IGGCSI00 through the C library</title>
<updated>2026-11-23T17:09:32Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-23T17:09:32Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=d1ea4c7f4530e3d1d4689a9d20029a0c1a418df5'/>
<id>urn:sha1:d1ea4c7f4530e3d1d4689a9d20029a0c1a418df5</id>
<content type='text'>
zash was AMODE 64, so calling the AMODE 31 IGGCSI00 needed assembler
glue (zos_csi.s) that switched addressing mode around the branch.  Built
with -m32 the program is 31-bit itself: the call goes through a plain
function pointer, the work area and the saved registers live in one
31-bit block in C, and the glue is gone.

The rest of the tree follows the change: the build, the off-z/OS lint
shim, DESIGN.md and README.md, the benches, the Lean spec of the
pattern matcher, and the tests that recorded what the extra address bits
had changed.
</content>
</entry>
<entry>
<title>tests/zos/ebcdic: drop the external sort from the collation test</title>
<updated>2026-11-19T01:01:22Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T01:01:22Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=656fadb9631cdbc1a2a469bdff0acf39978420fb'/>
<id>urn:sha1:656fadb9631cdbc1a2a469bdff0acf39978420fb</id>
<content type='text'>
/bin/sort collates by the environment's collation, not by EBCDIC byte
order, so on z/OS it put the digits first and the test failed the first
time it ran in the EBCDIC build.  The shell's own ordering, which is what
the test is for, is checked above it.
</content>
</entry>
<entry>
<title>tests/zos/security: ask whether the redirect was refused, not how</title>
<updated>2026-11-19T00:13:38Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T00:13:38Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=8dfa69877bedafd6d5b83754252065ded33abb90'/>
<id>urn:sha1:8dfa69877bedafd6d5b83754252065ded33abb90</id>
<content type='text'>
zash exits 1 for a failed redirection on Linux and 2 on z/OS (the errno
is mapped differently there).  What the test is about is that the
command fails, not the number it fails with.
</content>
</entry>
<entry>
<title>tests/zos/security: set PATH, and drop the read-only directory check</title>
<updated>2026-11-19T00:11:41Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T00:11:41Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=1d7b0e126f6c7b5373c0dd405c3c986ebdbfb42e'/>
<id>urn:sha1:1d7b0e126f6c7b5373c0dd405c3c986ebdbfb42e</id>
<content type='text'>
z/OS profiles end PATH with a colon, which POSIX reads as the current
directory, so the PATH check passed for the wrong reason there.  The
ZFS test also let the owner create files in a directory it had just
chmod'ed 500, so that check proved nothing on the machine it was written
for.  A redirection into a missing directory tests the same error path
and is refused everywhere.
</content>
</entry>
</feed>
