Results for errexit.test.sh

statusdashbashmkshashosh
pass 2833303234
ok 40110
N-I 20010
BUG 01300
total3434343434
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 N-I pass errexit with (( ))
detailsdetails
16pass pass pass pass pass errexit with subshell
17pass pass pass pass pass set -o errexit while it's being ignored (moot with strict_errexit)
18pass pass pass pass pass set +o errexit while it's being ignored (moot with strict_errexit)
19pass pass pass pass pass set +o errexit with 2 levels of ignored
20pass pass pass pass pass setting errexit in a subshell works but doesn't affect parent shell
21pass pass pass pass pass set errexit while it's ignored in a subshell (moot with strict_errexit)
22pass pass pass pass pass shopt -s strict:all || true while errexit is on
23pass pass pass pass pass errexit double guard
24pass pass pass pass pass background processes respect errexit
25pass pass pass pass pass pipeline process respects errexit
26ok pass pass pass pass simple command / assign - redir failure DOES respect errexit
details
27ok pass BUG pass pass simple command that's an alias -- redir failure NOT checked
detailsdetails
28N-I pass ok ok pass bash atoms [[ (( - redir failure does NOT respect errexit (unless redir_errexit)
detailsdetailsdetails
29ok pass BUG pass pass brace group - redir failure does NOT respect errexit
detailsdetails
30ok pass BUG pass pass while loop - redirect failure does NOT respect errexit
detailsdetails
31pass pass pass pass pass set -e enabled in function (regression)
32pass BUG pass pass pass set -e in function #2
details
33pass pass pass pass pass Command sub exit code is lost
157 passed, 6 OK, 3 not implemented, 4 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash15 errexit with (( ))

stdout:
stderr: 
dash: 3: i++: not found
ash15 errexit with (( ))

stdout:
stderr: 
ash: i++: not found
dash26 simple command / assign - redir failure DOES respect errexit

stdout:
status=2
status=2
status=2
stderr:
dash: 3: cannot create /: Is a directory
dash: 3: cannot create /: Is a directory
dash: 3: cannot create /: Is a directory
dash27 simple command that's an alias -- redir failure NOT checked

stdout:
alias status=2
status=0
stderr:
dash: 2: shopt: not found
dash: 6: cannot create /: Is a directory
mksh27 simple command that's an alias -- redir failure NOT checked

stdout:
status=1
stderr:
mksh: shopt: not found
mksh: can't create /: Is a directory
dash28 bash atoms [[ (( - redir failure does NOT respect errexit (unless redir_errexit)

stdout:
stderr: 
mksh28 bash atoms [[ (( - redir failure does NOT respect errexit (unless redir_errexit)

stdout:
status=1
status=1
stderr:
mksh: can't create /: Is a directory
mksh: can't create /: Is a directory
ash28 bash atoms [[ (( - redir failure does NOT respect errexit (unless redir_errexit)

stdout:
status=1
status=2
stderr:
ash: can't create /: Is a directory
ash: can't create /: Is a directory
dash29 brace group - redir failure does NOT respect errexit

stdout:
status=2
should not get here
stderr:
dash: 3: cannot open not_exist.txt: No such file
mksh29 brace group - redir failure does NOT respect errexit

stdout:
stderr: 
mksh: <stdin>[3]: can't open not_exist.txt: No such file or directory
dash30 while loop - redirect failure does NOT respect errexit

stdout:
status=2
should not get here
stderr:
dash: 3: cannot open not_exist.txt: No such file
mksh30 while loop - redirect failure does NOT respect errexit

stdout:
stderr: 
mksh: <stdin>[5]: can't open not_exist.txt: No such file or directory
bash32 set -e in function #2

stdout:
stderr: