Results for builtin-meta.test.sh

statusdashbashmkshzshosh
pass 921171417
ok 21320
N-I 80260
BUG 41110
FAIL 00006
total2323232323
casedashbashmkshzshoshdescription
0ok pass pass pass pass command -v
details
1BUG BUG ok pass pass command -v with multiple names
detailsdetailsdetails
2BUG pass pass pass pass command -v doesn't find non-executable file
details
3ok ok ok ok pass command -V
detailsdetailsdetailsdetails
4BUG pass ok ok pass command -V nonexistent
detailsdetailsdetails
5pass pass pass pass pass command skips function lookup
6pass pass pass N-I pass command command seq 3
details
7pass pass pass N-I pass command command -v seq
details
8pass pass pass pass pass command -p (override existing program)
9pass pass pass pass pass command -p (hide tool in custom path)
10pass pass pass pass pass command -p (find hidden tool in default path)
11pass pass N-I N-I pass $(command type ls)
detailsdetails
12N-I pass pass pass pass builtin
details
13N-I pass pass pass pass builtin ls not found
details
14N-I pass pass pass pass builtin no args
details
15N-I pass pass pass pass builtin command echo hi
details
16N-I pass pass pass FAIL builtin typeset / export / readonly
detailsdetails
17N-I pass N-I pass FAIL builtin declare / local
detailsdetailsdetails
18pass pass pass pass pass builtin declare etc. with array is not parsed
19pass pass pass N-I FAIL command export / readonly
detailsdetails
20BUG pass BUG BUG FAIL command local
detailsdetailsdetailsdetails
21N-I pass pass N-I FAIL static builtin command ASSIGN, command builtin ASSIGN
detailsdetailsdetails
22N-I pass pass N-I FAIL dynamic builtin command ASSIGN, command builtin ASSIGN
detailsdetailsdetails
78 passed, 8 OK, 16 not implemented, 7 BUG, 6 failed, 0 timeouts, 0 cases skipped
6 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:
dash1 command -v with multiple names

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

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

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

stdout:
_tmp/non-executable
status=0
_tmp/executable
status=0
stderr:
dash3 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
bash3 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
mksh3 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
zsh3 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
dash4 command -V nonexistent

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

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

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

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

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

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

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

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

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

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

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

stdout:
stderr: 
osh16 builtin typeset / export / readonly

[osh stdout] Expected 's=typeset\ns=export\ns=readonly\n--\ns2=typeset\ns2=export\ns2=readonly\n' Got 's=\ns=\ns=\n--\ns2=\ns2=\ns2=\n'

stdout:
s=
s=
s=
--
s2=
s2=
s2=
stderr:
  builtin typeset s=typeset
          ^~~~~~~
[ stdin ]:3: Can't run assignment builtin recursively
  builtin export s=export
          ^~~~~~
[ stdin ]:6: Can't run assignment builtin recursively
  builtin readonly s=readonly
          ^~~~~~~~
[ stdin ]:9: Can't run assignment builtin recursively
  builtin builtin typeset s2=typeset
                  ^~~~~~~
[ stdin ]:14: Can't run assignment builtin recursively
  builtin builtin export s2=export
                  ^~~~~~
[ stdin ]:17: Can't run assignment builtin recursively
  builtin builtin readonly s2=readonly
                  ^~~~~~~~
[ stdin ]:20: Can't run assignment builtin recursively
dash17 builtin declare / local

stdout:
stderr: 
mksh17 builtin declare / local

stdout:
stderr: 
osh17 builtin declare / local

[osh stdout] Expected 's=declare\ns=local\n', got 's=\ns=\n'

stdout:
s=
s=
stderr:
  builtin declare s=declare
          ^~~~~~~
[ stdin ]:3: Can't run assignment builtin recursively
    builtin local s=local
            ^~~~~
[ stdin ]:7: Can't run assignment builtin recursively
zsh19 command export / readonly

stdout:
stderr: 
osh19 command export / readonly

[osh stdout] Expected 'c=export\nc=readonly\n--\ncc=export\ncc=readonly\n' Got 'c=\nc=\n--\ncc=\ncc=\n'

stdout:
c=
c=
--
cc=
cc=
stderr:
  command export c=export
          ^~~~~~
[ stdin ]:4: Can't run assignment builtin recursively
  command readonly c=readonly
          ^~~~~~~~
[ stdin ]:7: Can't run assignment builtin recursively
  command command export cc=export
                  ^~~~~~
[ stdin ]:12: Can't run assignment builtin recursively
  command command readonly cc=readonly
                  ^~~~~~~~
[ stdin ]:15: Can't run assignment builtin recursively
dash20 command local

stdout:
s=
stderr:
mksh20 command local

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

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

[osh stdout] Expected 's=local\n', got 's=\n'

stdout:
s=
stderr:
    command local s=local
            ^~~~~
[ stdin ]:2: Can't run assignment builtin recursively
dash21 static builtin command ASSIGN, command builtin ASSIGN

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

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

[osh stdout] Expected 'bc=export\nbc=readonly\n--\ncb=export\ncb=readonly\n' Got 'bc=\nbc=\n--\ncb=\ncb=\n'

stdout:
bc=
bc=
--
cb=
cb=
stderr:
  builtin command export bc=export
                  ^~~~~~
[ stdin ]:4: Can't run assignment builtin recursively
  builtin command readonly bc=readonly
                  ^~~~~~~~
[ stdin ]:7: Can't run assignment builtin recursively
  command builtin export cb=export
                  ^~~~~~
[ stdin ]:12: Can't run assignment builtin recursively
  command builtin readonly cb=readonly
                  ^~~~~~~~
[ stdin ]:15: Can't run assignment builtin recursively
dash22 dynamic builtin command ASSIGN, command builtin ASSIGN

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

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

[osh stdout] Expected 'bc=export\nbc=readonly\n--\ncb=export\ncb=readonly\n--\nbce=export\nbcr=readonly\n--\ncbe=export\ncbr=readonly\n' Got 'bc=\nbc=\n--\ncb=\ncb=\n--\nbce=\nbcr=\n--\ncbe=\ncbr=\n'

stdout:
bc=
bc=
--
cb=
cb=
--
bce=
bcr=
--
cbe=
cbr=
stderr:
  $b $c export bc=export
        ^~~~~~
[ stdin ]:8: Can't run assignment builtin recursively
  $b $c readonly bc=readonly
        ^~~~~~~~
[ stdin ]:11: Can't run assignment builtin recursively
  $c $b export cb=export
        ^~~~~~
[ stdin ]:16: Can't run assignment builtin recursively
  $c $b readonly cb=readonly
        ^~~~~~~~
[ stdin ]:19: Can't run assignment builtin recursively
  $b $c $e bce=export
        ^~
[ stdin ]:24: Can't run assignment builtin recursively
  $b $c $r bcr=readonly
        ^~
[ stdin ]:27: Can't run assignment builtin recursively
  $c $b $e cbe=export
        ^~
[ stdin ]:32: Can't run assignment builtin recursively
  $c $b $r cbr=readonly
        ^~
[ stdin ]:35: Can't run assignment builtin recursively