builtin-dirs () { sh-spec spec/builtin-dirs.test.sh $BASH $ZSH $OSH_LIST "$@" }
spec test index / oilshell.org
| status | bash | zsh | osh | |
| pass | 16 | 11 | 16 | |
| ok | 0 | 4 | 0 | |
| BUG | 0 | 1 | 0 | |
| total | 16 | 16 | 16 | |
| case | bash | zsh | osh | description |
| 0 | pass | ok | pass | pushd/popd |
| details | ||||
| 1 | pass | ok | pass | pushd usage |
| details | ||||
| 2 | pass | BUG | pass | popd usage error |
| details | ||||
| 3 | pass | pass | pass | popd returns error on empty directory stack |
| 4 | pass | pass | pass | cd replaces the lowest entry on the directory stack! |
| 5 | pass | pass | pass | dirs builtin |
| 6 | pass | pass | pass | dirs -c to clear the stack |
| 7 | pass | ok | pass | dirs -v to print numbered stack, one entry per line |
| details | ||||
| 8 | pass | pass | pass | dirs -p to print one entry per line |
| 9 | pass | pass | pass | dirs -l to print in long format, no tilde prefix |
| 10 | pass | pass | pass | dirs to print using tilde-prefix format |
| 11 | pass | pass | pass | dirs test converting true home directory to tilde |
| 12 | pass | pass | pass | dirs don't convert to tilde when $HOME is substring |
| 13 | pass | ok | pass | dirs tilde test when $HOME is exactly $PWD |
| details | ||||
| 14 | pass | pass | pass | dirs test of path alias `..` |
| 15 | pass | pass | pass | dirs test of path alias `.` |
43 passed, 4 OK, 0 not implemented, 1 BUG, 0 failed, 0 timeouts, 0 cases skipped
| zsh | 0 pushd/popd stdout: pwd=/tmp pwd=/stderr: |
| zsh | 1 pushd usage stdout: status=1 status=0 status=0stderr: pushd: no such file or directory: -z |
| zsh | 2 popd usage error stdout: status=0 status=0 status=0stderr: |
| zsh | 7 dirs -v to print numbered stack, one entry per line stdout: -- 0 /tmp 1 / -- 0 /dev 1 /tmp 2 /stderr: |
| zsh | 13 dirs tilde test when $HOME is exactly $PWD stdout: ~ /stderr: |