diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-11 19:03:58 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-11 19:03:58 +0000 |
| commit | bab70abe6bcdd28b829adbe582069dc08d9d1c02 (patch) | |
| tree | 4cf2d8884979dd471d87662b29e732e13bf305c5 /Test | |
| parent | 24994: fix problem with up/down-line-or-search, perhaps (diff) | |
| download | zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.tar zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.tar.gz zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.tar.bz2 zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.tar.lz zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.tar.xz zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.tar.zst zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.zip | |
users/12848: return, break, continue in always block override try block
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/A01grammar.ztst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index 93a1ecb8c..f283451ce 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -332,6 +332,14 @@ >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; } } |
