diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-12-13 10:36:59 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-12-13 10:36:59 +0000 |
commit | 1869eeb393e2499e9949cc3458cdd74685342540 (patch) | |
tree | f896416f82e80f5b57787dda4195354531aebcf5 /Test/C03traps.ztst | |
parent | 431c22024d8af440ca4b79ce951896f3bcd0d7cc (diff) | |
download | zsh-1869eeb393e2499e9949cc3458cdd74685342540.tar.gz zsh-1869eeb393e2499e9949cc3458cdd74685342540.tar.xz zsh-1869eeb393e2499e9949cc3458cdd74685342540.zip |
30876: fix obscure failures to propagate non-zero status
from optimised simple commands within lists
Diffstat (limited to 'Test/C03traps.ztst')
-rw-r--r-- | Test/C03traps.ztst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index 321f5e956..757f75ca4 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -388,6 +388,17 @@ >} >No, really exited + (set -e + printf "a\nb\n" | while read line + do + [[ $line = a* ]] || continue + ((ctr++)) + [[ $line = foo ]] + done + echo "ctr = $ctr" + ) +1:ERREXIT in loop with simple commands + %clean rm -f TRAPEXIT |