<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/tests/zos/shareas.sh, 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-18T16:20:53Z</updated>
<entry>
<title>shareas test: wait for the child to appear in ps</title>
<updated>2026-11-18T16:20:53Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-18T16:20:53Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=697426954314bb2442396dc34a1299dbb1b857b6'/>
<id>urn:sha1:697426954314bb2442396dc34a1299dbb1b857b6</id>
<content type='text'>
spawn() returns before the child is registered, and under load the ps
in the next command found no process at all (FSUMA904), which made the
test report a failure that was really a race.  Look for the child up to
five times, and skip the test where it never appears.
</content>
</entry>
<entry>
<title>shareas test: inspect a non-sticky child directly</title>
<updated>2026-11-18T16:18:14Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-18T16:18:14Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=5dddcac9fdcab9b0170ec6087493babc72eff2af'/>
<id>urn:sha1:5dddcac9fdcab9b0170ec6087493babc72eff2af</id>
<content type='text'>
/bin/sh has the sticky bit on z/OS, so spawn() must give it a new
address space even with _BPX_SHAREAS=YES (documented by the z/OS C
runtime library).  The old test therefore reported a failure for both
zash and /bin/sh itself.  Spawn /bin/sleep instead, which is not sticky,
and ask ps for its address space id while it is alive.  This also
removes the temp-file workaround for the grandchild ps pipe problem.

The separate C spawn() probe confirms that envp is honoured regardless
of the caller's environment, as the runtime reference specifies; zash's
child receives the requested variable and address space.
</content>
</entry>
<entry>
<title>tests/zos/shareas: read the address space id from a file</title>
<updated>2026-11-18T14:12:20Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-18T14:12:20Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=41d748150d968e0641a7f77b42c10192b3ebb868'/>
<id>urn:sha1:41d748150d968e0641a7f77b42c10192b3ebb868</id>
<content type='text'>
ps cannot write to a pipe the shell created when it runs two spawns down
(issue #1), so the children write their id and the shell reads it back.
The fork case keeps a ps inside the subshell.
</content>
</entry>
<entry>
<title>zash: scripting core, test suite and benchmarks</title>
<updated>2026-11-12T17:42:49Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-12T17:42:49Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c3b270f82dd62a56e9d75cdd652c55a694a2da64'/>
<id>urn:sha1:c3b270f82dd62a56e9d75cdd652c55a694a2da64</id>
<content type='text'>
A clean-slate POSIX shell for z/OS UNIX in the Almquist tradition, written
in C23 for Clang (Linux) and IBM Open XL C/C++ (z/OS).

- Parser, expansion, arithmetic, redirection, traps and builtins.
- Spawn-first execution: fd plans instead of fork+dup2, in-shell pure
  builtins for pipelines and command substitution, $(a | b) without a
  subshell.
- Flat .POSIX Makefile; asan, valgrind, bench, compdb and z/OS targets.
- Tests: posix (dash-generated), zash, process accounting, linux, zos.

Nothing has been compiled or run on z/OS yet.
</content>
</entry>
</feed>
