spec test index / oilshell.org
88 passed, 11 OK, 19 not implemented, 11 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| dash | 0 command -v stdout: echo 0 myfunc 0 nonexistent=127 empty=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: _tmp/non-executable status=0 _tmp/executable status=0stderr: |
| dash | 3 command -V stdout: ll is an alias for ls -l status=0 echo is a shell builtin status=0 myfunc is a shell function status=0 nonexistent: not found status=127 for is a shell keyword status=0stderr: dash: 3: shopt: not found |
| bash | 3 command -V stdout: ll is aliased to 'ls -l'
status=0
echo is a shell builtin
status=0
myfunc is a function
myfunc ()
{
echo x
}
status=0
status=1
for is a shell keyword
status=0
stderr: bash: line 16: command: nonexistent: not found |
| mksh | 3 command -V stdout: ll is an alias for 'ls -l' status=0 echo is a shell builtin status=0 myfunc is a function status=0 nonexistent not found status=1 for is a reserved word status=0stderr: mksh: <stdin>[3]: shopt: not found |
| zsh | 3 command -V stdout: ll is an alias for ls -l status=0 echo is a shell builtin status=0 myfunc is a shell function status=0 nonexistent not found status=1 for is a reserved word status=0stderr: zsh: command not found: shopt |
| dash | 4 command -V nonexistent stdout: nonexistent: not found status=127stderr: |
| mksh | 4 command -V nonexistent stdout: nonexistent not found status=1stderr: |
| zsh | 4 command -V nonexistent stdout: nonexistent not found status=1stderr: |
| zsh | 6 command command seq 3 stdout: stderr: zsh: command not found: command |
| zsh | 7 command command -v seq stdout: stderr: zsh: command not found: command |
| mksh | 11 $(command type ls) stdout: status=1stderr: mksh: <stdin>[3]: type: not found |
| zsh | 11 $(command type ls) stdout: FUNCTION status=1stderr: zsh: command not found: type |
| dash | 12 builtin stdout: histderr: dash: 3: builtin: not found |
| dash | 13 builtin ls not found stdout: stderr: dash: 1: builtin: not found |
| dash | 14 builtin no args stdout: stderr: dash: 1: builtin: not found |
| dash | 15 builtin command echo hi stdout: stderr: dash: 1: builtin: not found |
| dash | 16 builtin typeset / export / readonly stdout: stderr: |
| dash | 17 builtin declare / local stdout: stderr: |
| mksh | 17 builtin declare / local stdout: stderr: |
| osh | 18 builtin declare a=(x y) etc. stdout: stderr: |
| zsh | 19 command export / readonly stdout: stderr: |
| dash | 20 command local stdout: s=stderr: |
| mksh | 20 command local stdout: s=stderr: mksh: <stdin>[6]: local: not found |
| zsh | 20 command local stdout: s=stderr: f:1: command not found: local |
| dash | 21 static builtin command ASSIGN, command builtin ASSIGN stdout: stderr: |
| zsh | 21 static builtin command ASSIGN, command builtin ASSIGN stdout: stderr: |
| dash | 22 dynamic builtin command ASSIGN, command builtin ASSIGN stdout: stderr: |
| zsh | 22 dynamic builtin command ASSIGN, command builtin ASSIGN stdout: stderr: |
| dash | 23 Assignment builtins and word splitting, even after builtin/command stdout: a b astderr: |
| bash | 23 Assignment builtins and word splitting, even after builtin/command stdout: a b astderr: |
| zsh | 23 Assignment builtins and word splitting, even after builtin/command stdout: a bstderr: zsh: command not found: readonly |
| dash | 24 More word splitting stdout: astderr: dash: 6: builtin: not found |
| bash | 24 More word splitting stdout: a b astderr: |
| mksh | 24 More word splitting stdout: a b astderr: |
| dash | 25 \builtin declare - ble.sh relies on it stdout: a astderr: |
| bash | 25 \builtin declare - ble.sh relies on it stdout: a astderr: |
| zsh | 25 \builtin declare - ble.sh relies on it stdout: stderr: zsh: command not found: readonly zsh: command not found: readonly |
| osh | 25 \builtin declare - ble.sh relies on it [osh stdout] Expected 'a b\na b\n', got 'a b\n\n' stdout: a bstderr: \command readonly z=$x
^~~~~~~~
[ stdin ]:6: Can't run assignment builtin recursively
|