<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/tests/zos/security.exp, branch docs/readme-current</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=docs%2Freadme-current</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=docs%2Freadme-current'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-19T00:13:38Z</updated>
<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>
<entry>
<title>Readme icon and contents, a security test, realistic bench scripts</title>
<updated>2026-11-19T00:10:36Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T00:10:36Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b0f3aacedd6d1ebacbc774767611cdef0ac6761c'/>
<id>urn:sha1:b0f3aacedd6d1ebacbc774767611cdef0ac6761c</id>
<content type='text'>
README.md shows the shell's icon on a light or dark background, has a
table of contents, and says C17 rather than C11 (the tree has built C17
since b4d6bf1).

tests/zos/security.sh is the security-relevant half of the suite: a file
created by redirection or mkdir takes the umask, a redirect into a
directory without write permission fails, the current directory is not
searched for a command, ENV is not read by a non-interactive shell, and
neither an expansion nor a file name is re-parsed.

bench/report.sh counts a generated log by level and hour, and
bench/deploy.sh renders and verifies 100 configs from a template. Both
are realistic scripts and both are compared for output against other
shells by bench/run.sh, so they fail as tests as well as being timed.
</content>
</entry>
</feed>
