<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git, branch fix/zos-spawn-fdmap</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=fix%2Fzos-spawn-fdmap</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=fix%2Fzos-spawn-fdmap'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-23T17:21:11Z</updated>
<entry>
<title>DESIGN: record what the z/OS run actually does now</title>
<updated>2026-11-23T17:21:11Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-23T17:21:11Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=46c97edd536ca5929a9b12470fc8ce091c6f8b57'/>
<id>urn:sha1:46c97edd536ca5929a9b12470fc8ce091c6f8b57</id>
<content type='text'>
The paragraph said two signal tests fail under zos-heapcheck and pass
under zos-check.  With the fd map fixed, zos-check is green in full, and
the heapcheck failure that remains is one intermittent case in
scripts/signals, which passes when run on its own.
</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>typst: fix some issues with formatting around code blocks.</title>
<updated>2026-11-20T22:09:52Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-20T22:09:52Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=5be3f32eb22382bfaac55b0c97e7678760872205'/>
<id>urn:sha1:5be3f32eb22382bfaac55b0c97e7678760872205</id>
<content type='text'>
</content>
</entry>
<entry>
<title>formal: moved all spec docs inside new formal directory for working on verification.</title>
<updated>2026-11-20T21:23:26Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-20T21:23:26Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=9a4999b36d8ae196367a6feb307657672074f840'/>
<id>urn:sha1:9a4999b36d8ae196367a6feb307657672074f840</id>
<content type='text'>
</content>
</entry>
<entry>
<title>added new benches, the logo, and a formal spec for possible verification.</title>
<updated>2026-11-20T21:21:12Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-20T21:21:12Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b3879f5179e4a130f9668600e905f4c26842f5b8'/>
<id>urn:sha1:b3879f5179e4a130f9668600e905f4c26842f5b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docs: say 31-bit, not below the bar</title>
<updated>2026-11-20T00:38:39Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-20T00:38:39Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b4d7dc383a513ef417f45fab0acb3ba6b8af0d45'/>
<id>urn:sha1:b4d7dc383a513ef417f45fab0acb3ba6b8af0d45</id>
<content type='text'>
"Below the bar" means below 16 MB, the 24-bit range.  IGGCSI00 needs
31-bit addresses, so the block has to stay below 2 GB -- two very
different limits.  Corrected where the two had been confused.
</content>
</entry>
<entry>
<title>z/OS: load IGGCSI00 once and keep the block for the shell</title>
<updated>2026-11-20T00:28:13Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-20T00:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=a37d3adca684abd6ccca77c58732515efde9dd76'/>
<id>urn:sha1:a37d3adca684abd6ccca77c58732515efde9dd76</id>
<content type='text'>
The search interface was reached through LINK, which asked the system to
find and attach the module on every call -- and completion issues a call
per Tab.  The glue now LOADs the module on the first call, writes its
entry point into the block, and branches to it directly afterwards, and
the block itself is taken from 31-bit storage on the first search and
kept, because IGGCSI00 is AMODE 31 and all three of its addresses have
to stay below 2 GB.

The block is declared packed, so the compiler cannot add padding the
assembler's offsets do not know about, and aligned(8), so the save area
starts on a doubleword.  Its name field is spelled in IBM-1047 bytes
rather than as a C string, so the module is named the same way whatever
character mode this build runs in.

Verified on the machine: SYS1.MA* returns SYS1.MACLIB, SYS1.* returns
135 names, and Tab in an interactive shell completes //'SYS1.MA to
//'SYS1.MACLIB' and lists the members of that PDS.
</content>
</entry>
<entry>
<title>README: the subshell row, from the run against ksh88</title>
<updated>2026-11-19T23:48:27Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T23:48:27Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e4e4fd1e2b84ad71ebc5187d099ea0f10bf88c2c'/>
<id>urn:sha1:e4e4fd1e2b84ad71ebc5187d099ea0f10bf88c2c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docs: the subshell row, and why a subshell can now skip its process</title>
<updated>2026-11-19T23:43:45Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T23:43:45Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=f1d4327ffac9572ab4fb0bbc0881285f42cbfc21'/>
<id>urn:sha1:f1d4327ffac9572ab4fb0bbc0881285f42cbfc21</id>
<content type='text'>
</content>
</entry>
</feed>
