Results for assign-deferred.test.sh

statusoshosh-cpp
FAIL 99
total99
caseoshosh-cppdescription
0FAIL FAIL typeset a[3]=4
detailsdetails
1FAIL FAIL typeset -a a[1]=a a[3]=c
detailsdetails
2FAIL FAIL local a[3]=4
detailsdetails
3FAIL FAIL readonly a[7]=8
detailsdetails
4FAIL FAIL export a[7]=8
detailsdetails
5FAIL FAIL 'builtin' prefix is allowed on assignments
detailsdetails
6FAIL FAIL 'command' prefix is allowed on assignments
detailsdetails
7FAIL FAIL 'builtin' prefix and array is a parse error
detailsdetails
8FAIL FAIL 'command' prefix and array is a parse error
detailsdetails
0 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped
9 failed under osh

Details on runs that didn't PASS

osh0 typeset a[3]=4

[osh stdout] Expected "status=0\n['3', '5', '4', '6']\n", got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  typeset a[3]=4 a[5]=6
          ^~
[ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[3]=4'
osh-cpp0 typeset a[3]=4

[osh-cpp stdout] Expected "status=0\n['3', '5', '4', '6']\n", got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  typeset a[3]=4 a[5]=6
          ^~
[ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[3]=4'
osh1 typeset -a a[1]=a a[3]=c

[osh stdout] Expected "['x', 'z']\n", got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  typeset -a a[1*1]=x a[1+2]=z
             ^~
[ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[1*1]=x'
osh-cpp1 typeset -a a[1]=a a[3]=c

[osh-cpp stdout] Expected "['x', 'z']\n", got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  typeset -a a[1*1]=x a[1+2]=z
             ^~
[ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[1*1]=x'
osh2 local a[3]=4

[osh stdout] Expected "status=0\n['3', '5', '4', '6']\n", got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
    local a[3]=4 a[5]=6
          ^~
[ stdin ]:2: fatal: Assignment builtin expected NAME=value, got 'a[3]=4'
osh-cpp2 local a[3]=4

[osh-cpp stdout] Expected "status=0\n['3', '5', '4', '6']\n", got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
    local a[3]=4 a[5]=6
          ^~
[ stdin ]:2: fatal: Assignment builtin expected NAME=value, got 'a[3]=4'
osh3 readonly a[7]=8

[osh stdout] Expected "status=0\n['7', '8']\n", got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  readonly b[7]=8
           ^~
[ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'b[7]=8'
osh-cpp3 readonly a[7]=8

[osh-cpp stdout] Expected "status=0\n['7', '8']\n", got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  readonly b[7]=8
           ^~
[ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'b[7]=8'
osh4 export a[7]=8

[osh stdout] Expected 'status=2\n[]\nNone\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  export a[7]=8
         ^~
[ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[7]=8'
osh-cpp4 export a[7]=8

[osh-cpp stdout] Expected 'status=2\n[]\nNone\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  export a[7]=8
         ^~
[ stdin ]:1: fatal: Assignment builtin expected NAME=value, got 'a[7]=8'
osh5 'builtin' prefix is allowed on assignments

[osh stdout] Expected 'e=E\n', got 'e=\n'

stdout:
e=
stderr:
  builtin export e='E'
          ^~~~~~
[ stdin ]:1: Can't run assignment builtin recursively
osh-cpp5 'builtin' prefix is allowed on assignments

[osh-cpp stdout] Expected 'e=E\n', got 'e=\n'

stdout:
e=
stderr:
  builtin export e='E'
          ^~~~~~
[ stdin ]:1: Can't run assignment builtin recursively
osh6 'command' prefix is allowed on assignments

[osh stdout] Expected 'r1=R1\nr2=R2\n', got 'r1=R1\nr2=\n'

stdout:
r1=R1
r2=
stderr:
  command readonly r2='R2'  # but not this
          ^~~~~~~~
[ stdin ]:2: Can't run assignment builtin recursively
osh-cpp6 'command' prefix is allowed on assignments

[osh-cpp stdout] Expected 'r1=R1\nr2=R2\n', got 'r1=R1\nr2=\n'

stdout:
r1=R1
r2=
stderr:
  command readonly r2='R2'  # but not this
          ^~~~~~~~
[ stdin ]:2: Can't run assignment builtin recursively
osh7 'builtin' prefix and array is a parse error

[osh status] Expected 2, got 1

stdout:
stderr: 
  builtin typeset a=(1 2 3)
                    ^
[ stdin ]:1: fatal: Unexpected array literal
osh-cpp7 'builtin' prefix and array is a parse error

[osh-cpp status] Expected 2, got 1

stdout:
stderr: 
  builtin typeset a=(1 2 3)
                    ^
[ stdin ]:1: fatal: Unexpected array literal
osh8 'command' prefix and array is a parse error

[osh status] Expected 2, got 1

stdout:
stderr: 
  command typeset a=(1 2 3)
                    ^
[ stdin ]:1: fatal: Unexpected array literal
osh-cpp8 'command' prefix and array is a parse error

[osh-cpp status] Expected 2, got 1

stdout:
stderr: 
  command typeset a=(1 2 3)
                    ^
[ stdin ]:1: fatal: Unexpected array literal