summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2025-05-14 16:24:13 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2025-05-14 16:34:19 +0000
commit60639c67f0cdab2b89fce481753f791321aa53de (patch)
tree5077e414068422e950b4b8afb76e7c08bd2bb443 /Test
parent53607: Stop printing /usr/bin/foo -> /usr/bin/foo in 'whence -s'. (diff)
downloadzsh-60639c67f0cdab2b89fce481753f791321aa53de.tar
zsh-60639c67f0cdab2b89fce481753f791321aa53de.tar.gz
zsh-60639c67f0cdab2b89fce481753f791321aa53de.tar.bz2
zsh-60639c67f0cdab2b89fce481753f791321aa53de.tar.lz
zsh-60639c67f0cdab2b89fce481753f791321aa53de.tar.xz
zsh-60639c67f0cdab2b89fce481753f791321aa53de.tar.zst
zsh-60639c67f0cdab2b89fce481753f791321aa53de.zip
users/30257: Add a test for an ERR_RETURN bug fixed in workers/51076.
Diffstat (limited to 'Test')
-rw-r--r--Test/E01options.ztst10
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'