Results for builtin-meta.test.sh

statusdashbashmkshzshashosh
pass 8151312817
ok 213220
N-I 401340
BUG 310030
total171717171717
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
73 passed, 10 OK, 12 not implemented, 7 BUG, 0 failed, 0 timeouts, 0 cases skipped

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