57 passed, 4 ok, 2 known unimplemented, 1 known bugs, 8 failed, 0 skipped
osh | 2 Redirect in subshell [osh stdout] Expected '\n', got 'foo\n' [osh stderr] Expected 'foo\n', got '' stdout: foostderr: |
dash | 3 Redirect in assignment stdout: FILE= foo FOO=stderr: |
mksh | 3 Redirect in assignment stdout: FILE= foo FOO=stderr: |
osh | 3 Redirect in assignment [osh stdout] Expected u'FILE=\nFOO=\n', got 'WARNING: Got redirects in assignment: %s [(Redirect\n op_id: Redir_Great\n arg_word: \n (CompoundWord\n parts: [\n (SimpleVarSub token:(token id:VSub_Name val:"$TMP" span_id:11))\n (LiteralPart token:(token id:Lit_Chars val:/no-command.txt span_id:12))\n ]\n )\n fd: 2\n spids: [10]\n)]\nFILE=\nfoo\nFOO=WARNING: Got redirects in assignment: %s [(Redirect\n op_id: Redir_Great\n arg_word: \n (CompoundWord\n parts: [\n (SimpleVarSub token:(token id:VSub_Name val:"$TMP" span_id:11))\n (LiteralPart token:(token id:Lit_Chars val:/no-command.txt span_id:12))\n ]\n )\n fd: 2\n spids: [10]\n)]\nfoo\n' stdout: WARNING: Got redirects in assignment: %s [(Redirect op_id: Redir_Great arg_word: (CompoundWord parts: [ (SimpleVarSub token:(token id:VSub_Name val:"$TMP" span_id:11)) (LiteralPart token:(token id:Lit_Chars val:/no-command.txt span_id:12)) ] ) fd: 2 spids: [10] )] FILE= foo FOO=WARNING: Got redirects in assignment: %s [(Redirect op_id: Redir_Great arg_word: (CompoundWord parts: [ (SimpleVarSub token:(token id:VSub_Name val:"$TMP" span_id:11)) (LiteralPart token:(token id:Lit_Chars val:/no-command.txt span_id:12)) ] ) fd: 2 spids: [10] )] foostderr: |
osh | 4 Redirect in function body. [osh stderr] Expected 'hi\n', got '' stdout: histderr: |
bash | 8 Descriptor redirect with filename stdout: stderr: |
mksh | 8 Descriptor redirect with filename stdout: stderr: /bin/mksh: <stdin>[1]: >&/home/andy/git/oil/test/../_tmp/spec-tmp/nonexistent-filename__ : illegal file descriptor name |
osh | 8 Descriptor redirect with filename [osh status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "bin/osh", line 430, in <module> main(sys.argv) File "bin/osh", line 417, in main sys.exit(OilMain(argv)) File "bin/osh", line 400, in OilMain status = OshMain(main_argv) File "bin/osh", line 359, in OshMain status = ex.Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1212, in Execute status = self._Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 981, in _Execute for r in redirects: TypeError: 'bool' object is not iterable |
osh | 9 redirect for loop [osh stdout] Expected u'1\n2\n3\n', got '1\n2\n3\n1\n2\n3\n' stdout: 1 2 3 1 2 3stderr: |
mksh | 10 Prefix redirect for loop -- not allowed stdout: stderr: /bin/mksh: <stdin>[1]: for: not found /bin/mksh: <stdin>[2]: syntax error: 'do' unexpected |
osh | 10 Prefix redirect for loop -- not allowed [osh status] Expected 2, got 127 stdout: stderr: Unexpected error in execvpe('for', ['for', 'i', 'in', '1', '2', '3'], ...): [Errno 2] No such file or directory |
osh | 14 Redirect in the middle of a command [osh stdout] Expected u'1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 ', got '' stdout: stderr: Traceback (most recent call last): File "bin/osh", line 430, in <module> main(sys.argv) File "bin/osh", line 417, in main sys.exit(OilMain(argv)) File "bin/osh", line 400, in OilMain status = OshMain(main_argv) File "bin/osh", line 359, in OshMain status = ex.Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1212, in Execute status = self._Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1057, in _Execute status = self._Execute(child) # last status wins File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 982, in _Execute r.ApplyInParent(self.fd_state) File "/home/andy/git/oil/bin/../core/process.py", line 184, in ApplyInParent raise NotImplementedError(self.op_id) NotImplementedError: Redir_DGreat |
dash | 15 Named file descriptor stdout: stderr: /bin/dash: 1: exec: {myfd}: not found |
mksh | 15 Named file descriptor stdout: stderr: /bin/mksh: <stdin>[1]: {myfd}: not found |
osh | 15 Named file descriptor [osh stdout] Expected 'named-fd-contents\n', got '' stdout: stderr: Unexpected error in execvpe('{myfd}', ['{myfd}'], ...): [Errno 2] No such file or directory |