Results for errexit-strict.test.sh

statusdashbashmkshashosh
pass 585810
ok 30300
N-I 22220
total1010101010
casedashbashmkshashoshdescription
0ok pass ok pass pass command sub: errexit is NOT inherited
detailsdetails
1N-I N-I N-I N-I pass command sub: errexit not ignored with strict-errexit
detailsdetailsdetailsdetails
2pass pass pass pass pass command sub: last command fails but keeps going and exit code is 0
3ok pass ok pass pass global assignment with command sub: middle command fails
detailsdetails
4pass pass pass pass pass global assignment with command sub: last command fails and it aborts
5ok pass ok pass pass local: middle command fails and keeps going
detailsdetails
6pass pass pass pass pass local: last command fails and also keeps going
7N-I N-I N-I N-I pass local and strict-errexit
detailsdetailsdetailsdetails
8pass pass pass pass pass global assignment when last status is failure
9pass pass pass pass pass global assignment when last status is failure
36 passed, 6 OK, 8 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases 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:
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: shopt: not found
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: shopt: not found
bash1 command sub: errexit not ignored with strict-errexit

stdout:
zero
one
status=0
stderr:
/home/andy/git/oilshell/oil/_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:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: shopt: not found
/home/andy/git/oilshell/oil/_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:
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: shopt: not found
bash7 local and strict-errexit

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

stdout:
good
status=0
one
stderr:
/home/andy/git/oilshell/oil/_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