Results for builtin-cd.test.sh

statusdashbashmkshzshosh
pass 1720151919
ok 10300
BUG 20210
FAIL 00001
total2020202020
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
3pass pass BUG BUG pass $OLDPWD
detailsdetails
4pass pass pass pass pass pwd
5pass pass pass pass pass pwd after cd ..
6pass pass pass pass pass pwd with symlink and -P
7pass pass pass pass pass setting $PWD doesn't affect the value of 'pwd' builtin
8pass pass pass pass pass unset PWD; then pwd
9pass pass pass pass pass 'unset PWD; pwd' before any cd (tickles a rare corner case)
10pass pass pass pass pass lie about PWD; pwd before any cd
11pass pass ok pass pass remove pwd dir
details
12pass pass ok pass pass pwd in symlinked dir on shell initialization
details
13pass pass pass pass pass Test the current directory after 'cd ..' involving symlinks
14pass pass pass pass pass cd with no arguments
15ok pass ok pass pass cd to nonexistent dir
detailsdetails
16pass pass pass pass pass cd away from dir that was deleted
17pass pass pass pass pass cd permits double bare dash
18pass pass pass pass pass cd to symlink with -L and -P
19pass pass pass pass pass cd to relative path with -L and -P
90 passed, 4 OK, 0 not implemented, 5 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:
mksh3 $OLDPWD

stdout:
old: /
/
stderr:
zsh3 $OLDPWD

stdout:
old: /
OLDPWD=/
stderr:
mksh11 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
mksh12 pwd in symlinked dir on shell initialization

stdout:
target
target
stderr:
dash15 cd to nonexistent dir

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

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