mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +02:00
39599: Don't reset status before "case" execution
This commit is contained in:
parent
b4cc190db9
commit
8f2ce89a0c
3 changed files with 13 additions and 1 deletions
|
|
@ -757,6 +757,14 @@
|
|||
>}
|
||||
>Stuff here
|
||||
|
||||
(exit 37)
|
||||
case $? in
|
||||
(37) echo $?
|
||||
;;
|
||||
esac
|
||||
0:case retains exit status for execution of cases
|
||||
>37
|
||||
|
||||
x=1
|
||||
x=2 | echo $x
|
||||
echo $x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue