spec test index / oilshell.org
| case | dash | bash | mksh | zsh | osh | osh_ALT | description |
| 0 | ok | pass | pass | pass | pass | pass | command -v |
| details | |||||||
| 1 | BUG | BUG | ok | pass | pass | pass | command -v with multiple names |
| details | details | details | |||||
| 2 | N-I | pass | N-I | pass | FAIL | FAIL | dirs builtin |
| details | details | details | details | ||||
| 3 | N-I | pass | N-I | pass | FAIL | FAIL | dirs -c to clear the stack |
| details | details | details | details | ||||
| 4 | N-I | pass | N-I | ok | FAIL | FAIL | dirs -v to print numbered stack, one entry per line |
| details | details | details | details | details | |||
| 5 | N-I | pass | N-I | pass | FAIL | FAIL | dirs -p to print one entry per line |
| details | details | details | details |
15 passed, 3 ok, 8 known unimplemented, 2 known bugs, 4 failed, 0 skipped
| 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 dirs builtin stdout: stderr: /bin/dash: 2: dirs: not found |
| mksh | 2 dirs builtin stdout: stderr: /bin/mksh: <stdin>[2]: dirs: not found |
| osh | 2 dirs builtin [osh stdout] Expected u'/\n', got '' stdout: stderr: |
| osh_ALT | 2 dirs builtin [osh_ALT stdout] Expected u'/\n', got '' stdout: stderr: |
| dash | 3 dirs -c to clear the stack stdout: stderr: /bin/dash: 2: pushd: not found /bin/dash: 3: dirs: not found /bin/dash: 4: dirs: not found /bin/dash: 5: dirs: not found |
| mksh | 3 dirs -c to clear the stack stdout: stderr: /bin/mksh: <stdin>[2]: pushd: not found /bin/mksh: <stdin>[3]: dirs: not found /bin/mksh: <stdin>[4]: dirs: not found /bin/mksh: <stdin>[5]: dirs: not found |
| osh | 3 dirs -c to clear the stack [osh stdout] Expected u'/tmp /\n/tmp\n', got '/tmp\n/tmp\n' stdout: /tmp /tmpstderr: |
| osh_ALT | 3 dirs -c to clear the stack [osh_ALT stdout] Expected u'/tmp /\n/tmp\n', got '/tmp\n/tmp\n' stdout: /tmp /tmpstderr: |
| dash | 4 dirs -v to print numbered stack, one entry per line stdout: stderr: /bin/dash: 2: pushd: not found /bin/dash: 3: dirs: not found /bin/dash: 4: pushd: not found /bin/dash: 5: dirs: not found |
| mksh | 4 dirs -v to print numbered stack, one entry per line stdout: stderr: /bin/mksh: <stdin>[2]: pushd: not found /bin/mksh: <stdin>[3]: dirs: not found /bin/mksh: <stdin>[4]: pushd: not found /bin/mksh: <stdin>[5]: dirs: not found |
| zsh | 4 dirs -v to print numbered stack, one entry per line stdout: 0 / 1 / 0 / 1 / 2 /stderr: |
| osh | 4 dirs -v to print numbered stack, one entry per line [osh stdout] Expected u' 0 /\n 1 /\n 0 /\n 1 /\n 2 /\n', got '/\n 0 /\n/ /\n 0 /\n 1 /\n' stdout: / 0 / / / 0 / 1 /stderr: |
| osh_ALT | 4 dirs -v to print numbered stack, one entry per line [osh_ALT stdout] Expected u' 0 /\n 1 /\n 0 /\n 1 /\n 2 /\n', got '/\n 0 /\n/ /\n 0 /\n 1 /\n' stdout: / 0 / / / 0 / 1 /stderr: |
| dash | 5 dirs -p to print one entry per line stdout: stderr: /bin/dash: 2: pushd: not found /bin/dash: 3: dirs: not found /bin/dash: 4: pushd: not found /bin/dash: 5: dirs: not found |
| mksh | 5 dirs -p to print one entry per line stdout: stderr: /bin/mksh: <stdin>[2]: pushd: not found /bin/mksh: <stdin>[3]: dirs: not found /bin/mksh: <stdin>[4]: pushd: not found /bin/mksh: <stdin>[5]: dirs: not found |
| osh | 5 dirs -p to print one entry per line [osh stdout] Expected u'/\n/\n/\n/\n/\n', got '/\n/\n/ /\n/\n/\n' stdout: / / / / / /stderr: |
| osh_ALT | 5 dirs -p to print one entry per line [osh_ALT stdout] Expected u'/\n/\n/\n/\n/\n', got '/\n/\n/ /\n/\n/\n' stdout: / / / / / /stderr: |