Results for errexit.test.sh

statusdashbashmkshashosh
pass 2021211924
ok 33330
N-I 10000
BUG 00020
total2424242424
casedashbashmkshashoshdescription
0pass pass pass pass pass errexit aborts early
1pass pass pass pass pass errexit for nonexistent command
2pass pass pass pass pass errexit aborts early on pipeline
3pass pass pass pass pass errexit with { }
4pass pass pass pass pass errexit with if and { }
5pass pass pass pass pass errexit with ||
6pass pass pass pass pass errexit with &&
7pass pass pass pass pass errexit test && -- from gen-module-init
8pass pass pass pass pass errexit test && and fail
9pass pass pass pass pass errexit and loop
10pass pass pass pass pass errexit and brace group { }
11pass pass pass pass pass errexit and time { }
12pass pass pass pass pass errexit with !
13pass pass pass pass pass errexit with ! and ;
14pass pass pass pass pass errexit with while/until
15N-I pass pass BUG pass errexit with (( ))
detailsdetails
16pass pass pass BUG pass errexit with subshell
details
17ok ok ok ok pass set -o errexit while it's being ignored
detailsdetailsdetailsdetails
18ok ok ok ok pass set +o errexit while it's being ignored
detailsdetailsdetailsdetails
19pass pass pass pass pass setting errexit in a subshell works but doesn't affect parent shell
20ok ok ok ok pass setting errexit while it's being ignored in a subshell
detailsdetailsdetailsdetails
21pass pass pass pass pass errexit double guard
22pass pass pass pass pass background processes respect errexit
23pass pass pass pass pass pipeline process respects errexit
105 passed, 12 OK, 1 not implemented, 2 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash15 errexit with (( ))

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: i++: not found
ash15 errexit with (( ))

stdout:
done
stderr:
_tmp/spec-bin/ash: i++: not found
ash16 errexit with subshell

stdout:
one
three
stderr:
dash17 set -o errexit while it's being ignored

stdout:
1
2
3
4
5
6
stderr:
bash17 set -o errexit while it's being ignored

stdout:
1
2
3
4
5
6
stderr:
mksh17 set -o errexit while it's being ignored

stdout:
1
2
3
4
5
6
stderr:
ash17 set -o errexit while it's being ignored

stdout:
1
2
3
4
5
6
stderr:
dash18 set +o errexit while it's being ignored

stdout:
1
2
3
4
5
6
stderr:
bash18 set +o errexit while it's being ignored

stdout:
1
2
3
4
5
6
stderr:
mksh18 set +o errexit while it's being ignored

stdout:
1
2
3
4
5
6
stderr:
ash18 set +o errexit while it's being ignored

stdout:
1
2
3
4
5
6
stderr:
dash20 setting errexit while it's being ignored in a subshell

stdout:
1
2
3
4
5
6
stderr:
bash20 setting errexit while it's being ignored in a subshell

stdout:
1
2
3
4
5
6
stderr:
mksh20 setting errexit while it's being ignored in a subshell

stdout:
1
2
3
4
5
6
stderr:
ash20 setting errexit while it's being ignored in a subshell

stdout:
1
2
3
4
5
6
stderr: