spec test index / oilshell.org
| status | dash | bash | mksh | zsh | osh | |
| pass | 17 | 20 | 15 | 19 | 19 | |
| ok | 1 | 0 | 3 | 0 | 0 | |
| BUG | 2 | 0 | 2 | 1 | 0 | |
| FAIL | 0 | 0 | 0 | 0 | 1 | |
| total | 20 | 20 | 20 | 20 | 20 | |
| case | dash | bash | mksh | zsh | osh | description |
| 0 | pass | pass | pass | pass | pass | cd and $PWD |
| 1 | BUG | pass | BUG | pass | FAIL | cd BAD/.. |
| details | details | details | ||||
| 2 | BUG | pass | pass | pass | pass | cd with 2 or more args |
| details | ||||||
| 3 | pass | pass | BUG | BUG | pass | $OLDPWD |
| details | details | |||||
| 4 | pass | pass | pass | pass | pass | pwd |
| 5 | pass | pass | pass | pass | pass | pwd after cd .. |
| 6 | pass | pass | pass | pass | pass | pwd with symlink and -P |
| 7 | pass | pass | pass | pass | pass | setting $PWD doesn't affect the value of 'pwd' builtin |
| 8 | pass | pass | pass | pass | pass | unset PWD; then pwd |
| 9 | pass | pass | pass | pass | pass | 'unset PWD; pwd' before any cd (tickles a rare corner case) |
| 10 | pass | pass | pass | pass | pass | lie about PWD; pwd before any cd |
| 11 | pass | pass | ok | pass | pass | remove pwd dir |
| details | ||||||
| 12 | pass | pass | ok | pass | pass | pwd in symlinked dir on shell initialization |
| details | ||||||
| 13 | pass | pass | pass | pass | pass | Test the current directory after 'cd ..' involving symlinks |
| 14 | pass | pass | pass | pass | pass | cd with no arguments |
| 15 | ok | pass | ok | pass | pass | cd to nonexistent dir |
| details | details | |||||
| 16 | pass | pass | pass | pass | pass | cd away from dir that was deleted |
| 17 | pass | pass | pass | pass | pass | cd permits double bare dash |
| 18 | pass | pass | pass | pass | pass | cd to symlink with -L and -P |
| 19 | pass | pass | pass | pass | pass | cd to relative path with -L and -P |
90 passed, 4 OK, 0 not implemented, 5 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| dash | 1 cd BAD/.. stdout: status=0stderr: |
| mksh | 1 cd BAD/.. stdout: status=0stderr: |
| osh | 1 cd BAD/.. [osh stdout] Expected 'status=1\n', got 'status=0\n' stdout: status=0stderr: |
| dash | 2 cd with 2 or more args stdout: status=0 status=0stderr: |
| mksh | 3 $OLDPWD stdout: old: / /stderr: |
| zsh | 3 $OLDPWD stdout: old: / OLDPWD=/stderr: |
| mksh | 11 remove pwd dir stdout: /tmp/oil-spec-test/pwd status=0 status=1stderr: mksh: <stdin>[7]: pwd: can't determine current directory: No such file or directory |
| mksh | 12 pwd in symlinked dir on shell initialization stdout: target targetstderr: |
| dash | 15 cd to nonexistent dir stdout: status=2stderr: dash: 1: cd: can't cd to /nonexistent/dir |
| mksh | 15 cd to nonexistent dir stdout: status=2stderr: mksh: <stdin>[1]: cd: /nonexistent/dir: No such file or directory |