fatal-errors () { sh-spec spec/fatal-errors.test.sh ${REF_SHELLS[@]} $ZSH $OSH_LIST "$@" } fatal-errors: spec test case results

Results for fatal-errors.test.sh

statusdashbashmkshzshosh
pass 00525
ok 55000
BUG 00030
total55555
casedashbashmkshzshoshdescription
0ok ok pass pass pass Unrecoverable: divide by zero in redirect word
detailsdetails
1ok ok pass BUG pass Unrecoverable: divide by zero in conditional word
detailsdetailsdetails
2ok ok pass BUG pass Unrecoverable: divide by zero in case
detailsdetailsdetails
3ok ok pass pass pass Unrecoverable: ${undef?message}
detailsdetails
4ok ok pass BUG pass ${undef} with nounset
detailsdetailsdetails
12 passed, 10 OK, 0 not implemented, 3 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 Unrecoverable: divide by zero in redirect word

stdout:
outside=2
stderr:
dash: 2: arithmetic expression: division by zero: " 42 / 0 "
bash0 Unrecoverable: divide by zero in redirect word

stdout:
inside=1
outside=0
stderr:
bash: line 2: 42 / 0 : division by 0 (error token is "0 ")
dash1 Unrecoverable: divide by zero in conditional word

stdout:
outside=2
---
outside=2
stderr:
dash: 2: arithmetic expression: division by zero: " 42 / 0 "
dash: 2: arithmetic expression: division by zero: " 42 / 0 "
bash1 Unrecoverable: divide by zero in conditional word

stdout:
inside=1
outside=0
---
inside=1
outside=0
stderr:
bash: line 2: 42 / 0 : division by 0 (error token is "0 ")
bash: line 2: 42 / 0 : division by 0 (error token is "0 ")
zsh1 Unrecoverable: divide by zero in conditional word

stdout:
outside=1
---
outside=0
stderr:
zsh:2: division by zero
zsh:2: division by zero
dash2 Unrecoverable: divide by zero in case

stdout:
outside=2
---
outside=2
stderr:
dash: 2: arithmetic expression: division by zero: " 42 / 0 "
dash: 2: arithmetic expression: division by zero: " 42 / 0 "
bash2 Unrecoverable: divide by zero in case

stdout:
inside=1
outside=0
---
inside=1
outside=0
stderr:
bash: line 2: 42 / 0 : division by 0 (error token is "0 ")
bash: line 2: 42 / 0 : division by 0 (error token is "0 ")
zsh2 Unrecoverable: divide by zero in case

stdout:
outside=0
---
outside=0
stderr:
zsh:2: division by zero
zsh:2: division by zero
dash3 Unrecoverable: ${undef?message}

stdout:
outside=2
outside=2
stderr:
dash: 2: undef: message
dash: 2: undef: message
bash3 Unrecoverable: ${undef?message}

stdout:
outside=127
outside=127
stderr:
bash: line 2: undef: message
bash: line 2: undef: message
dash4 ${undef} with nounset

stdout:
outside=2
stderr:
dash: 3: undef: parameter not set
bash4 ${undef} with nounset

stdout:
outside=127
stderr:
bash: line 3: undef: unbound variable
zsh4 ${undef} with nounset

stdout:
outside=0
stderr:
zsh:3: undef: parameter not set