assignment5.tests 307 B

123456789
  1. true; a=1; echo Zero1:$?
  2. false; a=1; echo Zero2:$?
  3. false || a=1; echo Zero3:$?
  4. false || x=$? y=`echo $?`; echo Zero4:$? x:$x y:$y
  5. false || x=$? y=`echo $?; exit 3`; echo Three:$? x:$x y:$y
  6. #ash sets z=1 instead of z=3. disabled for now
  7. #false || x=$? y=`echo $?; exit 3` z=`echo $?`; echo x:$x y:$y z:$z