Results for builtin-meta.test.sh

statusdashbashmkshzshosh
pass 1022201625
ok 32321
N-I 90280
BUG 53210
FAIL 00001
total2727272727
casedashbashmkshzshoshdescription
0ok pass pass pass pass command -v
details
1pass pass pass pass pass command -v executable
2BUG BUG ok pass pass command -v with multiple names
detailsdetailsdetails
3BUG pass pass pass pass command -v doesn't find non-executable file
details
4ok ok ok ok pass command -V
detailsdetailsdetailsdetails
5BUG pass ok ok pass command -V nonexistent
detailsdetailsdetails
6pass pass pass pass pass command skips function lookup
7pass pass pass N-I pass command command seq 3
details
8pass pass pass N-I pass command command -v seq
details
9pass pass pass pass pass command -p (override existing program)
10pass pass pass pass pass command -p (hide tool in custom path)
11pass pass pass pass pass command -p (find hidden tool in default path)
12pass pass N-I N-I pass $(command type ls)
detailsdetails
13N-I pass pass pass pass builtin
details
14N-I pass pass pass pass builtin ls not found
details
15N-I pass pass pass pass builtin no args
details
16N-I pass pass pass pass builtin command echo hi
details
17N-I pass pass pass pass builtin typeset / export / readonly
details
18N-I pass N-I pass pass builtin declare / local
detailsdetails
19pass pass pass pass ok builtin declare a=(x y) etc.
details
20pass pass pass N-I pass command export / readonly
details
21BUG pass BUG BUG pass command local
detailsdetailsdetails
22N-I pass pass N-I pass static builtin command ASSIGN, command builtin ASSIGN
detailsdetails
23N-I pass pass N-I pass dynamic builtin command ASSIGN, command builtin ASSIGN
detailsdetails
24BUG BUG pass N-I pass Assignment builtins and word splitting, even after builtin/command
detailsdetailsdetails
25N-I BUG BUG pass pass More word splitting
detailsdetailsdetails
26ok ok pass N-I FAIL \builtin declare - ble.sh relies on it
detailsdetailsdetailsdetails
93 passed, 11 OK, 19 not implemented, 11 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 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:
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:
dash3 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 shell 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 shell function
status=0
nonexistent not found
status=1
for is a reserved word
status=0
stderr:
zsh: command not found: shopt
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:
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
dash14 builtin ls not found

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

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

stdout:
stderr: 
dash: 1: builtin: not found
dash17 builtin typeset / export / readonly

stdout:
stderr: 
dash18 builtin declare / local

stdout:
stderr: 
mksh18 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
dash22 static builtin command ASSIGN, command builtin ASSIGN

stdout:
stderr: 
zsh22 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: 
dash24 Assignment builtins and word splitting, even after builtin/command

stdout:
a b
a
stderr:
bash24 Assignment builtins and word splitting, even after builtin/command

stdout:
a b
a
stderr:
zsh24 Assignment builtins and word splitting, even after builtin/command

stdout:
a b

stderr:
zsh: command not found: readonly
dash25 More word splitting

stdout:
a

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

stdout:
a b
a
stderr:
mksh25 More word splitting

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

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

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

stdout:

stderr:
zsh: command not found: readonly
zsh: command not found: readonly
osh26 \builtin declare - ble.sh relies on it

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

stdout:
a b

stderr:
  \command readonly z=$x
           ^~~~~~~~
[ stdin ]:6: Can't run assignment builtin recursively