Results for errexit-strict.test.sh

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

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

Details on runs that didn't PASS

dash0 command sub: errexit ignored

stdout:
one
status=0
stderr:
mksh0 command sub: errexit ignored

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

stdout:
stderr: 
_tmp/spec-bin/dash: 2: set: Illegal option -o strict-errexit
bash1 command sub: errexit not ignored with strict-errexit

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

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[2]: set: strict-errexit: bad option
ash1 command sub: errexit not ignored with strict-errexit

stdout:
zero
one two
status=0
stderr:
_tmp/spec-bin/ash: set: line 1: illegal option -o strict-errexit
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:
stderr: 
_tmp/spec-bin/dash: 2: set: Illegal option -o strict-errexit
bash7 local and strict-errexit

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

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[2]: set: strict-errexit: bad option
ash7 local and strict-errexit

stdout:
good
status=0
one two
stderr:
_tmp/spec-bin/ash: set: line 1: illegal option -o strict-errexit