Results for var-sub.test.sh

statusoshosh_.pyosh_.cc
pass 744
FAIL 033
total777
caseoshosh_.pyosh_.ccdescription
0pass pass pass Bad var sub
1pass FAIL FAIL Braced block inside ${}
detailsdetails
2pass pass pass Nested ${}
3pass FAIL FAIL Filename redirect with "$@"
detailsdetails
4pass FAIL FAIL Filename redirect with split word
detailsdetails
5pass pass pass Descriptor redirect to bad "$@"
6pass pass pass Here doc with bad "$@" delimiter
15 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py1 Braced block inside ${}

[osh_.py stdout] Expected '/bin/ls\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 538, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1854, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1441, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1334, in _EvalWordPart
    self._EvalBracedVarSub(part, part_vals, quoted)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1080, in _EvalBracedVarSub
    if self._ApplyTestOp(val, op, quoted, part_vals, var_name, var_index, part.token):
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 503, in _ApplyTestOp
    self._EvalWordToParts(op.arg_word, quoted, part_vals, is_subst=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1441, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1318, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1945, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc1 Braced block inside ${}

[osh_.cc stdout] Expected '/bin/ls\n', got '\n'

stdout:
stderr: 
osh_.py3 Filename redirect with "$@"

[osh_.py status] Expected 1, got 0

stdout:
(cmd_value.Argv argv:[fun '_tmp/var-sub1' '_tmp/var-sub2'] arg_spids:[19 21 23])
stderr:
Unhandled SimpleCommand
osh_.cc3 Filename redirect with "$@"

[osh_.cc status] Expected 1, got 0

stdout:
(cmd_value.Argv argv:[fun '_tmp/var-sub1' '_tmp/var-sub2'] arg_spids:[19 21 23])
stderr:
Unhandled SimpleCommand
osh_.py4 Filename redirect with split word

[osh_.py stdout] Expected 'hi\n', got "(cmd_value.Argv argv:[rm '_tmp/1 2'] arg_spids:[5 7])\nhi\n"
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
(cmd_value.Argv argv:[rm '_tmp/1 2'] arg_spids:[5 7])
hi
stderr:
Unhandled SimpleCommand
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 974, in _Dispatch
    status = self._Execute(left)
  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: 16
osh_.cc4 Filename redirect with split word

[osh_.cc stdout] Expected 'hi\n', got "(cmd_value.Argv argv:[rm '_tmp/1 2'] arg_spids:[5 7])\nhi\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[rm '_tmp/1 2'] arg_spids:[5 7])
hi
stderr:
Unhandled SimpleCommand
osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.