spec test index / oilshell.org
status | dash | bash | mksh | zsh | osh | |
pass | 4 | 10 | 9 | 8 | 12 | |
ok | 1 | 1 | 1 | 0 | 0 | |
N-I | 6 | 0 | 2 | 4 | 0 | |
BUG | 2 | 2 | 1 | 1 | 0 | |
FAIL | 0 | 0 | 0 | 0 | 1 | |
total | 13 | 13 | 13 | 13 | 13 | |
case | dash | bash | mksh | zsh | osh | description |
0 | ok | pass | pass | pass | pass | command -v |
details | ||||||
1 | BUG | BUG | ok | pass | pass | command -v with multiple names |
details | details | details | ||||
2 | BUG | BUG | pass | pass | pass | command -v doesn't find non-executable file |
details | details | |||||
3 | pass | pass | pass | pass | pass | command skips function lookup |
4 | pass | pass | pass | N-I | pass | command command seq 3 |
details | ||||||
5 | pass | pass | pass | N-I | pass | command command -v seq |
details | ||||||
6 | N-I | ok | BUG | BUG | pass | history usage |
details | details | details | details | |||
7 | N-I | pass | N-I | N-I | FAIL | history -d to delete history item |
details | details | details | details | |||
8 | pass | pass | N-I | N-I | pass | $(command type ls) |
details | details | |||||
9 | N-I | pass | pass | pass | pass | builtin |
details | ||||||
10 | N-I | pass | pass | pass | pass | builtin ls not found |
details | ||||||
11 | N-I | pass | pass | pass | pass | builtin no args |
details | ||||||
12 | N-I | pass | pass | pass | pass | builtin command echo hi |
details |
43 passed, 3 OK, 12 not implemented, 6 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
dash | 0 command -v stdout: echo 0 myfunc 0 127 for 0stderr: |
dash | 1 command -v with multiple names stdout: echo status=0stderr: |
bash | 1 command -v with multiple names stdout: echo myfunc for status=0stderr: |
mksh | 1 command -v with multiple names stdout: echo myfunc status=1stderr: |
dash | 2 command -v doesn't find non-executable file stdout: /non-executable status=0 /executable status=0stderr: |
bash | 2 command -v doesn't find non-executable file stdout: /non-executable status=0 /executable status=0stderr: |
zsh | 4 command command seq 3 stdout: stderr: zsh: command not found: command |
zsh | 5 command command -v seq stdout: stderr: zsh: command not found: command |
dash | 6 history usage stdout: status=127 status=127 status=127 status=127 status=127stderr: dash: 1: history: not found dash: 3: history: not found dash: 5: history: not found dash: 7: history: not found dash: 9: history: not found |
bash | 6 history usage stdout: status=0 status=0 status=2 status=1 status=1stderr: bash: line 5: history: -5: invalid option history: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...] bash: line 7: history: f: numeric argument required bash: line 9: history: too: numeric argument required |
mksh | 6 history usage stdout: status=1 status=1 status=1 status=1 status=1stderr: mksh: fc: history functions not available mksh: <stdin>[3]: fc: history functions not available mksh: <stdin>[5]: fc: history functions not available mksh: <stdin>[7]: fc: history functions not available mksh: <stdin>[9]: fc: history functions not available |
zsh | 6 history usage stdout: status=1 status=1 status=1 status=1 status=1stderr: fc: no such event: 1 fc: no such event: 5 fc: no such event: 0 fc: event not found: f fc: event not found: too |
dash | 7 history -d to delete history item stdout: stderr: |
mksh | 7 history -d to delete history item stdout: stderr: |
zsh | 7 history -d to delete history item stdout: stderr: |
osh | 7 history -d to delete history item [osh stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got 'status=2\nstatus=2\nstatus=2\n' stdout: status=2 status=2 status=2stderr: history -d 1 ^~~~~~~ [ stdin ]:2: 'history' couldn't find item 1 history -d -1 ^~ [ stdin ]:4: 'history' got invalid integer for -d: -1 history -d -2 ^~ [ stdin ]:6: 'history' got invalid integer for -d: -2 |
mksh | 8 $(command type ls) stdout: status=1stderr: mksh: <stdin>[3]: type: not found |
zsh | 8 $(command type ls) stdout: FUNCTION status=1stderr: zsh: command not found: type |
dash | 9 builtin stdout: histderr: dash: 3: builtin: not found |
dash | 10 builtin ls not found stdout: stderr: dash: 1: builtin: not found |
dash | 11 builtin no args stdout: stderr: dash: 1: builtin: not found |
dash | 12 builtin command echo hi stdout: stderr: dash: 1: builtin: not found |