Results for process-sub.test.sh

statusoshosh_.pyosh_.cc
pass 400
FAIL 044
total444
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL Process sub input
detailsdetails
1pass FAIL FAIL Process sub output
detailsdetails
2pass FAIL FAIL Non-linear pipeline with >()
detailsdetails
3pass FAIL FAIL $(<file) idiom with process sub
detailsdetails
4 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py0 Process sub input

[osh_.py stdout] Expected '1\n2\n2\n3\n', got "1\n2\n3\n(cmd_value.Argv argv:[cat '' ''] arg_spids:[26 28 38])\n"

stdout:
1
2
3
(cmd_value.Argv argv:[cat '' ''] arg_spids:[26 28 38])
stderr:
Unhandled SimpleCommand
osh_.cc0 Process sub input

[osh_.cc stdout] Expected '1\n2\n2\n3\n', got "1\n2\n3\n(cmd_value.Argv argv:[cat '' ''] arg_spids:[26 28 38])\n"

stdout:
1
2
3
(cmd_value.Argv argv:[cat '' ''] arg_spids:[26 28 38])
stderr:
Unhandled SimpleCommand
osh_.py1 Process sub output

[osh_.py stdout] Expected '3\n2\n1\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  { echo 1; echo 2; echo 3; } > >(tac)
                                ^~
[ stdin ]:1: Redirect filename can't be empty
osh_.cc1 Process sub output

[osh_.cc stdout] Expected '3\n2\n1\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  { echo 1; echo 2; echo 3; } > >(tac)
                                ^~
[ stdin ]:1: Redirect filename can't be empty
osh_.py2 Non-linear pipeline with >()

[osh_.py stdout] Expected 'OUT\nwarning: e2\no2\no1\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 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 449, 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 1438, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 570, 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/core/pure.py", line 516, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 479, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 32
osh_.cc2 Non-linear pipeline with >()

[osh_.cc stdout] Expected 'OUT\nwarning: e2\no2\no1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:689: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.py3 $(<file) idiom with process sub

[osh_.py stdout] Expected 'FOO\nhi\n', got 'FOO\n\n'
[osh_.py status] Expected 0, got 1

stdout:
FOO

stderr:
  tr A-Z a-z < <(<foo)
               ^~
[ stdin ]:3: Redirect filename can't be empty
  cat < <(<foo; echo hi)
        ^~
[ stdin ]:4: Redirect filename can't be empty
osh_.cc3 $(<file) idiom with process sub

[osh_.cc stdout] Expected 'FOO\nhi\n', got 'FOO\n\n'
[osh_.cc status] Expected 0, got 1

stdout:
FOO

stderr:
  tr A-Z a-z < <(<foo)
               ^~
[ stdin ]:3: Redirect filename can't be empty
  cat < <(<foo; echo hi)
        ^~
[ stdin ]:4: Redirect filename can't be empty