Results for builtins.test.sh

statusdashbashmkshzshoshosh_ALT
pass 273227303333
ok 324000
BUG 514500
FAIL 000022
total353535353535
casedashbashmkshzshoshosh_ALTdescription
0pass pass pass pass pass pass exec builtin
1pass pass pass pass pass pass exec builtin with redirects
2pass pass pass pass pass pass exec builtin with here doc
3BUG pass pass pass pass pass exec builtin accepts --
details
4BUG pass BUG pass pass pass exec -- 2>&1
detailsdetails
5pass pass pass pass pass pass cd and $PWD
6BUG pass BUG pass FAIL FAIL cd BAD/..
detailsdetailsdetailsdetails
7pass pass BUG BUG pass pass $OLDPWD
detailsdetails
8pass pass pass pass pass pass pwd
9pass pass pass pass pass pass pwd after cd ..
10pass pass pass pass pass pass pwd with symlink and -P
11pass pass pass pass pass pass setting $PWD doesn't affect the value of 'pwd' builtin
12pass pass pass pass pass pass unset PWD; then pwd
13pass pass pass pass pass pass 'unset PWD; pwd' before any cd (tickles a rare corner case)
14pass pass pass pass pass pass lie about PWD; pwd before any cd
15pass pass ok pass pass pass remove pwd dir
details
16pass pass ok pass pass pass pwd in symlinked dir on shell initialization
details
17pass pass pass pass pass pass Test the current directory after 'cd ..' involving symlinks
18pass pass pass pass pass pass cd with no arguments
19ok pass ok pass pass pass cd to nonexistent dir
detailsdetails
20pass pass pass pass pass pass cd away from dir that was deleted
21pass pass pass pass pass pass cd permits double bare dash
22pass pass pass pass pass pass cd to symlink with -L and -P
23pass pass pass pass pass pass cd to relative path with -L and -P
24pass pass pass pass pass pass Exit out of function
25ok ok pass BUG pass pass Exit builtin with invalid arg
detailsdetailsdetails
26BUG BUG ok BUG pass pass Exit builtin with too many args
detailsdetailsdetailsdetails
27BUG pass pass BUG pass pass time block
detailsdetails
28pass pass pass pass pass pass time pipeline
29pass pass pass pass pass pass shift
30ok pass pass pass pass pass Shifting too far
details
31pass ok BUG BUG pass pass Invalid shift argument
detailsdetailsdetails
32pass pass pass pass pass pass get umask
33pass pass pass pass pass pass set umask in octal
34pass pass pass pass FAIL FAIL set umask symbolically
detailsdetails
182 passed, 9 OK, 0 not implemented, 15 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

dash3 exec builtin accepts --

stdout:
stderr: 
dash: 1: exec: --: not found
dash4 exec -- 2>&1

stdout:
stderr: 
dash: 1: exec: --: not found
mksh4 exec -- 2>&1

stdout:
stderr: 
dash6 cd BAD/..

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

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

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

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

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

stdout:
status=0
stderr:
mksh7 $OLDPWD

stdout:
old: /
/
stderr:
zsh7 $OLDPWD

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

stdout:
target
target
stderr:
dash19 cd to nonexistent dir

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

stdout:
status=2
stderr:
mksh: <stdin>[1]: cd: /nonexistent/dir: No such file or directory
dash25 Exit builtin with invalid arg

stdout:
stderr: 
dash: 1: exit: Illegal number: invalid
bash25 Exit builtin with invalid arg

stdout:
stderr: 
bash: line 1: exit: invalid: numeric argument required
zsh25 Exit builtin with invalid arg

stdout:
stderr: 
dash26 Exit builtin with too many args

stdout:
stderr: 
bash26 Exit builtin with too many args

stdout:
status=1
stderr:
bash: line 1: exit: too many arguments
mksh26 Exit builtin with too many args

stdout:
stderr: 
mksh: <stdin>[1]: exit: too many arguments
zsh26 Exit builtin with too many args

stdout:
status=1
stderr:
exit: too many arguments
dash27 time block

stdout:
stderr: 
time: cannot run {: No such file or directory
Command exited with non-zero status 127
0.00user 0.00system 0:00.00elapsed ?%CPU (0avgtext+0avgdata 1176maxresident)k
0inputs+0outputs (0major+28minor)pagefaults 0swaps
dash: 7: Syntax error: "}" unexpected
zsh27 time block

stdout:
stderr: 
dash30 Shifting too far

stdout:
stderr: 
dash: 2: shift: can't shift that many
bash31 Invalid shift argument

stdout:
stderr: 
bash: line 1: shift: ZZZ: numeric argument required
mksh31 Invalid shift argument

stdout:
stderr: 
zsh31 Invalid shift argument

stdout:
stderr: 
osh34 set umask symbolically

[osh stdout] Expected '664\n644\n', got '664\n664\n'
[osh stderr] Expected u'', got "osh warning: umask with symbolic input isn't implemented\n"

stdout:
664
664
stderr:
osh warning: umask with symbolic input isn't implemented
osh_ALT34 set umask symbolically

[osh_ALT stdout] Expected '664\n644\n', got '664\n664\n'
[osh_ALT stderr] Expected u'', got "osh warning: umask with symbolic input isn't implemented\n"

stdout:
664
664
stderr:
osh warning: umask with symbolic input isn't implemented