Results for builtins.test.sh

casedashbashmkshoshosh_ALTdescription
0pass pass pass pass pass echo dashes
1N-I pass pass FAIL FAIL echo -en
detailsdetailsdetails
2BUG pass BUG pass pass echo -ez (invalid flag)
detailsdetails
3pass pass pass pass pass exec builtin
4pass pass pass pass pass exec builtin with redirects
5pass pass pass pass pass exec builtin with here doc
6pass pass pass pass pass cd and $PWD
7pass pass pass pass pass $OLDPWD
8pass pass pass pass pass cd with no arguments
9ok pass ok pass pass cd to nonexistent dir
detailsdetails
10N-I pass N-I pass pass pushd/popd
detailsdetails
11pass pass pass pass pass Eval
12pass pass pass pass pass Source
13ok pass pass pass pass Source nonexistent
details
14ok ok pass pass pass Source with no arguments
detailsdetails
15pass pass pass pass pass Exit builtin
16ok ok pass pass pass Exit builtin with invalid arg
detailsdetails
17BUG pass ok pass pass Exit builtin with too many args
detailsdetails
18BUG pass pass pass pass time block
details
19pass pass pass pass pass time pipeline
20pass pass pass pass pass shift
21ok pass pass pass pass Shifting too far
details
22ok pass BUG pass pass Invalid shift argument
detailsdetails
23pass pass pass pass pass Read builtin
24pass pass pass pass pass Read builtin with no newline.
25pass pass pass pass pass Read builtin with multiple variables
26pass pass pass pass pass Read builtin with not enough variables
27pass pass pass pass pass get umask
28N-I pass pass pass pass Read -n (with $REPLY)
details
29pass pass pass FAIL FAIL read -r ignores backslashes
detailsdetails
30pass pass pass pass pass get umask
31pass pass pass pass pass set umask in octal
32pass pass pass FAIL FAIL set umask symbolically
detailsdetails

140 passed, 10 ok, 4 known unimplemented, 5 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

dash1 echo -en

stdout:
-en abc
def

stderr:
osh1 echo -en

[osh stdout] Expected u'abc\ndef\n', got 'abc\\ndef\\n'

stdout:
abc\ndef\n
stderr:
osh warning: *** echo -e not implemented ***
osh_ALT1 echo -en

[osh_ALT stdout] Expected u'abc\ndef\n', got 'abc\\ndef\\n'

stdout:
abc\ndef\n
stderr:
osh warning: *** echo -e not implemented ***
dash2 echo -ez (invalid flag)

stdout:
-ez abc

stderr:
mksh2 echo -ez (invalid flag)

stdout:
-ez abc

stderr:
dash9 cd to nonexistent dir

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

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

stdout:
stderr: 
/bin/dash: 3: pushd: not found
mksh10 pushd/popd

stdout:
stderr: 
/bin/mksh: <stdin>[3]: pushd: not found
dash13 Source nonexistent

stdout:
status=127
stderr:
/bin/dash: 1: source: not found
dash14 Source with no arguments

stdout:
status=127
stderr:
/bin/dash: 1: source: not found
bash14 Source with no arguments

stdout:
status=2
stderr:
/bin/bash: line 1: source: filename argument required
source: usage: source filename [arguments]
dash16 Exit builtin with invalid arg

stdout:
stderr: 
/bin/dash: 1: exit: Illegal number: invalid
bash16 Exit builtin with invalid arg

stdout:
stderr: 
/bin/bash: line 1: exit: invalid: numeric argument required
dash17 Exit builtin with too many args

stdout:
stderr: 
mksh17 Exit builtin with too many args

stdout:
stderr: 
/bin/mksh: <stdin>[1]: exit: too many arguments
dash18 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
/bin/dash: 7: Syntax error: "}" unexpected
dash21 Shifting too far

stdout:
stderr: 
/bin/dash: 2: shift: can't shift that many
dash22 Invalid shift argument

stdout:
stderr: 
/bin/dash: 1: shift: Illegal number: ZZZ
mksh22 Invalid shift argument

stdout:
stderr: 
dash28 Read -n (with $REPLY)

stdout:
[]
stderr:
/bin/dash: 2: read: Illegal option -n
/bin/dash: 3: read: Illegal option -n
osh29 read -r ignores backslashes

[osh stdout] Expected "['one two', 'one\\\\ two']\n", got "['one\\\\ two', 'one\\\\ two']\n"

stdout:
['one\\ two', 'one\\ two']
stderr:
osh warning: *** read without -r not implemented ***
osh_ALT29 read -r ignores backslashes

[osh_ALT stdout] Expected "['one two', 'one\\\\ two']\n", got "['one\\\\ two', 'one\\\\ two']\n"

stdout:
['one\\ two', 'one\\ two']
stderr:
osh warning: *** read without -r not implemented ***
osh32 set umask symbolically

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

stdout:
664
664
stderr:
osh warning: *** umask with symbolic input not implemented ***
osh_ALT32 set umask symbolically

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

stdout:
664
664
stderr:
osh warning: *** umask with symbolic input not implemented ***