empty-bodies () { sh-spec spec/empty-bodies.test.sh "${REF_SHELLS[@]}" $ZSH $OSH_LIST "$@" }
spec test index / oilshell.org
status | dash | bash | mksh | zsh | osh | |
pass | 1 | 1 | 2 | 3 | 3 | |
ok | 2 | 2 | 1 | 0 | 0 | |
total | 3 | 3 | 3 | 3 | 3 | |
case | dash | bash | mksh | zsh | osh | description |
0 | ok | ok | pass | pass | pass | Empty do/done |
details | details | |||||
1 | pass | pass | pass | pass | pass | Empty case/esac |
2 | ok | ok | ok | pass | pass | Empty then/fi |
details | details | details |
10 passed, 5 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 0 Empty do/done stdout: stderr: dash: 2: Syntax error: "done" unexpected |
bash | 0 Empty do/done stdout: stderr: bash: line 2: syntax error near unexpected token `done' bash: line 2: `done' |
dash | 2 Empty then/fi stdout: stderr: dash: 2: Syntax error: "fi" unexpected |
bash | 2 Empty then/fi stdout: stderr: bash: line 2: syntax error near unexpected token `fi' bash: line 2: `fi' |
mksh | 2 Empty then/fi stdout: stderr: mksh: <stdin>[2]: syntax error: 'fi' unexpected |