Results for posix.test.sh

statusoshosh_.pyosh_.cc
pass 151212
FAIL 033
total151515
caseoshosh_.pyosh_.ccdescription
0pass pass pass Empty for loop is allowed
1pass pass pass Empty for loop without in. Do can be on the same line I guess.
2pass pass pass Empty case statement
3pass pass pass Last case without ;;
4pass pass pass Only case without ;;
5pass pass pass Case with optional (
6pass pass pass Empty action for case is syntax error
7pass pass pass Empty action is allowed for last case
8pass pass pass Case with | pattern
9pass pass pass Bare semi-colon not allowed
10pass FAIL FAIL Command substitution in default
detailsdetails
11pass pass pass Arithmetic expansion
12pass pass pass Newlines in compound lists
13pass FAIL FAIL Multiple here docs on one line
detailsdetails
14pass FAIL FAIL cat here doc; echo; cat here doc
detailsdetails
39 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py10 Command substitution in default

[osh_.py stdout] Expected '/bin\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 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1348, in _EvalWordPart
    self._EvalBracedVarSub(part, part_vals, quoted)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1094, in _EvalBracedVarSub
    var_name, var_index, part.token):
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 519, in _ApplyTestOp
    self._EvalWordToParts(op.arg_word, quoted, part_vals, is_subst=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  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_.cc10 Command substitution in default

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

stdout:
stderr: 
osh_.py13 Multiple here docs on one line

[osh_.py stdout] Expected u'one\ntwo\n', got ''

stdout:
stderr: 
osh_.cc13 Multiple here docs on one line

[osh_.cc stdout] Expected u'one\ntwo\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n(cmd_value.Argv argv:[cat] arg_spids:[6])\n'

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[0])
(cmd_value.Argv argv:[cat] arg_spids:[6])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py14 cat here doc; echo; cat here doc

[osh_.py stdout] Expected 'one\ntwo\nthree\n', got 'two\n'

stdout:
two
stderr:
osh_.cc14 cat here doc; echo; cat here doc

[osh_.cc stdout] Expected 'one\ntwo\nthree\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\ntwo\n(cmd_value.Argv argv:[cat] arg_spids:[11])\n'

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[0])
two
(cmd_value.Argv argv:[cat] arg_spids:[11])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand