status | bash | mksh | ksh | toysh | sush | brush | osh | |
pass | 15 | 13 | 12 | 1 | 6 | 11 | 17 | |
ok | 1 | 3 | 0 | 0 | 0 | 0 | 0 | |
N-I | 0 | 1 | 0 | 0 | 0 | 0 | 0 | |
BUG | 1 | 0 | 0 | 0 | 0 | 0 | 0 | |
FAIL | 0 | 0 | 5 | 16 | 11 | 6 | 0 | |
total | 17 | 17 | 17 | 17 | 17 | 17 | 17 | |
case | bash | mksh | ksh | toysh | sush | brush | osh | description |
0 | pass | pass | pass | FAIL | FAIL | FAIL | pass | command -v |
details | details | details | ||||||
1 | pass | pass | pass | FAIL | FAIL | pass | pass | command -v executable, builtin |
details | details | |||||||
2 | BUG | ok | FAIL | FAIL | FAIL | FAIL | pass | command -v with multiple names |
details | details | details | details | details | details | |||
3 | pass | pass | FAIL | FAIL | FAIL | FAIL | pass | command -v doesn't find non-executable file |
details | details | details | details | |||||
4 | ok | ok | FAIL | FAIL | FAIL | FAIL | pass | command -V |
details | details | details | details | details | details | |||
5 | pass | ok | FAIL | FAIL | pass | pass | pass | command -V nonexistent |
details | details | details | ||||||
6 | pass | pass | pass | FAIL | FAIL | pass | pass | command skips function lookup |
details | details | |||||||
7 | pass | pass | pass | FAIL | pass | pass | pass | command command seq 3 |
details | ||||||||
8 | pass | pass | pass | FAIL | pass | FAIL | pass | command command -v seq |
details | details | |||||||
9 | pass | pass | pass | FAIL | FAIL | pass | pass | command -p (override existing program) |
details | details | |||||||
10 | pass | pass | pass | pass | FAIL | pass | pass | command -p (hide tool in custom path) |
details | ||||||||
11 | pass | pass | pass | FAIL | FAIL | pass | pass | command -p (find hidden tool in default path) |
details | details | |||||||
12 | pass | N-I | FAIL | FAIL | FAIL | pass | pass | $(command type ls) |
details | details | details | details | |||||
13 | pass | pass | pass | FAIL | pass | pass | pass | builtin |
details | ||||||||
14 | pass | pass | pass | FAIL | pass | pass | pass | builtin ls not found |
details | ||||||||
15 | pass | pass | pass | FAIL | FAIL | FAIL | pass | builtin usage |
details | details | details | ||||||
16 | pass | pass | pass | FAIL | pass | pass | pass | builtin command echo hi |
details |
75 passed, 4 OK, 1 not implemented, 1 BUG, 38 failed, 0 timeouts, 0 cases skipped
toysh | 0 command -v [toysh stdout] Expected 'echo\n0\nmyfunc\n0\nnonexistent=1\nempty=1\nfor\n0\n' Got '127\n127\nnonexistent=127\nempty=127\n127\n' stdout: 127 127 nonexistent=127 empty=127 127stderr: sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory |
sush | 0 command -v [sush stdout] Expected 'echo\n0\nmyfunc\n0\nnonexistent=1\nempty=1\nfor\n0\n' Got 'echo\n0\n1\nnonexistent=1\n\nempty=0\n1\n' stdout: echo 0 1 nonexistent=1 empty=0 1stderr: |
brush | 0 command -v [brush stdout] Expected 'echo\n0\nmyfunc\n0\nnonexistent=1\nempty=1\nfor\n0\n' Got 'echo\n0\n1\nnonexistent=1\n/home/andy/git/oils-for-unix/oils/spec/bin/\nempty=0\n1\n' stdout: echo 0 1 nonexistent=1 /home/andy/git/oils-for-unix/oils/spec/bin/ empty=0 1stderr: |
toysh | 1 command -v executable, builtin [toysh stdout] Expected '/grep\n/ls\n\ntrue\neval\n', got '\n' [toysh status] Expected 0, got 127 stdout: stderr: sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory |
sush | 1 command -v executable, builtin [sush stdout] Expected '/grep\n/ls\n\ntrue\neval\n', got '\ntrue\neval\n' stdout: true evalstderr: |
bash | 2 command -v with multiple names stdout: echo myfunc for status=0stderr: |
mksh | 2 command -v with multiple names stdout: echo myfunc status=1stderr: |
ksh | 2 command -v with multiple names [ksh stdout] Expected 'echo\nmyfunc\nfor\nstatus=1\n', got 'echo\nmyfunc\nstatus=1\n' stdout: echo myfunc status=1stderr: |
toysh | 2 command -v with multiple names [toysh stdout] Expected 'echo\nmyfunc\nfor\nstatus=1\n', got 'status=127\n' stdout: status=127stderr: sh: command: No such file or directory |
sush | 2 command -v with multiple names [sush stdout] Expected 'echo\nmyfunc\nfor\nstatus=1\n', got 'echo\nstatus=0\n' stdout: echo status=0stderr: |
brush | 2 command -v with multiple names [brush stdout] Expected 'echo\nmyfunc\nfor\nstatus=1\n', got 'echo\nstatus=0\n' stdout: echo status=0stderr: |
ksh | 3 command -v doesn't find non-executable file [ksh stdout] Expected 'status=1\n_tmp/executable\nstatus=0\n', got 'status=1\n/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/builtin-meta.test.sh.3669862/03-ksh/_tmp/executable\nstatus=0\n' stdout: status=1 /home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/builtin-meta.test.sh.3669862/03-ksh/_tmp/executable status=0stderr: |
toysh | 3 command -v doesn't find non-executable file [toysh stdout] Expected 'status=1\n_tmp/executable\nstatus=0\n', got 'status=127\nstatus=127\n' stdout: status=127 status=127stderr: sh: command: No such file or directory sh: command: No such file or directory |
sush | 3 command -v doesn't find non-executable file [sush stdout] Expected 'status=1\n_tmp/executable\nstatus=0\n', got 'status=1\nstatus=1\n' stdout: status=1 status=1stderr: |
brush | 3 command -v doesn't find non-executable file [brush stdout] Expected 'status=1\n_tmp/executable\nstatus=0\n', got 'status=1\n/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/builtin-meta.test.sh.3669862/03-brush/_tmp/executable\nstatus=0\n' stdout: status=1 /home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/builtin-meta.test.sh.3669862/03-brush/_tmp/executable status=0stderr: |
bash | 4 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=0stderr: bash: line 16: command: nonexistent: not found |
mksh | 4 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 |
ksh | 4 command -V [ksh stdout] Expected 'll is an alias for "ls -l"\nstatus=0\necho is a shell builtin\nstatus=0\nmyfunc is a function\nstatus=0\nstatus=1\nfor is a shell keyword\nstatus=0\n' Got "ll is an alias for 'ls -l'\nstatus=0\necho is a shell builtin\nstatus=0\nmyfunc is a function\nstatus=0\nnonexistent not found\nstatus=1\nfor is a reserved word\nstatus=0\n" 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: E: ksh: <stdin>[3]: shopt: inaccessible or not found |
toysh | 4 command -V [toysh stdout] Expected 'll is an alias for "ls -l"\nstatus=0\necho is a shell builtin\nstatus=0\nmyfunc is a function\nstatus=0\nstatus=1\nfor is a shell keyword\nstatus=0\n' Got 'status=0\nstatus=127\nstatus=0\nstatus=127\nstatus=127\n' stdout: status=0 status=127 status=0 status=127 status=127stderr: sh: shopt: No such file or directory sh: alias: No such file or directory sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory |
sush | 4 command -V [sush stdout] Expected 'll is an alias for "ls -l"\nstatus=0\necho is a shell builtin\nstatus=0\nmyfunc is a function\nstatus=0\nstatus=1\nfor is a shell keyword\nstatus=0\n' Got "ll is aliased to 'ls -l'\nstatus=0\necho is /usr/bin/echo\nstatus=0\nstatus=0\nstatus=1\nstatus=1\n" stdout: ll is aliased to 'ls -l' status=0 echo is /usr/bin/echo status=0 status=0 status=1 status=1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: command: myfunc: not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: command: nonexistent: not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 19: command: for: not found |
brush | 4 command -V [brush stdout] Expected 'll is an alias for "ls -l"\nstatus=0\necho is a shell builtin\nstatus=0\nmyfunc is a function\nstatus=0\nstatus=1\nfor is a shell keyword\nstatus=0\n' Got 'status=0\necho is a shell builtin\nstatus=0\nstatus=0\nstatus=1\nstatus=1\n' stdout: status=0 echo is a shell builtin status=0 status=0 status=1 status=1stderr: command: ll: not found command: myfunc: not found command: nonexistent: not found command: for: not found |
mksh | 5 command -V nonexistent stdout: nonexistent not found status=1stderr: |
ksh | 5 command -V nonexistent [ksh stdout] Expected 'status=1\nnonexistent: not found\n', got 'nonexistent not found\nstatus=1\n' stdout: nonexistent not found status=1stderr: |
toysh | 5 command -V nonexistent [toysh stdout] Expected 'status=1\nnonexistent: not found\n', got 'status=127\n' stdout: status=127stderr: |
toysh | 6 command skips function lookup [toysh stdout] Expected '3\n1\n2\n3\n1\n2\n3\n', got '3\n' [toysh status] Expected 0, got 127 stdout: 3stderr: sh: command: No such file or directory sh: command: No such file or directory sh: command: No such file or directory |
sush | 6 command skips function lookup [sush stdout] Expected '3\n1\n2\n3\n1\n2\n3\n', got '3\n3\n3\n' stdout: 3 3 3stderr: |
toysh | 7 command command seq 3 [toysh stdout] Expected '1\n2\n3\n', got '' [toysh status] Expected 0, got 127 stdout: stderr: sh: command: No such file or directory |
toysh | 8 command command -v seq [toysh stdout] Expected 'seq\n', got '' [toysh status] Expected 0, got 127 stdout: stderr: sh: command: No such file or directory |
brush | 8 command command -v seq [brush stdout] Expected 'seq\n', got '/usr/bin/seq\n' stdout: /usr/bin/seqstderr: |
toysh | 9 command -p (override existing program) [toysh stdout] Expected 'wrong\nbbb\n', got 'wrong\n' stdout: wrongstderr: sh: command: No such file or directory |
sush | 9 command -p (override existing program) [sush stdout] Expected 'wrong\nbbb\n', got 'wrong\nwrong\n' stdout: wrong wrongstderr: |
sush | 10 command -p (hide tool in custom path) [sush status] Expected 127, got 0 stdout: hellostderr: |
toysh | 11 command -p (find hidden tool in default path) [toysh status] Expected 0, got 127 stdout: stderr: sh: command: No such file or directory |
sush | 11 command -p (find hidden tool in default path) [sush status] Expected 0, got 127 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: ls: command not found |
mksh | 12 $(command type ls) stdout: status=1stderr: mksh: <stdin>[3]: type: not found |
ksh | 12 $(command type ls) [ksh stdout] Expected 'FUNCTION\nstatus=0\n', got 'status=1\n' stdout: status=1stderr: E: ksh: <stdin>[3]: type: inaccessible or not found |
toysh | 12 $(command type ls) [toysh stdout] Expected 'FUNCTION\nstatus=0\n', got 'FUNCTION\nstatus=1\n' stdout: FUNCTION status=1stderr: sh: command: No such file or directory |
sush | 12 $(command type ls) [sush stdout] Expected 'FUNCTION\nstatus=0\n', got 'FUNCTION\nstatus=1\n' stdout: FUNCTION status=1stderr: |
toysh | 13 builtin [toysh stdout] Expected 'hi\n/\n', got 'hi\n' stdout: histderr: sh: builtin: No such file or directory |
toysh | 14 builtin ls not found [toysh status] Expected 1, got 127 stdout: stderr: sh: builtin: No such file or directory |
toysh | 15 builtin usage [toysh stdout] Expected 'status=0\nstatus=0\nstatus=1\n', got 'status=127\nstatus=127\nstatus=127\n' stdout: status=127 status=127 status=127stderr: sh: builtin: No such file or directory sh: builtin: No such file or directory sh: builtin: No such file or directory |
sush | 15 builtin usage [sush stdout] Expected 'status=0\nstatus=0\nstatus=1\n', got 'status=0\nstatus=1\nstatus=1\n' stdout: status=0 status=1 status=1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: builtin: --: not a shell builtin /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: builtin: --: not a shell builtin |
brush | 15 builtin usage [brush stdout] Expected 'status=0\nstatus=0\nstatus=1\n', got 'status=0\nstatus=1\nstatus=1\n' stdout: status=0 status=1 status=1stderr: --: command not found --: command not found |
toysh | 16 builtin command echo hi [toysh stdout] Expected 'hi\n', got '' [toysh status] Expected 0, got 127 stdout: stderr: sh: builtin: No such file or directory |