Results for assign-deferred.test.sh

statusoshosh_.pyosh_.cc
FAIL 999
total999
caseoshosh_.pyosh_.ccdescription
0FAIL FAIL FAIL typeset a[3]=4
detailsdetailsdetails
1FAIL FAIL FAIL typeset -a a[1]=a a[3]=c
detailsdetailsdetails
2FAIL FAIL FAIL local a[3]=4
detailsdetailsdetails
3FAIL FAIL FAIL readonly a[7]=8
detailsdetailsdetails
4FAIL FAIL FAIL export a[7]=8
detailsdetailsdetails
5FAIL FAIL FAIL 'builtin' prefix is allowed on assignments
detailsdetailsdetails
6FAIL FAIL FAIL 'command' prefix is allowed on assignments
detailsdetailsdetails
7FAIL FAIL FAIL 'builtin' prefix and array is a parse error
detailsdetailsdetails
8FAIL FAIL FAIL 'command' prefix and array is a parse error
detailsdetailsdetails
0 passed, 0 OK, 0 not implemented, 0 BUG, 27 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: Invalid variable name 'a[3]=4'
osh_.py0 typeset a[3]=4

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

stdout:
stderr: 
  typeset a[3]=4 a[5]=6
          ^~
[ stdin ]:1: fatal: Invalid variable name 'a[3]=4'
osh_.cc0 typeset a[3]=4

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

stdout:
stderr: 
  typeset a[3]=4 a[5]=6
  ^~~~~~~
[ stdin ]:1: fatal: Invalid variable name '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: Invalid variable name 'a[1*1]=x'
osh_.py1 typeset -a a[1]=a a[3]=c

[osh_.py stdout] Expected "['x', 'z']\n", got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  typeset -a a[1*1]=x a[1+2]=z
             ^~
[ stdin ]:1: fatal: Invalid variable name 'a[1*1]=x'
osh_.cc1 typeset -a a[1]=a a[3]=c

[osh_.cc stdout] Expected "['x', 'z']\n", got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  typeset -a a[1*1]=x a[1+2]=z
  ^~~~~~~
[ stdin ]:1: fatal: Invalid variable name '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: Invalid variable name 'a[3]=4'
osh_.py2 local a[3]=4

[osh_.py stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '(cmd_value.Argv argv:[f] arg_spids:[49])\n'

stdout:
(cmd_value.Argv argv:[f] arg_spids:[49])
stderr:
Unhandled SimpleCommand
osh_.cc2 local a[3]=4

[osh_.cc stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '(cmd_value.Argv argv:[f] arg_spids:[49])\n'

stdout:
(cmd_value.Argv argv:[f] arg_spids:[49])
stderr:
Unhandled SimpleCommand
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: Invalid variable name 'b[7]=8'
osh_.py3 readonly a[7]=8

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

stdout:
stderr: 
  readonly b[7]=8
           ^~
[ stdin ]:1: fatal: Invalid variable name 'b[7]=8'
osh_.cc3 readonly a[7]=8

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

stdout:
stderr: 
  readonly b[7]=8
  ^~~~~~~~
[ stdin ]:1: fatal: Invalid variable name '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: Invalid variable name 'a[7]=8'
osh_.py4 export a[7]=8

[osh_.py stdout] Expected 'status=2\n[]\nNone\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  export a[7]=8
         ^~
[ stdin ]:1: fatal: Invalid variable name 'a[7]=8'
osh_.cc4 export a[7]=8

[osh_.cc stdout] Expected 'status=2\n[]\nNone\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  export a[7]=8
  ^~~~~~
[ stdin ]:1: fatal: Invalid variable name '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_.py5 'builtin' prefix is allowed on assignments

[osh_.py stdout] Expected 'e=E\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 573, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 317, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 302, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 10
osh_.cc5 'builtin' prefix is allowed on assignments

[osh_.cc stdout] Expected 'e=E\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
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_.py6 'command' prefix is allowed on assignments

[osh_.py stdout] Expected 'r1=R1\nr2=R2\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 573, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 321, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 302, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 40
osh_.cc6 'command' prefix is allowed on assignments

[osh_.cc stdout] Expected 'r1=R1\nr2=R2\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
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_.py7 'builtin' prefix and array is a parse error

[osh_.py status] Expected 2, got 1

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

[osh_.cc 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_.py8 'command' prefix and array is a parse error

[osh_.py status] Expected 2, got 1

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

[osh_.cc status] Expected 2, got 1

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