Results for builtin-meta.test.sh

statusdashbashmkshzshashosh
pass 102219171224
ok 213221
N-I 10049100
BUG 652040
FAIL 000003
total282828282828
casedashbashmkshzshashoshdescription
0ok pass pass pass ok pass command -v
detailsdetails
1pass pass pass pass pass pass command -v executable
2BUG BUG ok pass BUG pass command -v with multiple names
detailsdetailsdetailsdetails
3BUG pass pass pass BUG pass command -v doesn't find non-executable file
detailsdetails
4ok ok ok ok ok pass command -V
detailsdetailsdetailsdetailsdetails
5BUG pass ok ok BUG pass command -V nonexistent
detailsdetailsdetailsdetails
6pass pass pass pass pass pass command skips function lookup
7pass pass pass N-I pass pass command command seq 3
details
8pass pass pass N-I pass pass command command -v seq
details
9pass pass pass pass pass pass command -p (override existing program)
10pass pass pass pass pass pass command -p (hide tool in custom path)
11pass pass pass pass pass pass command -p (find hidden tool in default path)
12pass pass N-I N-I pass pass $(command type ls)
detailsdetails
13N-I pass pass pass N-I pass builtin
detailsdetails
14N-I pass pass pass N-I pass builtin ls not found
detailsdetails
15N-I pass pass pass N-I pass builtin no args
detailsdetails
16N-I pass pass pass N-I pass builtin command echo hi
detailsdetails
17N-I pass pass pass N-I pass builtin typeset / export / readonly
detailsdetails
18N-I pass N-I pass N-I pass builtin declare / local
detailsdetailsdetails
19pass pass pass pass pass ok builtin declare a=(x y) etc.
details
20pass pass pass N-I pass pass command export / readonly
details
21BUG pass N-I N-I BUG pass command local
detailsdetailsdetailsdetails
22N-I pass pass N-I N-I pass static builtin command ASSIGN, command builtin ASSIGN
detailsdetailsdetails
23N-I pass pass N-I N-I pass dynamic builtin command ASSIGN, command builtin ASSIGN
detailsdetailsdetails
24N-I BUG BUG pass N-I pass More word splitting
detailsdetailsdetailsdetails
25N-I BUG N-I pass N-I FAIL \builtin declare - ble.sh relies on it
detailsdetailsdetailsdetailsdetails
26BUG BUG pass N-I pass FAIL \command readonly - similar issue
detailsdetailsdetailsdetails
27BUG BUG BUG N-I pass FAIL Dynamic $c readonly - bash and dash change behavior, mksh bug
detailsdetailsdetailsdetailsdetails
104 passed, 11 OK, 33 not implemented, 17 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

dash0 command -v

stdout:
echo
0
myfunc
0
nonexistent=127
empty=127
for
0
stderr:
ash0 command -v

stdout:
echo
0
myfunc
0
nonexistent=127
empty=127
for
0
stderr:
dash2 command -v with multiple names

stdout:
echo
status=0
stderr:
bash2 command -v with multiple names

stdout:
echo
myfunc
for
status=0
stderr:
mksh2 command -v with multiple names

stdout:
echo
myfunc
status=1
stderr:
ash2 command -v with multiple names

stdout:
echo
status=0
stderr:
dash3 command -v doesn't find non-executable file

stdout:
_tmp/non-executable
status=0
_tmp/executable
status=0
stderr:
ash3 command -v doesn't find non-executable file

stdout:
_tmp/non-executable
status=0
_tmp/executable
status=0
stderr:
dash4 command -V

stdout:
ll is an alias for ls -l
status=0
echo is a shell builtin
status=0
myfunc is a function
status=0
nonexistent: not found
status=127
for is a shell keyword
status=0
stderr:
dash: 3: shopt: not found
bash4 command -V

stdout:
ll is aliased to 'ls -l'
status=0
echo is a shell builtin
status=0
myfunc is a function
myfunc () 
{ 
    echo x
}
status=0
status=1
for is a shell keyword
status=0
stderr:
bash: line 16: command: nonexistent: not found
mksh4 command -V

stdout:
ll is an alias for 'ls -l'
status=0
echo is a shell builtin
status=0
myfunc is a function
status=0
nonexistent not found
status=1
for is a reserved word
status=0
stderr:
mksh: <stdin>[3]: shopt: not found
zsh4 command -V

stdout:
ll is an alias for ls -l
status=0
echo is a shell builtin
status=0
myfunc is a function
status=0
nonexistent not found
status=1
for is a reserved word
status=0
stderr:
zsh: command not found: shopt
ash4 command -V

stdout:
ll is an alias for ls -l
status=0
echo is a shell builtin
status=0
myfunc is a function
status=0
nonexistent: not found
status=127
for is a shell keyword
status=0
stderr:
ash: shopt: not found
dash5 command -V nonexistent

stdout:
nonexistent: not found
status=127
stderr:
mksh5 command -V nonexistent

stdout:
nonexistent not found
status=1
stderr:
zsh5 command -V nonexistent

stdout:
nonexistent not found
status=1
stderr:
ash5 command -V nonexistent

stdout:
nonexistent: not found
status=127
stderr:
zsh7 command command seq 3

stdout:
stderr: 
zsh: command not found: command
zsh8 command command -v seq

stdout:
stderr: 
zsh: command not found: command
mksh12 $(command type ls)

stdout:
status=1
stderr:
mksh: <stdin>[3]: type: not found
zsh12 $(command type ls)

stdout:
FUNCTION
status=1
stderr:
zsh: command not found: type
dash13 builtin

stdout:
hi
stderr:
dash: 3: builtin: not found
ash13 builtin

stdout:
hi
stderr:
ash: builtin: not found
dash14 builtin ls not found

stdout:
stderr: 
dash: 1: builtin: not found
ash14 builtin ls not found

stdout:
stderr: 
ash: builtin: not found
dash15 builtin no args

stdout:
stderr: 
dash: 1: builtin: not found
ash15 builtin no args

stdout:
stderr: 
ash: builtin: not found
dash16 builtin command echo hi

stdout:
stderr: 
dash: 1: builtin: not found
ash16 builtin command echo hi

stdout:
stderr: 
ash: builtin: not found
dash17 builtin typeset / export / readonly

stdout:
stderr: 
ash17 builtin typeset / export / readonly

stdout:
stderr: 
dash18 builtin declare / local

stdout:
stderr: 
mksh18 builtin declare / local

stdout:
stderr: 
ash18 builtin declare / local

stdout:
stderr: 
osh19 builtin declare a=(x y) etc.

stdout:
stderr: 
zsh20 command export / readonly

stdout:
stderr: 
dash21 command local

stdout:
s=
stderr:
mksh21 command local

stdout:
s=
stderr:
mksh: <stdin>[6]: local: not found
zsh21 command local

stdout:
s=
stderr:
f:1: command not found: local
ash21 command local

stdout:
s=
stderr:
dash22 static builtin command ASSIGN, command builtin ASSIGN

stdout:
stderr: 
zsh22 static builtin command ASSIGN, command builtin ASSIGN

stdout:
stderr: 
ash22 static builtin command ASSIGN, command builtin ASSIGN

stdout:
stderr: 
dash23 dynamic builtin command ASSIGN, command builtin ASSIGN

stdout:
stderr: 
zsh23 dynamic builtin command ASSIGN, command builtin ASSIGN

stdout:
stderr: 
ash23 dynamic builtin command ASSIGN, command builtin ASSIGN

stdout:
stderr: 
dash24 More word splitting

stdout:
a

stderr:
dash: 6: builtin: not found
bash24 More word splitting

stdout:
a b
a
stderr:
mksh24 More word splitting

stdout:
a b
a
stderr:
ash24 More word splitting

stdout:
a b

stderr:
ash: builtin: not found
dash25 \builtin declare - ble.sh relies on it

stdout:
stderr: 
bash25 \builtin declare - ble.sh relies on it

stdout:
a
a
a
a
a
stderr:
mksh25 \builtin declare - ble.sh relies on it

stdout:
stderr: 
ash25 \builtin declare - ble.sh relies on it

stdout:
stderr: 
osh25 \builtin declare - ble.sh relies on it

[osh stdout] Expected 'a b\na b\na b\na b\na b\n', got 'a b\n\na b\na b\n\n'

stdout:
a b

a b
a b

stderr:
  \builtin declare d=$x
           ^~~~~~~
[ stdin ]:8: 'builtin' can't run assignment builtin
  ${b}uiltin declare g=$x
             ^~~~~~~
[ stdin ]:19: 'builtin' can't run assignment builtin
dash26 \command readonly - similar issue

stdout:
a
a
a
a
stderr:
bash26 \command readonly - similar issue

stdout:
a b
a
a
a
stderr:
zsh26 \command readonly - similar issue

stdout:
stderr: 
osh26 \command readonly - similar issue

[osh stdout] Expected 'a b\na b\na b\na b\n', got 'a b\na b\n\na b\n'

stdout:
a b
a b

a b
stderr:
  \command readonly d=$x
           ^~~~~~~~
[ stdin ]:12: Simple command can't run assignment builtin
dash27 Dynamic $c readonly - bash and dash change behavior, mksh bug

stdout:
a
a
stderr:
bash27 Dynamic $c readonly - bash and dash change behavior, mksh bug

stdout:
a
a
stderr:
mksh27 Dynamic $c readonly - bash and dash change behavior, mksh bug

stdout:
a
stderr:
mksh: <stdin>[10]: read-only: b
zsh27 Dynamic $c readonly - bash and dash change behavior, mksh bug

stdout:
stderr: 
osh27 Dynamic $c readonly - bash and dash change behavior, mksh bug

[osh stdout] Expected 'a b\na b\n', got 'a b\n\n'

stdout:
a b

stderr:
  ${z}ommand readonly d=$x
             ^~~~~~~~
[ stdin ]:10: Simple command can't run assignment builtin