diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2018-04-24 10:57:03 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-04-24 11:48:11 +0100 |
| commit | 95d861d0283e47c64980c844d66be44c6c4aad8a (patch) | |
| tree | a659a534c4876d51667e94e12b509145f0a7c3cf /Test | |
| parent | 42705: Another safety fix for pgrp reclaiming. (diff) | |
| download | zsh-95d861d0283e47c64980c844d66be44c6c4aad8a.tar zsh-95d861d0283e47c64980c844d66be44c6c4aad8a.tar.gz zsh-95d861d0283e47c64980c844d66be44c6c4aad8a.tar.bz2 zsh-95d861d0283e47c64980c844d66be44c6c4aad8a.tar.lz zsh-95d861d0283e47c64980c844d66be44c6c4aad8a.tar.xz zsh-95d861d0283e47c64980c844d66be44c6c4aad8a.tar.zst zsh-95d861d0283e47c64980c844d66be44c6c4aad8a.zip | |
42708: fix for process substitution.
Don't close associated file descriptors in the closem()
tidy up function as they should remain visible to external
processes. Override if about to exit.
Unit test for the failing case: note this relies on the
existence of /proc/self/fd or equivalent.
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/D03procsubst.ztst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst index ca8d56ff5..1ef55821b 100644 --- a/Test/D03procsubst.ztst +++ b/Test/D03procsubst.ztst @@ -149,3 +149,10 @@ fi 0:proc subst fd in forked subshell closed in parent (external command) >1 1 + + procfunc() { + cat <(cat "$@") + } + procfunc <(echo argument) +0:With /proc/self file descriptors must not be tidied up too early +>argument |
