diff options
Diffstat (limited to 'Test/D03procsubst.ztst')
-rw-r--r-- | Test/D03procsubst.ztst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst index 1e5cd9f6c..d68db35fa 100644 --- a/Test/D03procsubst.ztst +++ b/Test/D03procsubst.ztst @@ -167,5 +167,25 @@ print -rC1 -- $TMPPREFIX*(N) } 0f:external command with =(...) on LHS of pipeline cleans up its tempfiles +F:subshells including pipe LHS do not pass through zexit() # (Expected result: no output.) +# Confirm tempfile exists in the function, but not after exit + () { + local -x TMPPREFIX=$PWD/exit + $ZTST_testdir/../Src/zsh -fc ' + () { + print -rC1 -- $TMPPREFIX* + exit + } =(sleep 5) + ' + print -rC1 -- $TMPPREFIX*(N) + } +0:regression test: exit in shell function cleans up tempfiles +F:see preceding test +*>*.tmp/exit* + + print -u $ZTST_fd 'This test hangs the shell when it fails...' + true | false =(nosuchcommand$$) +1:regression test: race condition with pipe and procsubst +*?\(eval\):2: command not found: nosuchcommand* |