blob: 0b8104285292e2e07c265e39d1f1320f7437c83e [file] [log] [blame]
Denys Vlasenko5fa05052018-04-03 11:21:13 +02001true; a=1; echo Zero1:$?
2false; a=1; echo Zero2:$?
3false || a=1; echo Zero3:$?
4
5false || x=$? y=`echo $?`; echo Zero4:$? x:$x y:$y
6false || 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