fatal-errors () { sh-spec spec/fatal-errors.test.sh ${REF_SHELLS[@]} $ZSH $OSH_LIST "$@" }
spec test index / oilshell.org
status | dash | bash | mksh | zsh | osh | |
pass | 0 | 0 | 5 | 2 | 5 | |
ok | 5 | 5 | 0 | 0 | 0 | |
BUG | 0 | 0 | 0 | 3 | 0 | |
total | 5 | 5 | 5 | 5 | 5 | |
case | dash | bash | mksh | zsh | osh | description |
0 | ok | ok | pass | pass | pass | Unrecoverable: divide by zero in redirect word |
details | details | |||||
1 | ok | ok | pass | BUG | pass | Unrecoverable: divide by zero in conditional word |
details | details | details | ||||
2 | ok | ok | pass | BUG | pass | Unrecoverable: divide by zero in case |
details | details | details | ||||
3 | ok | ok | pass | pass | pass | Unrecoverable: ${undef?message} |
details | details | |||||
4 | ok | ok | pass | BUG | pass | ${undef} with nounset |
details | details | details |
12 passed, 10 OK, 0 not implemented, 3 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 0 Unrecoverable: divide by zero in redirect word stdout: outside=2stderr: dash: 2: arithmetic expression: division by zero: " 42 / 0 " |
bash | 0 Unrecoverable: divide by zero in redirect word stdout: inside=1 outside=0stderr: bash: line 2: 42 / 0 : division by 0 (error token is "0 ") |
dash | 1 Unrecoverable: divide by zero in conditional word stdout: outside=2 --- outside=2stderr: dash: 2: arithmetic expression: division by zero: " 42 / 0 " dash: 2: arithmetic expression: division by zero: " 42 / 0 " |
bash | 1 Unrecoverable: divide by zero in conditional word stdout: inside=1 outside=0 --- inside=1 outside=0stderr: bash: line 2: 42 / 0 : division by 0 (error token is "0 ") bash: line 2: 42 / 0 : division by 0 (error token is "0 ") |
zsh | 1 Unrecoverable: divide by zero in conditional word stdout: outside=1 --- outside=0stderr: zsh:2: division by zero zsh:2: division by zero |
dash | 2 Unrecoverable: divide by zero in case stdout: outside=2 --- outside=2stderr: dash: 2: arithmetic expression: division by zero: " 42 / 0 " dash: 2: arithmetic expression: division by zero: " 42 / 0 " |
bash | 2 Unrecoverable: divide by zero in case stdout: inside=1 outside=0 --- inside=1 outside=0stderr: bash: line 2: 42 / 0 : division by 0 (error token is "0 ") bash: line 2: 42 / 0 : division by 0 (error token is "0 ") |
zsh | 2 Unrecoverable: divide by zero in case stdout: outside=0 --- outside=0stderr: zsh:2: division by zero zsh:2: division by zero |
dash | 3 Unrecoverable: ${undef?message} stdout: outside=2 outside=2stderr: dash: 2: undef: message dash: 2: undef: message |
bash | 3 Unrecoverable: ${undef?message} stdout: outside=127 outside=127stderr: bash: line 2: undef: message bash: line 2: undef: message |
dash | 4 ${undef} with nounset stdout: outside=2stderr: dash: 3: undef: parameter not set |
bash | 4 ${undef} with nounset stdout: outside=127stderr: bash: line 3: undef: unbound variable |
zsh | 4 ${undef} with nounset stdout: outside=0stderr: zsh:3: undef: parameter not set |