diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-23 11:50:17 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-23 11:50:17 -0600 |
| commit | b6574b2f3cb86d33d7e55985c7914dfce6dbf296 (patch) | |
| tree | 22449ab76bbe49bed35b5e6c54019d2802301d6a /tests/zos/fdmap.sh | |
| parent | 2161b3c2de4eec4cc5f28cbf683f25acd3c7dbef (diff) | |
| parent | a847b938b372995762c8ab581c0be521fd2e8bcb (diff) | |
| download | zash-docs/logo-and-clean.tar.gz | |
Merge origin/main into docs/logo-and-cleandocs/logo-and-clean
Resolutions: README.md and DESIGN.md keep the new colour logo
(packaging/zash-logo.svg) at width 220; the Makefile keeps main's newer
shellcheck header, lists `make docs` in the usage block, and `clean`
removes docs, cov and $(ZTOOLS) along with the branch's new tools.
Diffstat (limited to 'tests/zos/fdmap.sh')
| -rw-r--r-- | tests/zos/fdmap.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/zos/fdmap.sh b/tests/zos/fdmap.sh index c4f1679..b63a199 100644 --- a/tests/zos/fdmap.sh +++ b/tests/zos/fdmap.sh @@ -26,3 +26,8 @@ while [ $i -le 9 ]; do i=$((i + 1)) done /bin/sh -c 'echo "and closed again"' +# The map hands the child the shell's own pipe descriptors. They are +# close-on-exec (sys_pipe()), and spawn() keeps the flag, so a grandchild +# that execs would lose the pipe -- ps printed EDC5113I Bad file +# descriptor. The map must pass a duplicate without the flag. +/bin/sh -c 'exec /bin/echo survives exec' | /bin/cat |
