diff options
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/E01options.ztst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 363846f5c..969bd42d5 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -1536,3 +1536,13 @@ F:If this test fails at the first unsetopt, refer to P01privileged.ztst. 0:readonly with typeset -p F:compare E03posix.ztst >typeset -r var='' + + $ZTST_testdir/../Src/zsh -fc " + foo(){ + setopt err_return + source <(echo 'if true; then return 42; fi') + echo \"This line is printed by zsh 5.9 (but it shouldn't be).\" + } + foo + " +42:ERR_RETURN inside 'source' and 'if' |
