Denys Vlasenko | 5fa0505 | 2018-04-03 11:21:13 +0200 | [diff] [blame^] | 1 | true; a=1; echo Zero1:$? |
2 | false; a=1; echo Zero2:$? | ||||
3 | false || a=1; echo Zero3:$? | ||||
4 | |||||
5 | false || x=$? y=`echo $?`; echo Zero4:$? x:$x y:$y | ||||
6 | false || x=$? y=`echo $?; exit 3`; echo Three:$? x:$x y:$y | ||||
7 | |||||
8 | #ash sets z=1 instead of z=3. disabled for now | ||||
9 | #false || x=$? y=`echo $?; exit 3` z=`echo $?`; echo x:$x y:$y z:$z |