142 passed, 9 OK, 3 not implemented, 11 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| dash | 1 cd BAD/.. stdout: status=0stderr: |
| mksh | 1 cd BAD/.. stdout: status=0stderr: |
| ash | 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 - with strict_arg_parse stdout: status=0 status=0stderr: dash: 1: shopt: not found |
| ash | 2 cd with 2 or more args - with strict_arg_parse stdout: status=0 status=0stderr: ash: shopt: not found |
| bash | 3 cd with 2 or more args is allowed (strict_arg_parse disabled) stdout: stderr: bash: line 2: cd: too many arguments |
| mksh | 3 cd with 2 or more args is allowed (strict_arg_parse disabled) stdout: stderr: mksh: <stdin>[2]: cd: bad substitution |
| zsh | 3 cd with 2 or more args is allowed (strict_arg_parse disabled) stdout: stderr: cd: string not in pwd: foo |
| dash | 4 cd - without OLDPWD stdout: status=0stderr: |
| mksh | 4 cd - without OLDPWD stdout: status=2stderr: mksh: <stdin>[1]: cd: no OLDPWD |
| zsh | 4 cd - without OLDPWD stdout: status=0stderr: |
| ash | 4 cd - without OLDPWD stdout: status=0stderr: |
| mksh | 5 $OLDPWD stdout: old: / /stderr: |
| zsh | 5 $OLDPWD stdout: old: / OLDPWD=/stderr: |
| mksh | 13 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 | 14 pwd in symlinked dir on shell initialization stdout: target targetstderr: |
| dash | 17 cd to nonexistent dir stdout: status=2stderr: dash: 1: cd: can't cd to /nonexistent/dir |
| mksh | 17 cd to nonexistent dir stdout: status=2stderr: mksh: <stdin>[1]: cd: /nonexistent/dir: No such file or directory |
| ash | 17 cd to nonexistent dir stdout: status=2stderr: ash: cd: line 1: can't cd to /nonexistent/dir: No such file or directory |
| zsh | 23 CDPATH is respected stdout: status=0 /tmp/spam/foostderr: |
| osh | 23 CDPATH is respected [osh stdout] Expected '/tmp/spam/foo\nstatus=0\n/tmp/spam/foo\n' Got 'status=1\n/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-osh\n' stdout: status=1 /home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-oshstderr: cd foo
^~~
[ stdin ]:5: cd '/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-osh/foo': No such file or directory
|
| mksh | 25 What happens when inherited $PWD and current dir disagree? stdout: Python PWD = None PWD = /tmp/osh-spec-cd/cpan/Encode /tmp/osh-spec-cd/cpan/Encode cd=0 PWD = /tmp/osh-spec-cd/cpan/Encode/Byte /tmp/osh-spec-cd/cpan/Encode/Bytestderr: Python argv = ['mksh', '-c', '\necho "PWD = $PWD"; pwd\ncd Byte; echo cd=$?\necho "PWD = $PWD"; pwd\n'] |
| mksh | 26 Survey of getcwd() syscall stdout: 2 err.txtstderr: |
| osh | 26 Survey of getcwd() syscall [osh stdout] Expected '1 err.txt\n' Got '3 err.txt\n' stdout: 3 err.txtstderr: |
| bash | 27 chdir is a synonym for cd - busybox ash stdout: failstderr: bash: line 1: chdir: command not found |