spec test index / oilshell.org
status | dash | bash | mksh | zsh | osh | osh_ALT | |
pass | 27 | 29 | 26 | 27 | 31 | 31 | |
ok | 3 | 2 | 4 | 0 | 0 | 0 | |
BUG | 2 | 1 | 2 | 5 | 0 | 0 | |
FAIL | 0 | 0 | 0 | 0 | 1 | 1 | |
total | 32 | 32 | 32 | 32 | 32 | 32 | |
case | dash | bash | mksh | zsh | osh | osh_ALT | description |
0 | pass | pass | pass | pass | pass | pass | exec builtin |
1 | pass | pass | pass | pass | pass | pass | exec builtin with redirects |
2 | pass | pass | pass | pass | pass | pass | exec builtin with here doc |
3 | pass | pass | pass | pass | pass | pass | cd and $PWD |
4 | pass | pass | BUG | BUG | pass | pass | $OLDPWD |
details | details | ||||||
5 | pass | pass | pass | pass | pass | pass | pwd |
6 | pass | pass | pass | pass | pass | pass | pwd after cd .. |
7 | pass | pass | pass | pass | pass | pass | pwd with symlink and -P |
8 | pass | pass | pass | pass | pass | pass | setting $PWD doesn't affect the value of 'pwd' builtin |
9 | pass | pass | pass | pass | pass | pass | unset PWD; then pwd |
10 | pass | pass | pass | pass | pass | pass | 'unset PWD; pwd' before any cd (tickles a rare corner case) |
11 | pass | pass | pass | pass | pass | pass | lie about PWD; pwd before any cd |
12 | pass | pass | ok | pass | pass | pass | remove pwd dir |
details | |||||||
13 | pass | pass | ok | pass | pass | pass | pwd in symlinked dir on shell initialization |
details | |||||||
14 | pass | pass | pass | pass | pass | pass | Test the current directory after 'cd ..' involving symlinks |
15 | pass | pass | pass | pass | pass | pass | cd with no arguments |
16 | ok | pass | ok | pass | pass | pass | cd to nonexistent dir |
details | details | ||||||
17 | pass | pass | pass | pass | pass | pass | cd away from dir that was deleted |
18 | pass | pass | pass | pass | pass | pass | cd permits double bare dash |
19 | pass | pass | pass | pass | pass | pass | cd to symlink with -L and -P |
20 | pass | pass | pass | pass | pass | pass | cd to relative path with -L and -P |
21 | pass | pass | pass | pass | pass | pass | Exit out of function |
22 | ok | ok | pass | BUG | pass | pass | Exit builtin with invalid arg |
details | details | details | |||||
23 | BUG | BUG | ok | BUG | pass | pass | Exit builtin with too many args |
details | details | details | details | ||||
24 | BUG | pass | pass | BUG | pass | pass | time block |
details | details | ||||||
25 | pass | pass | pass | pass | pass | pass | time pipeline |
26 | pass | pass | pass | pass | pass | pass | shift |
27 | ok | pass | pass | pass | pass | pass | Shifting too far |
details | |||||||
28 | pass | ok | BUG | BUG | pass | pass | Invalid shift argument |
details | details | details | |||||
29 | pass | pass | pass | pass | pass | pass | get umask |
30 | pass | pass | pass | pass | pass | pass | set umask in octal |
31 | pass | pass | pass | pass | FAIL | FAIL | set umask symbolically |
details | details |
171 passed, 9 OK, 0 not implemented, 10 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
mksh | 4 $OLDPWD stdout: old: / /stderr: |
zsh | 4 $OLDPWD stdout: old: / OLDPWD=/stderr: |
mksh | 12 remove pwd dir stdout: /tmp/oil-spec-test/pwd status=0 status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[7]: pwd: can't determine current directory: No such file or directory |
mksh | 13 pwd in symlinked dir on shell initialization stdout: target targetstderr: |
dash | 16 cd to nonexistent dir stdout: status=2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: cd: can't cd to /nonexistent/dir |
mksh | 16 cd to nonexistent dir stdout: status=2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: cd: /nonexistent/dir: No such file or directory |
dash | 22 Exit builtin with invalid arg stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: exit: Illegal number: invalid |
bash | 22 Exit builtin with invalid arg stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: exit: invalid: numeric argument required |
zsh | 22 Exit builtin with invalid arg stdout: stderr: |
dash | 23 Exit builtin with too many args stdout: stderr: |
bash | 23 Exit builtin with too many args stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: exit: too many arguments |
mksh | 23 Exit builtin with too many args stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: exit: too many arguments |
zsh | 23 Exit builtin with too many args stdout: status=1stderr: exit: too many arguments |
dash | 24 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 1168maxresident)k 0inputs+0outputs (0major+28minor)pagefaults 0swaps /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 7: Syntax error: "}" unexpected |
zsh | 24 time block stdout: stderr: |
dash | 27 Shifting too far stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: shift: can't shift that many |
bash | 28 Invalid shift argument stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shift: ZZZ: numeric argument required |
mksh | 28 Invalid shift argument stdout: stderr: |
zsh | 28 Invalid shift argument stdout: stderr: |
osh | 31 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 664stderr: osh warning: umask with symbolic input isn't implemented |
osh_ALT | 31 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 664stderr: osh warning: umask with symbolic input isn't implemented |