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