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 Source script that returns
16pass pass pass pass pass Exit builtin
17ok ok pass pass pass Exit builtin with invalid arg
detailsdetails
18BUG pass ok pass pass Exit builtin with too many args
detailsdetails
19BUG pass pass pass pass time block
details
20pass pass pass pass pass time pipeline
21pass pass pass pass pass shift
22ok pass pass pass pass Shifting too far
details
23ok pass BUG pass pass Invalid shift argument
detailsdetails
24pass pass pass pass pass Read builtin
25pass pass pass pass pass Read builtin with no newline.
26pass pass pass pass pass Read builtin with multiple variables
27pass pass pass pass pass Read builtin with not enough variables
28pass pass pass pass pass get umask
29N-I pass pass pass pass Read -n (with $REPLY)
details
30pass pass pass FAIL FAIL read -r ignores backslashes
detailsdetails
31pass pass pass pass pass get umask
32pass pass pass pass pass set umask in octal
33pass pass pass FAIL FAIL set umask symbolically
detailsdetails

145 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]
dash17 Exit builtin with invalid arg

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

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

stdout:
stderr: 
mksh18 Exit builtin with too many args

stdout:
stderr: 
/bin/mksh: <stdin>[1]: exit: too many arguments
dash19 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 1248maxresident)k
0inputs+0outputs (0major+29minor)pagefaults 0swaps
/bin/dash: 7: Syntax error: "}" unexpected
dash22 Shifting too far

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

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

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

stdout:
[]
stderr:
/bin/dash: 2: read: Illegal option -n
/bin/dash: 3: read: Illegal option -n
osh30 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_ALT30 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 ***
osh33 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_ALT33 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 ***