1
0
Fork 0
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:
Peter Stephenson 2016-10-10 10:55:48 +01:00
parent b4cc190db9
commit 8f2ce89a0c
3 changed files with 13 additions and 1 deletions

View file

@ -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