Results for errexit-strict.test.sh

casedashbashmkshashoshosh_ALTdescription
0ok pass ok pass pass pass command sub: errexit is NOT inherited
detailsdetails
1N-I N-I N-I N-I pass pass command sub: errexit not ignored with strict-errexit
detailsdetailsdetailsdetails
2pass pass pass pass pass pass command sub: last command fails but keeps going and exit code is 0
3ok pass ok pass pass pass global assignment with command sub: middle command fails
detailsdetails
4pass pass pass pass pass pass global assignment with command sub: last command fails and it aborts
5ok pass ok pass pass pass local: middle command fails and keeps going
detailsdetails
6pass pass pass pass pass pass local: last command fails and also keeps going
7N-I N-I N-I N-I pass pass local and strict-errexit
detailsdetailsdetailsdetails
8pass pass pass pass pass pass global assignment when last status is failure
9pass pass pass pass pass pass global assignment when last status is failure

46 passed, 6 ok, 8 known unimplemented, 0 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

dash0 command sub: errexit is NOT inherited

stdout:
one
status=0
stderr:
mksh0 command sub: errexit is NOT inherited

stdout:
one
status=0
stderr:
dash1 command sub: errexit not ignored with strict-errexit

stdout:
zero
one
status=0
stderr:
_tmp/spec-bin/dash: 2: shopt: not found
_tmp/spec-bin/dash: 3: shopt: not found
bash1 command sub: errexit not ignored with strict-errexit

stdout:
zero
one
status=0
stderr:
_tmp/spec-bin/bash: line 3: shopt: strict-errexit: invalid shell option name
mksh1 command sub: errexit not ignored with strict-errexit

stdout:
zero
one
status=0
stderr:
_tmp/spec-bin/mksh: <stdin>[2]: shopt: not found
_tmp/spec-bin/mksh: <stdin>[3]: shopt: not found
ash1 command sub: errexit not ignored with strict-errexit

stdout:
zero
one two
status=0
stderr:
_tmp/spec-bin/ash: shopt: not found
_tmp/spec-bin/ash: shopt: not found
dash3 global assignment with command sub: middle command fails

stdout:
stderr: 
mksh3 global assignment with command sub: middle command fails

stdout:
stderr: 
dash5 local: middle command fails and keeps going

stdout:
good
status=0
one
stderr:
mksh5 local: middle command fails and keeps going

stdout:
good
status=0
one
stderr:
dash7 local and strict-errexit

stdout:
good
status=0
one
stderr:
_tmp/spec-bin/dash: 2: shopt: not found
bash7 local and strict-errexit

stdout:
good
status=0
one two
stderr:
_tmp/spec-bin/bash: line 2: shopt: strict-errexit: invalid shell option name
mksh7 local and strict-errexit

stdout:
good
status=0
one
stderr:
_tmp/spec-bin/mksh: <stdin>[2]: shopt: not found
ash7 local and strict-errexit

stdout:
good
status=0
one two
stderr:
_tmp/spec-bin/ash: shopt: not found