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