Results for var-op-slice.test.sh

statusoshosh_.pyosh_.cc
pass 19153
ok 111
FAIL 1517
total212121
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL String slice
details
1ok ok ok Cannot take length of substring slice
detailsdetailsdetails
2pass pass FAIL Out of range string slice: begin
details
3pass pass FAIL Out of range string slice: length
details
4pass pass FAIL Negative start index
details
5pass pass FAIL Negative start index respects unicode
details
6pass pass FAIL Negative second arg is position, not length!
details
7pass pass FAIL Negative start index respects unicode
details
8pass pass FAIL String slice with math
details
9pass pass pass Slice undefined
10pass pass FAIL Slice UTF-8 String
details
11pass FAIL FAIL Slice string with invalid UTF-8 results in empty string and warning
detailsdetails
12pass FAIL FAIL Slice string with invalid UTF-8 with strict_word_eval
detailsdetails
13pass pass pass Slice with an index that's an array itself not allowed
14pass pass pass Slice with an assoc array
15pass FAIL FAIL Simple ${@:offset}
detailsdetails
16pass pass FAIL ${@:offset} and ${*:offset}
details
17pass pass FAIL ${@:offset:length} and ${*:offset:length}
details
18pass FAIL FAIL ${@:0:1}
detailsdetails
19pass pass FAIL ${array[@]::0}
details
20FAIL FAIL FAIL ${array[@]::}
detailsdetailsdetails
37 passed, 3 OK, 0 not implemented, 0 BUG, 23 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_.cc0 String slice

[osh_.cc stdout] Expected 'bcd\n', got 'abcdefg\n'

stdout:
abcdefg
stderr:
osh1 Cannot take length of substring slice

stdout:
stderr: 
  echo ${#v:1:3}
           ^
[ stdin ]:2: Expected } after length expression
osh_.py1 Cannot take length of substring slice

stdout:
stderr: 
  echo ${#v:1:3}
           ^
[ stdin ]:2: Expected } after length expression
osh_.cc1 Cannot take length of substring slice

stdout:
stderr: 
  echo ${#v:1:3}
           ^
[ stdin ]:2: Expected } after length expression
osh_.cc2 Out of range string slice: begin

[osh_.cc stdout] Expected '_\n0\n', got '_abcdefg\n0\n'

stdout:
_abcdefg
0
stderr:
osh_.cc3 Out of range string slice: length

[osh_.cc stdout] Expected '_defg\n0\n', got '_abcdefg\n0\n'

stdout:
_abcdefg
0
stderr:
osh_.cc4 Negative start index

[osh_.cc stdout] Expected 'def\n', got 'abcdefg\n'

stdout:
abcdefg
stderr:
osh_.cc5 Negative start index respects unicode

[osh_.cc stdout] Expected 'd-\xce\xbc\n', got 'abcd-\xce\xbc-\n'

stdout:
abcd-μ-
stderr:
osh_.cc6 Negative second arg is position, not length!

[osh_.cc stdout] Expected 'def de d\n', got 'abcdefg abcdefg abcdefg\n'

stdout:
abcdefg abcdefg abcdefg
stderr:
osh_.cc7 Negative start index respects unicode

[osh_.cc stdout] Expected 'cd\n', got 'abcd-\xce\xbc-\n'

stdout:
abcd-μ-
stderr:
osh_.cc8 String slice with math

[osh_.cc stdout] Expected 'def\n', got 'abcdefg\n'

stdout:
abcdefg
stderr:
osh_.cc10 Slice UTF-8 String

[osh_.cc stdout] Expected '-\xce\xbc-\n', got '--\xce\xbc--\n'

stdout:
--μ--
stderr:
osh_.py11 Slice string with invalid UTF-8 results in empty string and warning

[osh_.py stdout] Expected '--\n', got ''
[osh_.py stderr] Expected '[??? no location ???] warning: Invalid start of UTF-8 character\n', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch\n val = self.word_ev.EvalRhsWord(pair.rhs)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord\n return self.EvalWordToString(w)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString\n self._EvalWordPart(p, part_vals, quoted=False)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart\n sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub\n stdout = self.shell_ex.RunCommandSub(node)\nAttributeError: \'NoneType\' object has no attribute \'RunCommandSub\'\n'
[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 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc11 Slice string with invalid UTF-8 results in empty string and warning

[osh_.cc stdout] Expected '--\n', got '-bcdef-\n'
[osh_.cc stderr] Expected '[??? no location ???] warning: Invalid start of UTF-8 character\n', got ''

stdout:
-bcdef-
stderr:
osh_.py12 Slice string with invalid UTF-8 with strict_word_eval

[osh_.py stderr] Found 'Traceback (most recent'

stdout:
slice
stderr:
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc12 Slice string with invalid UTF-8 with strict_word_eval

[osh_.cc stdout] Expected 'slice\n', got 'slice\n-bcdef-\n'
[osh_.cc status] Expected 1, got 0

stdout:
slice
-bcdef-
stderr:
osh_.py15 Simple ${@:offset}

[osh_.py stdout] Expected "['SHELL', '4', '5', '6']\n['4', '5', '6']\n['5', '6']\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 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc15 Simple ${@:offset}

[osh_.cc stdout] Expected "['SHELL', '4', '5', '6']\n['4', '5', '6']\n['5', '6']\n", got ''
[osh_.cc status] Expected 0, got -11

stdout:
stderr: 
set 5
osh_.cc16 ${@:offset} and ${*:offset}

[osh_.cc stdout] Expected "['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1 b 2 c 3-']\n['-a 1 b 2 c 3-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1', 'b 2', 'c 3-']\n['-a 1', 'b 2', 'c 3-']\n['-c 3-']\n['--']\n['--']\n", got "(cmd_value.Argv argv:[argv.py -a 1 b 2 c 3-] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py --a 1 b 2 c 3--] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ---a 1 b 2 c 3---] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ----a 1 b 2 c 3----] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py -----a 1 b 2 c 3-----] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ------a 1 b 2 c 3------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py -------a 1 b 2 c 3-------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py --------a 1 b 2 c 3--------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ---------a 1 b 2 c 3---------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ----------a 1 b 2 c 3----------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py '-----------a 1 b 2 c 3-----------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '------------a 1 b 2 c 3------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '-------------a 1 b 2 c 3-------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '--------------a 1 b 2 c 3--------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '---------------a 1 b 2 c 3---------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '----------------a 1 b 2 c 3----------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '-----------------a 1 b 2 c 3-----------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '------------------a 1 b 2 c 3------------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '-------------------a 1 b 2 c 3-------------------'] arg_spids:[27 29])\n(cmd_value.Argv\n argv: [argv.py '--------------------a 1 b 2 c 3--------------------']\n arg_spids: [27 29]\n)\n"

stdout:
(cmd_value.Argv argv:[argv.py -a 1 b 2 c 3-] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py --a 1 b 2 c 3--] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ---a 1 b 2 c 3---] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ----a 1 b 2 c 3----] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py -----a 1 b 2 c 3-----] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ------a 1 b 2 c 3------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py -------a 1 b 2 c 3-------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py --------a 1 b 2 c 3--------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ---------a 1 b 2 c 3---------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ----------a 1 b 2 c 3----------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py '-----------a 1 b 2 c 3-----------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '------------a 1 b 2 c 3------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '-------------a 1 b 2 c 3-------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '--------------a 1 b 2 c 3--------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '---------------a 1 b 2 c 3---------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '----------------a 1 b 2 c 3----------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '-----------------a 1 b 2 c 3-----------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '------------------a 1 b 2 c 3------------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '-------------------a 1 b 2 c 3-------------------'] arg_spids:[27 29])
(cmd_value.Argv
  argv: [argv.py '--------------------a 1 b 2 c 3--------------------']
  arg_spids: [27 29]
)
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc17 ${@:offset:length} and ${*:offset:length}

[osh_.cc stdout] Expected "['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1-']\n['-a 1 b 2-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1-']\n['-a 1', 'b 2-']\n['-c 3-']\n['--']\n['--']\n", got "(cmd_value.Argv argv:[argv.py -a 1 b 2 c 3-] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py --a 1 b 2 c 3--] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ---a 1 b 2 c 3---] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ----a 1 b 2 c 3----] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py -----a 1 b 2 c 3-----] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ------a 1 b 2 c 3------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py -------a 1 b 2 c 3-------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py --------a 1 b 2 c 3--------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ---------a 1 b 2 c 3---------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py ----------a 1 b 2 c 3----------] arg_spids:[27 29 29 29 29 29 29])\n(cmd_value.Argv argv:[argv.py '-----------a 1 b 2 c 3-----------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '------------a 1 b 2 c 3------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '-------------a 1 b 2 c 3-------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '--------------a 1 b 2 c 3--------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '---------------a 1 b 2 c 3---------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '----------------a 1 b 2 c 3----------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '-----------------a 1 b 2 c 3-----------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '------------------a 1 b 2 c 3------------------'] arg_spids:[27 29])\n(cmd_value.Argv argv:[argv.py '-------------------a 1 b 2 c 3-------------------'] arg_spids:[27 29])\n(cmd_value.Argv\n argv: [argv.py '--------------------a 1 b 2 c 3--------------------']\n arg_spids: [27 29]\n)\n"

stdout:
(cmd_value.Argv argv:[argv.py -a 1 b 2 c 3-] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py --a 1 b 2 c 3--] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ---a 1 b 2 c 3---] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ----a 1 b 2 c 3----] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py -----a 1 b 2 c 3-----] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ------a 1 b 2 c 3------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py -------a 1 b 2 c 3-------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py --------a 1 b 2 c 3--------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ---------a 1 b 2 c 3---------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py ----------a 1 b 2 c 3----------] arg_spids:[27 29 29 29 29 29 29])
(cmd_value.Argv argv:[argv.py '-----------a 1 b 2 c 3-----------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '------------a 1 b 2 c 3------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '-------------a 1 b 2 c 3-------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '--------------a 1 b 2 c 3--------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '---------------a 1 b 2 c 3---------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '----------------a 1 b 2 c 3----------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '-----------------a 1 b 2 c 3-----------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '------------------a 1 b 2 c 3------------------'] arg_spids:[27 29])
(cmd_value.Argv argv:[argv.py '-------------------a 1 b 2 c 3-------------------'] arg_spids:[27 29])
(cmd_value.Argv
  argv: [argv.py '--------------------a 1 b 2 c 3--------------------']
  arg_spids: [27 29]
)
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py18 ${@:0:1}

[osh_.py stdout] Expected 'SHELL\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 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc18 ${@:0:1}

[osh_.cc stdout] Expected 'SHELL\n', got '\n'

stdout:
stderr: 
set 4
osh_.cc19 ${array[@]::0}

[osh_.cc stdout] Expected '[]\n', got '(cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[9 11 11 11])\n'

stdout:
(cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[9 11 11 11])
stderr:
Unhandled SimpleCommand
osh20 ${array[@]::}

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

stdout:
stderr: 
  argv.py ${array[@]::}
                      ^
[ stdin ]:2: Token can't be used in prefix position
osh_.py20 ${array[@]::}

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

stdout:
stderr: 
  argv.py ${array[@]::}
                      ^
[ stdin ]:2: Token can't be used in prefix position
osh_.cc20 ${array[@]::}

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

stdout:
stderr: 
  argv.py ${array[@]::}
                      ^
[ stdin ]:2: Token can't be used in prefix position