mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-16 20:58:05 +02:00
users/30257: Add a test for an ERR_RETURN bug fixed in workers/51076.
This commit is contained in:
parent
5db0d046b6
commit
60639c67f0
2 changed files with 13 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2025-05-14 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* users/30257: Test/E01options.ztst: Add a test for an ERR_RETURN
|
||||
bug fixed in workers/51076. Thanks to James Widman.
|
||||
|
||||
* 53607: Src/utils.c, Test/B13whence.ztst: Stop printing
|
||||
/usr/bin/foo -> /usr/bin/foo in 'whence -s'.
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue