Results for builtin-meta.test.sh

statusoshosh-cpp
pass 1717
FAIL 66
total2323
caseoshosh-cppdescription
0pass pass command -v
1pass pass command -v with multiple names
2pass pass command -v doesn't find non-executable file
3pass pass command -V
4pass pass command -V nonexistent
5pass pass command skips function lookup
6pass pass command command seq 3
7pass pass command command -v seq
8pass pass command -p (override existing program)
9pass pass command -p (hide tool in custom path)
10pass pass command -p (find hidden tool in default path)
11pass pass $(command type ls)
12pass pass builtin
13pass pass builtin ls not found
14pass pass builtin no args
15pass pass builtin command echo hi
16FAIL FAIL builtin typeset / export / readonly
detailsdetails
17FAIL FAIL builtin declare / local
detailsdetails
18pass pass builtin declare etc. with array is not parsed
19FAIL FAIL command export / readonly
detailsdetails
20FAIL FAIL command local
detailsdetails
21FAIL FAIL static builtin command ASSIGN, command builtin ASSIGN
detailsdetails
22FAIL FAIL dynamic builtin command ASSIGN, command builtin ASSIGN
detailsdetails
34 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

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
osh-cpp16 builtin typeset / export / readonly

[osh-cpp 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
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
osh-cpp17 builtin declare / local

[osh-cpp 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
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
osh-cpp19 command export / readonly

[osh-cpp 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
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
osh-cpp20 command local

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

stdout:
s=
stderr:
    command local s=local
            ^~~~~
[ stdin ]:2: Can't run assignment builtin recursively
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
osh-cpp21 static builtin command ASSIGN, command builtin ASSIGN

[osh-cpp 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
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
osh-cpp22 dynamic builtin command ASSIGN, command builtin ASSIGN

[osh-cpp 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