spec test index / oilshell.org
67 passed, 3 OK, 0 not implemented, 0 BUG, 95 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.py | 0 >& [osh_.py stderr] Expected 'hi\n', got '' stdout: histderr: |
osh_.cc | 0 >& [osh_.cc stderr] Expected 'hi\n', got '' stdout: histderr: |
osh_.py | 1 <& [osh_.py stdout] Expected '[foo]\n', got 'foo\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: foostderr: 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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 1 <& [osh_.cc stdout] Expected '[foo]\n', got 'foo\n' [osh_.cc status] Expected 0, got -6 stdout: foostderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.cc | 2 Leading redirect [osh_.cc stdout] Expected 'hello\n', got 'hello\n(cmd_value.Argv argv:[cat] arg_spids:[15])\n' stdout: hello (cmd_value.Argv argv:[cat] arg_spids:[15])stderr: Unhandled SimpleCommand |
osh_.py | 3 Nonexistent file [osh_.py stdout] Expected 'status=1\n', got 'status=0\n' stdout: status=0stderr: |
osh_.cc | 3 Nonexistent file [osh_.cc stdout] Expected 'status=1\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\nstatus=0\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) status=0stderr: Unhandled SimpleCommand |
osh_.py | 4 Redirect in command sub [osh_.py stdout] Expected '\n', got '' [osh_.py stderr] Expected 'foo\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_.cc | 4 Redirect in command sub [osh_.cc stderr] Expected 'foo\n', got '' stdout: stderr: |
osh_.py | 5 Redirect in assignment [osh_.py stdout] Expected 'FILE=\nfoo\nFOO=\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 1333, 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_.cc | 5 Redirect in assignment [osh_.cc stdout] Expected 'FILE=\nfoo\nFOO=\n', got "FILE=\n(cmd_value.Argv argv:[cat '/no-command.txt'] arg_spids:[18 20])\nFOO=\n" stdout: FILE= (cmd_value.Argv argv:[cat '/no-command.txt'] arg_spids:[18 20]) FOO=stderr: Unhandled SimpleCommand |
osh_.py | 6 Redirect in function body. [osh_.py stdout] Expected u'', got 'hi\n' [osh_.py stderr] Expected u'hi\n', got '' stdout: histderr: |
osh_.cc | 6 Redirect in function body. [osh_.cc stdout] Expected u'', got 'hi\n' [osh_.cc stderr] Expected u'hi\n', got '' stdout: histderr: |
osh_.cc | 7 Bad redirects in function body [osh_.cc stdout] Expected 'status=1\n', got 'hi\nstatus=0\n' stdout: hi status=0stderr: |
osh_.py | 8 Redirect in function body is evaluated multiple times [osh_.py stdout] Expected 'i=2\n__\nfile 1\n__\nfile 2\n', got 'file 1\nfile 2\ni=2\n__\n__\n' [osh_.py status] Expected 0, got 1 stdout: file 1 file 2 i=2 __ __stderr: cat: /file0: No such file or directory cat: /file1: No such file or directory |
osh_.cc | 8 Redirect in function body is evaluated multiple times [osh_.cc stdout] Expected 'i=2\n__\nfile 1\n__\nfile 2\n', got "file 1\nfile 2\ni=2\n__\n(cmd_value.Argv argv:[cat '/file0'] arg_spids:[44 46])\n__\n(cmd_value.Argv argv:[cat '/file1'] arg_spids:[53 55])\n" stdout: file 1 file 2 i=2 __ (cmd_value.Argv argv:[cat '/file0'] arg_spids:[44 46]) __ (cmd_value.Argv argv:[cat '/file1'] arg_spids:[53 55])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 10 Descriptor redirect with spaces [osh_.py stderr] Expected u'one\ntwo 1\nthree\n', got '' stdout: one two 1 threestderr: |
osh_.cc | 10 Descriptor redirect with spaces [osh_.cc stderr] Expected u'one\ntwo 1\nthree\n', got '' stdout: one two 1 threestderr: |
osh_.py | 11 Filename redirect with spaces [osh_.py status] Expected 0, got 1 stdout: twostderr: cat: /file-redir1.txt: No such file or directory |
osh_.cc | 11 Filename redirect with spaces [osh_.cc stdout] Expected 'two\n', got "two\n(cmd_value.Argv argv:[cat '/file-redir1.txt'] arg_spids:[9 11])\n" stdout: two (cmd_value.Argv argv:[cat '/file-redir1.txt'] arg_spids:[9 11])stderr: Unhandled SimpleCommand |
osh_.py | 12 Quoted filename redirect with spaces [osh_.py status] Expected 0, got 1 stdout: two 1stderr: cat: /file-redir2.txt: No such file or directory |
osh_.cc | 12 Quoted filename redirect with spaces [osh_.cc stdout] Expected 'two 1\n', got "two 1\n(cmd_value.Argv argv:[cat '/file-redir2.txt'] arg_spids:[11 13])\n" stdout: two 1 (cmd_value.Argv argv:[cat '/file-redir2.txt'] arg_spids:[11 13])stderr: Unhandled SimpleCommand |
osh_.py | 14 redirect for loop [osh_.py stdout] Expected u'1\n2\n3\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1058, in _Dispatch iter_list = self.word_ev.EvalWordSequence(words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1922, in EvalWordSequence UP_cmd_val = self.EvalWordSequence2(words) 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 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_.cc | 14 redirect for loop [osh_.cc stdout] Expected u'1\n2\n3\n', got "(cmd_value.Argv argv:[cat '/redirect-for-loop.txt'] arg_spids:[26 28])\n" stdout: (cmd_value.Argv argv:[cat '/redirect-for-loop.txt'] arg_spids:[26 28])stderr: Unhandled SimpleCommand |
osh_.py | 15 redirect subshell [osh_.py stderr] Expected 'foo\n', got '' stdout: stderr: |
osh_.cc | 15 redirect subshell [osh_.cc stderr] Expected 'foo\n', got '' stdout: stderr: |
osh_.py | 16 Prefix redirect for loop -- not allowed [osh_.py status] Expected 2, 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 1333, 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 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_.py | 17 Brace group redirect [osh_.py stdout] Expected '15\n', got 'block-redirect\n' stdout: block-redirectstderr: |
osh_.cc | 17 Brace group redirect [osh_.cc stdout] Expected '15\n', got 'block-redirect\n' stdout: block-redirectstderr: |
osh_.py | 18 Redirect echo to stderr, and then redirect all of stdout somewhere. [osh_.py stdout] Expected '10\n', got 'foo\n012345789\n' [osh_.py stderr] Expected 'foo\n', got '' stdout: foo 012345789stderr: |
osh_.cc | 18 Redirect echo to stderr, and then redirect all of stdout somewhere. [osh_.cc stdout] Expected '10\n', got 'foo\n012345789\n' [osh_.cc stderr] Expected 'foo\n', got '' stdout: foo 012345789stderr: |
osh_.py | 19 Redirect in the middle of two assignments [osh_.py stdout] Expected u'bar\nfoo\n', got 'None\nNone\n' [osh_.py status] Expected 0, got 1 stdout: None Nonestderr: tac: failed to open '/out.txt' for reading: No such file or directory |
osh_.cc | 19 Redirect in the middle of two assignments [osh_.cc stdout] Expected u'bar\nfoo\n', got "(cmd_value.Argv argv:[printenv.py FOO BAR] arg_spids:[10 12 14])\n(cmd_value.Argv argv:[tac '/out.txt'] arg_spids:[16 18])\n" stdout: (cmd_value.Argv argv:[printenv.py FOO BAR] arg_spids:[10 12 14]) (cmd_value.Argv argv:[tac '/out.txt'] arg_spids:[16 18])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 20 Redirect in the middle of a command [osh_.py status] Expected 0, got 1 stdout: 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6stderr: cat: /out: No such file or directory |
osh_.cc | 20 Redirect in the middle of a command [osh_.cc stdout] Expected u'1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 ', got "1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 (cmd_value.Argv argv:[cat '/out'] arg_spids:[84 86])\n" stdout: 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 (cmd_value.Argv argv:[cat '/out'] arg_spids:[84 86])stderr: Unhandled SimpleCommand |
osh_.py | 21 Named file descriptor [osh_.py stdout] Expected 'named-fd-contents\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 21 Named file descriptor [osh_.cc stdout] Expected 'named-fd-contents\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 22 Double digit fd (20> file) [osh_.py stdout] Expected 'hello20\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 22 Double digit fd (20> file) [osh_.cc stdout] Expected 'hello20\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 23 : 9> fdleak (OSH regression) [osh_.py status] Expected 0, got 1 stdout: stderr: cat: /fd.txt: No such file or directory |
osh_.cc | 23 : 9> fdleak (OSH regression) [osh_.cc stdout] Expected u'', got "(cmd_value.Argv argv:[cat '/fd.txt'] arg_spids:[20 22])\n" stdout: (cmd_value.Argv argv:[cat '/fd.txt'] arg_spids:[20 22])stderr: Unhandled SimpleCommand |
osh_.py | 26 3>&- << EOF (OSH regression: fail to restore fds) [osh_.py stdout] Expected 'hello\nworld\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 26 3>&- << EOF (OSH regression: fail to restore fds) [osh_.cc stdout] Expected 'hello\nworld\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 27 Open file on descriptor 3 and write to it many times [osh_.py stdout] Expected 'hello\nworld\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 27 Open file on descriptor 3 and write to it many times [osh_.cc stdout] Expected 'hello\nworld\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 28 Open file on descriptor 4 and write to it many times [osh_.py stdout] Expected 'hello\nworld\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 28 Open file on descriptor 4 and write to it many times [osh_.cc stdout] Expected 'hello\nworld\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 29 Redirect function stdout [osh_.py status] Expected 0, got 1 stdout: one twostderr: cat: /redirect-func.txt: No such file or directory |
osh_.cc | 29 Redirect function stdout [osh_.cc stdout] Expected u'one\ntwo\n', got "one\ntwo\n(cmd_value.Argv argv:[cat '/redirect-func.txt'] arg_spids:[25 27])\n" stdout: one two (cmd_value.Argv argv:[cat '/redirect-func.txt'] arg_spids:[25 27])stderr: Unhandled SimpleCommand |
osh_.py | 30 Nested function stdout redirect [osh_.py stdout] Expected u'i1\ni2\n--\no1\no2\n', got 'o1\ni1\ni2\no2\n--\n' [osh_.py status] Expected 0, got 1 stdout: o1 i1 i2 o2 --stderr: cat: /inner.txt: No such file or directory cat: /outer.txt: No such file or directory |
osh_.cc | 30 Nested function stdout redirect [osh_.cc stdout] Expected u'i1\ni2\n--\no1\no2\n', got "o1\ni1\ni2\no2\n(cmd_value.Argv argv:[cat '/inner.txt'] arg_spids:[51 53])\n--\n(cmd_value.Argv argv:[cat '/outer.txt'] arg_spids:[60 62])\n" stdout: o1 i1 i2 o2 (cmd_value.Argv argv:[cat '/inner.txt'] arg_spids:[51 53]) -- (cmd_value.Argv argv:[cat '/outer.txt'] arg_spids:[60 62])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 31 Redirect to empty string [osh_.cc stdout] Expected 'result=1\n', got 's\nresult=0\ns\nDONE\n' [osh_.cc status] Expected 1, got 0 stdout: s result=0 s DONEstderr: |
osh_.py | 32 Redirect to file descriptor that's not open [osh_.py status] Expected 1, got 0 stdout: histderr: |
osh_.cc | 32 Redirect to file descriptor that's not open [osh_.cc status] Expected 1, got 0 stdout: histderr: |
osh_.py | 33 Open descriptor with exec [osh_.py stdout] Expected 'hi\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 33 Open descriptor with exec [osh_.cc stdout] Expected 'hi\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 34 Open multiple descriptors with exec [osh_.py stdout] Expected u'three\nfour\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 34 Open multiple descriptors with exec [osh_.cc stdout] Expected u'three\nfour\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh | 35 >| to clobber [osh stdout] Expected u'status=1\nXX\nZZ\n', got 'status=0\nYY\nZZ\n' stdout: status=0 YY ZZstderr: |
osh_.py | 35 >| to clobber [osh_.py stdout] Expected u'status=1\nXX\nZZ\n', got 'XX\nYY\nstatus=0\nZZ\n' [osh_.py status] Expected 0, got 1 stdout: XX YY status=0 ZZstderr: cat: /c.txt: No such file or directory cat: /c.txt: No such file or directory |
osh_.cc | 35 >| to clobber [osh_.cc stdout] Expected u'status=1\nXX\nZZ\n', got "XX\nYY\nstatus=0\n(cmd_value.Argv argv:[cat '/c.txt'] arg_spids:[32 34])\nZZ\n(cmd_value.Argv argv:[cat '/c.txt'] arg_spids:[46 48])\n" stdout: XX YY status=0 (cmd_value.Argv argv:[cat '/c.txt'] arg_spids:[32 34]) ZZ (cmd_value.Argv argv:[cat '/c.txt'] arg_spids:[46 48])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 36 &> redirects stdout and stderr [osh_.py stdout] Expected 'ok\nok\n', got 'STDOUT\n' [osh_.py status] Expected 0, got 2 stdout: STDOUTstderr: STDERR grep: /f.txt: No such file or directory grep: /f.txt: No such file or directory |
osh_.cc | 36 &> redirects stdout and stderr [osh_.cc stdout] Expected 'ok\nok\n', got "(cmd_value.Argv argv:[stdout_stderr.py] arg_spids:[0])\n(cmd_value.Argv argv:[grep STDOUT '/f.txt'] arg_spids:[7 9 11])\nok\n(cmd_value.Argv argv:[grep STDERR '/f.txt'] arg_spids:[25 27 29])\nok\n" stdout: (cmd_value.Argv argv:[stdout_stderr.py] arg_spids:[0]) (cmd_value.Argv argv:[grep STDOUT '/f.txt'] arg_spids:[7 9 11]) ok (cmd_value.Argv argv:[grep STDERR '/f.txt'] arg_spids:[25 27 29]) okstderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 37 1>&- to close file descriptor [osh_.py stdout] Expected u'hello\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 37 1>&- to close file descriptor [osh_.cc stdout] Expected u'hello\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 38 1>&2- to move file descriptor [osh_.py stdout] Expected u'hello5\nworld6\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 38 1>&2- to move file descriptor [osh_.cc stdout] Expected u'hello5\nworld6\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 39 1>&2- (Bash bug: fail to restore closed fd) [osh_.py status] Expected 2, 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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 39 1>&2- (Bash bug: fail to restore closed fd) [osh_.cc status] Expected 2, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 40 <> for read/write [osh_.py stdout] Expected u'line=first\nCONTENTS\nfirst\nsecond\n', got 'first\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: firststderr: 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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 40 <> for read/write [osh_.cc stdout] Expected u'line=first\nCONTENTS\nfirst\nsecond\n', got 'first\n' [osh_.cc status] Expected 0, got -6 stdout: firststderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 41 <> for read/write named pipes [osh_.py stdout] Expected 'line1=first line2=second\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: mkfifo: cannot create fifo '/f.pipe': Permission denied 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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 41 <> for read/write named pipes [osh_.cc stdout] Expected 'line1=first line2=second\n', got "(cmd_value.Argv argv:[rm -f '/f.pipe'] arg_spids:[0 2 4])\n(cmd_value.Argv argv:[mkfifo '/f.pipe'] arg_spids:[9 11])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[rm -f '/f.pipe'] arg_spids:[0 2 4]) (cmd_value.Argv argv:[mkfifo '/f.pipe'] arg_spids:[9 11])stderr: Unhandled SimpleCommand Unhandled SimpleCommand osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 42 &>> appends stdout and stderr [osh_.py stdout] Expected 'ok\nok\nok\n', got 'STDOUT\nok\n' [osh_.py status] Expected 0, got 2 stdout: STDOUT okstderr: STDERR grep: /f.txt: No such file or directory grep: /f.txt: No such file or directory grep: /f.txt: No such file or directory |
osh_.cc | 42 &>> appends stdout and stderr [osh_.cc stdout] Expected 'ok\nok\nok\n', got "ok\n(cmd_value.Argv argv:[stdout_stderr.py] arg_spids:[32])\n(cmd_value.Argv argv:[grep ok '/f.txt'] arg_spids:[39 41 43])\nok\n(cmd_value.Argv argv:[grep STDOUT '/f.txt'] arg_spids:[57 59 61])\nok\n(cmd_value.Argv argv:[grep STDERR '/f.txt'] arg_spids:[75 77 79])\nok\n" stdout: ok (cmd_value.Argv argv:[stdout_stderr.py] arg_spids:[32]) (cmd_value.Argv argv:[grep ok '/f.txt'] arg_spids:[39 41 43]) ok (cmd_value.Argv argv:[grep STDOUT '/f.txt'] arg_spids:[57 59 61]) ok (cmd_value.Argv argv:[grep STDERR '/f.txt'] arg_spids:[75 77 79]) okstderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 43 exec redirect then various builtins [osh_.py stdout] Expected 'done\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 43 exec redirect then various builtins [osh_.cc stdout] Expected 'done\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 44 >$file touches a file [osh_.py stdout] Expected 'status=1\nstatus=0\n', got 'status=1\n' [osh_.py stderr] Expected u'', 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 1333, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 366, in RunSimpleCommand\n arg0 = argv[0]\nIndexError: list index out of range\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: status=1stderr: 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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 366, in RunSimpleCommand arg0 = argv[0] IndexError: list index out of range |
osh_.cc | 44 >$file touches a file [osh_.cc stdout] Expected 'status=1\nstatus=0\n', got '(cmd_value.Argv argv:[rm -f myfile] arg_spids:[0 2 4])\n' [osh_.cc stderr] Expected u'', got "Unhandled SimpleCommand\nosh_eval.dbg: cpp/osh_bool_stat.h:18: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str *): Assertion `0' failed.\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[rm -f myfile] arg_spids:[0 2 4])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/osh_bool_stat.h:18: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str *): Assertion `0' failed. |
osh_.py | 45 $(< $file) yields the contents of the file [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: FOOstderr: 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_.cc | 45 $(< $file) yields the contents of the file [osh_.cc stdout] Expected 'FOO\n', got 'FOO\n\n' stdout: FOOstderr: |
osh_.py | 46 $(< file) with more statements [osh_.py stdout] Expected 'begin\n---\nend\n---\n\n---\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_.cc | 46 $(< file) with more statements [osh_.cc stdout] Expected 'begin\n---\nend\n---\n\n---\n', got '\n---\n\n---\n\n---\n' stdout: --- --- ---stderr: |
osh_.py | 47 < file in pipeline and subshell doesn't work [osh_.py stdout] Expected 'end\n', got 'FOO\nend\n' stdout: FOO endstderr: |
osh_.cc | 47 < file in pipeline and subshell doesn't work [osh_.cc stdout] Expected 'end\n', got 'FOO\nend\n' stdout: FOO endstderr: |
osh_.py | 48 2>&1 with no command [osh_.py stdout] Expected 'status=42\nstatus=0\n', got 'status=0\n' [osh_.py stderr] Expected u'', 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 1333, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 366, in RunSimpleCommand\n arg0 = argv[0]\nIndexError: list index out of range\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: status=0stderr: 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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 366, in RunSimpleCommand arg0 = argv[0] IndexError: list index out of range |
osh_.cc | 48 2>&1 with no command [osh_.cc stdout] Expected 'status=42\nstatus=0\n', got 'status=0\nstatus=453170304\n' stdout: status=0 status=453170304stderr: |
osh_.py | 49 2&>1 (is it a redirect or is it like a&>1) [osh_.py stdout] Expected 'status=127\n', got 'status=1\n' stdout: status=1stderr: Error running ['2']: [Errno 2] No such file or directory |
osh_.cc | 49 2&>1 (is it a redirect or is it like a&>1) [osh_.cc stdout] Expected 'status=127\n', got '(cmd_value.Argv argv:[2] arg_spids:[0])\nstatus=0\n' stdout: (cmd_value.Argv argv:[2] arg_spids:[0]) status=0stderr: Unhandled SimpleCommand |
osh | 50 can't mention big file descriptor stdout: hi hi hi 100stderr: |
osh_.py | 50 can't mention big file descriptor stdout: hi hi hi 100stderr: |
osh_.cc | 50 can't mention big file descriptor stdout: hi hi hi 100stderr: |
osh_.py | 52 echo foo >&100 (OSH regression: does not fail with invalid fd 100) [osh_.py stdout] Expected u'', got 'foo\n' [osh_.py status] Expected 1, got 0 stdout: foostderr: |
osh_.cc | 52 echo foo >&100 (OSH regression: does not fail with invalid fd 100) [osh_.cc stdout] Expected u'', got 'foo\n' [osh_.cc status] Expected 1, got 0 stdout: foostderr: |
osh_.py | 53 echo foo >&N where N is first unused fd [osh_.py stdout] Expected u'', got 'foo\n' [osh_.py status] Expected 1, got 0 stdout: foostderr: |
osh_.cc | 53 echo foo >&N where N is first unused fd [osh_.cc stdout] Expected u'', got 'foo\n' [osh_.cc status] Expected 1, got 0 stdout: foostderr: |
osh_.py | 54 exec {fd}>&- (OSH regression: fails to close fd) [osh_.py stdout] Expected 'foo\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 54 exec {fd}>&- (OSH regression: fails to close fd) [osh_.cc stdout] Expected 'foo\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |