diff options
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r-- | Test/A01grammar.ztst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index c8600d4cb..2649c29c8 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -466,14 +466,6 @@ >Status after always block is 1. ?(eval):3: bad substitution - fn() { { return } always { echo always 1 }; echo not executed } - fn - fn() { { echo try 2 } always { return }; echo not executed } - fn -0:Always block interaction with return ->always 1 ->try 2 - # Outputting of structures from the wordcode is distinctly non-trivial, # we probably ought to have more like the following... fn1() { { echo foo; } } @@ -720,6 +712,14 @@ >read it >read it + fn() { { return } always { echo always 1 }; echo not executed } + fn + fn() { { echo try 2 } always { return }; echo not executed } + fn +0:Always block interaction with return +>always 1 +>try 2 + ( mywrap() { echo BEGIN; true; echo END } mytest() { { exit 3 } always { mywrap }; print Exited before this } |