Results for builtin-cd.test.sh

statusdashbashmkshzshosh
pass 1822162021
ok 10400
BUG 30220
FAIL 00001
total2222222222
casedashbashmkshzshoshdescription
0pass pass pass pass pass cd and $PWD
1BUG pass BUG pass FAIL cd BAD/..
detailsdetailsdetails
2BUG pass pass pass pass cd with 2 or more args
details
3BUG pass ok BUG pass cd - without OLDPWD
detailsdetailsdetails
4pass pass BUG BUG pass $OLDPWD
detailsdetails
5pass pass pass pass pass pwd
6pass pass pass pass pass pwd after cd ..
7pass pass pass pass pass pwd with symlink and -P
8pass pass pass pass pass setting $PWD doesn't affect the value of 'pwd' builtin
9pass pass pass pass pass unset PWD; then pwd
10pass pass pass pass pass 'unset PWD; pwd' before any cd (tickles a rare corner case)
11pass pass pass pass pass lie about PWD; pwd before any cd
12pass pass ok pass pass remove pwd dir
details
13pass pass ok pass pass pwd in symlinked dir on shell initialization
details
14pass pass pass pass pass Test the current directory after 'cd ..' involving symlinks
15pass pass pass pass pass cd with no arguments
16ok pass ok pass pass cd to nonexistent dir
detailsdetails
17pass pass pass pass pass cd away from dir that was deleted
18pass pass pass pass pass cd permits double bare dash
19pass pass pass pass pass cd to symlink with -L and -P
20pass pass pass pass pass cd to relative path with -L and -P
21pass 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

Details on runs that didn't PASS

dash1 cd BAD/..

stdout:
status=0
stderr:
mksh1 cd BAD/..

stdout:
status=0
stderr:
osh1 cd BAD/..

[osh stdout] Expected 'status=1\n', got 'status=0\n'

stdout:
status=0
stderr:
dash2 cd with 2 or more args

stdout:
status=0
status=0
stderr:
dash3 cd - without OLDPWD

stdout:
status=0
stderr:
mksh3 cd - without OLDPWD

stdout:
status=2
stderr:
mksh: <stdin>[1]: cd: no OLDPWD
zsh3 cd - without OLDPWD

stdout:
status=0
stderr:
mksh4 $OLDPWD

stdout:
old: /
/
stderr:
zsh4 $OLDPWD

stdout:
old: /
OLDPWD=/
stderr:
mksh12 remove pwd dir

stdout:
/tmp/oil-spec-test/pwd
status=0
status=1
stderr:
mksh: <stdin>[7]: pwd: can't determine current directory: No such file or directory
mksh13 pwd in symlinked dir on shell initialization

stdout:
target
target
stderr:
dash16 cd to nonexistent dir

stdout:
status=2
stderr:
dash: 1: cd: can't cd to /nonexistent/dir
mksh16 cd to nonexistent dir

stdout:
status=2
stderr:
mksh: <stdin>[1]: cd: /nonexistent/dir: No such file or directory