Results for builtins2.test.sh

statusdashbashmkshzshosh
pass 714121119
ok 34530
N-I 60140
BUG 31110
total1919191919
casedashbashmkshzshoshdescription
0ok ok ok ok pass Print shell strings with weird chars: set and printf %q and ${x@Q}
detailsdetailsdetailsdetails
1N-I ok ok N-I pass Print shell strings with normal chars: set and printf %q and ${x@Q}
detailsdetailsdetailsdetails
2ok pass pass pass pass command -v
details
3BUG BUG ok pass pass command -v with multiple names
detailsdetailsdetails
4BUG pass pass pass pass command -v doesn't find non-executable file
details
5ok ok ok ok pass command -V
detailsdetailsdetailsdetails
6BUG pass ok ok pass command -V nonexistent
detailsdetailsdetails
7pass pass pass pass pass command skips function lookup
8pass pass pass N-I pass command command seq 3
details
9pass pass pass N-I pass command command -v seq
details
10N-I ok BUG BUG pass history usage
detailsdetailsdetailsdetails
11pass pass pass pass pass command -p (override existing program)
12pass pass pass pass pass command -p (hide tool in custom path)
13pass pass pass pass pass command -p (find hidden tool in default path)
14pass pass N-I N-I pass $(command type ls)
detailsdetails
15N-I pass pass pass pass builtin
details
16N-I pass pass pass pass builtin ls not found
details
17N-I pass pass pass pass builtin no args
details
18N-I pass pass pass pass builtin command echo hi
details
63 passed, 15 OK, 11 not implemented, 6 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 Print shell strings with weird chars: set and printf %q and ${x@Q}

stdout:
stderr: 
bash0 Print shell strings with weird chars: set and printf %q and ${x@Q}

stdout:
foo=$'a\nb\001c\'d'
pf  $'a\nb\001c\'d'
@Q  $'a\nb\001c\'d'
stderr:
mksh0 Print shell strings with weird chars: set and printf %q and ${x@Q}

stdout:
stderr: 
zsh0 Print shell strings with weird chars: set and printf %q and ${x@Q}

stdout:
stderr: 
dash1 Print shell strings with normal chars: set and printf %q and ${x@Q}

stdout:
stderr: 
bash1 Print shell strings with normal chars: set and printf %q and ${x@Q}

stdout:
foo=spam
declare -- foo="spam"
pf  spam
@Q  'spam'
stderr:
mksh1 Print shell strings with normal chars: set and printf %q and ${x@Q}

stdout:
foo=spam
typeset foo=spam
pf  spam
@Q  spam
stderr:
zsh1 Print shell strings with normal chars: set and printf %q and ${x@Q}

stdout:
stderr: 
dash2 command -v

stdout:
echo
0
myfunc
0
127
for
0
stderr:
dash3 command -v with multiple names

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

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

stdout:
echo
myfunc
status=1
stderr:
dash4 command -v doesn't find non-executable file

stdout:
_tmp/non-executable
status=0
_tmp/executable
status=0
stderr:
dash5 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
bash5 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
mksh5 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
zsh5 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
dash6 command -V nonexistent

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

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

stdout:
nonexistent not found
status=1
stderr:
zsh8 command command seq 3

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

stdout:
stderr: 
zsh: command not found: command
dash10 history usage

stdout:
status=127
status=127
status=127
status=127
status=127
stderr:
dash: 1: history: not found
dash: 3: history: not found
dash: 5: history: not found
dash: 7: history: not found
dash: 9: history: not found
bash10 history usage

stdout:
status=0
status=0
status=2
status=1
status=1
stderr:
bash: line 5: history: -5: invalid option
history: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]
bash: line 7: history: f: numeric argument required
bash: line 9: history: too: numeric argument required
mksh10 history usage

stdout:
status=1
status=1
status=1
status=1
status=1
stderr:
mksh: fc: history functions not available
mksh: <stdin>[3]: fc: history functions not available
mksh: <stdin>[5]: fc: history functions not available
mksh: <stdin>[7]: fc: history functions not available
mksh: <stdin>[9]: fc: history functions not available
zsh10 history usage

stdout:
status=1
status=1
status=1
status=1
status=1
stderr:
fc: no such event: 1
fc: no such event: 5
fc: no such event: 0
fc: event not found: f
fc: event not found: too
mksh14 $(command type ls)

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

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

stdout:
hi
stderr:
dash: 3: builtin: not found
dash16 builtin ls not found

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

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

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