diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A06assign.ztst | 4 | ||||
-rw-r--r-- | Test/C03traps.ztst | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index 84500f605..9a0a4f0cc 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -184,8 +184,8 @@ typeset -A hash hash=(one 1) - h+=string - [[ $h[@] == string ]] + hash+=string + [[ $hash[@] == string ]] 0:add scalar to association # tests of var+=(array) 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 |