spec test index / oilshell.org
135 passed, 12 ok, 7 known unimplemented, 1 known bugs, 5 failed, 0 skipped
dash | 3 Nonexistent file stdout: status=2stderr: _tmp/spec-bin/dash: 1: cannot open /home/andy/git/oilshell/oil/_tmp/spec-tmp/redirect.test.sh/nonexistent.txt: No such file |
dash | 5 Redirect in assignment is invalid stdout: stderr: |
bash | 5 Redirect in assignment is invalid stdout: stderr: |
mksh | 5 Redirect in assignment is invalid stdout: stderr: |
dash | 6 Redirect in assignment stdout: FILE= foo FOO=stderr: |
bash | 6 Redirect in assignment stdout: FILE= FOO=stderr: foo |
mksh | 6 Redirect in assignment stdout: FILE= foo FOO=stderr: |
dash | 8 Redirect in function body is evaluated multiple times stdout: stderr: _tmp/spec-bin/dash: 2: arithmetic expression: expecting primary: "i++" |
dash | 13 Descriptor redirect with filename stdout: stderr: _tmp/spec-bin/dash: 2: Syntax error: Bad fd number |
bash | 13 Descriptor redirect with filename stdout: status=0stderr: |
mksh | 16 Prefix redirect for loop -- not allowed stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: for: not found _tmp/spec-bin/mksh: <stdin>[2]: syntax error: 'do' unexpected |
osh | 16 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-byterun | 16 Prefix redirect for loop -- not allowed [osh-byterun 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 |
dash | 21 Named file descriptor stdout: stderr: _tmp/spec-bin/dash: 1: exec: {myfd}: not found |
mksh | 21 Named file descriptor stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: {myfd}: not found |
osh | 21 Named file descriptor [osh stdout] Expected 'named-fd-contents\n', got '' [osh status] Expected 0, got 127 stdout: stderr: Unexpected error in execvpe('{myfd}', ['{myfd}'], ...): [Errno 2] No such file or directory |
osh-byterun | 21 Named file descriptor [osh-byterun stdout] Expected 'named-fd-contents\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: Unexpected error in execvpe('{myfd}', ['{myfd}'], ...): [Errno 2] No such file or directory |
dash | 24 Redirect to empty string stdout: result=2stderr: _tmp/spec-bin/dash: 2: cannot create : Directory nonexistent _tmp/spec-bin/dash: 5: cannot create : Directory nonexistent |
dash | 25 Redirect to file descriptor that's not open stdout: stderr: _tmp/spec-bin/dash: 1: 9: Bad file descriptor |
dash | 28 >| to clobber stdout: status=2 XX ZZstderr: _tmp/spec-bin/dash: 3: cannot create /home/andy/git/oilshell/oil/_tmp/spec-tmp/redirect.test.sh/c.txt: File exists |
osh | 28 >| to clobber [osh stdout] Expected u'status=1\nXX\nZZ\n', got 'status=0\nYY\nZZ\n' stdout: status=0 YY ZZstderr: |
osh-byterun | 28 >| to clobber [osh-byterun stdout] Expected u'status=1\nXX\nZZ\n', got 'status=0\nYY\nZZ\n' stdout: status=0 YY ZZstderr: |
dash | 29 &> redirects stdout and stderr stdout: STDOUTstderr: STDERR |
dash | 30 1>&2- to close file descriptor stdout: stderr: _tmp/spec-bin/dash: 2: Syntax error: Bad fd number |
mksh | 30 1>&2- to close file descriptor stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: >&2- : illegal file descriptor name |
osh | 30 1>&2- to close file descriptor [osh status] Expected 0, got 1 stdout: stderr: osh error: Redirect descriptor should look like an integer, got (Str s:2-) |
osh-byterun | 30 1>&2- to close file descriptor [osh-byterun status] Expected 0, got 1 stdout: stderr: osh error: Redirect descriptor should look like an integer, got (Str s:2-) |
osh | 31 <> for read/write [osh stdout] Expected u'line=first\nCONTENTS\nfirst\nsecond\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "bin/osh", line 626, in <module> main(sys.argv) File "bin/osh", line 604, in main sys.exit(AppBundleMain(argv)) File "bin/osh", line 578, in AppBundleMain status = OshMain(argv0, main_argv, login_shell) File "bin/osh", line 388, in OshMain status = ex.ExecuteAndRunExitTrap(node) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1240, in ExecuteAndRunExitTrap status = self.Execute(node) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1235, in Execute status, _ = self.ExecuteAndCatch(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1193, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1165, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 898, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1186, in _ExecuteList status = self._Execute(child) # last status wins File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1155, in _Execute if self.fd_state.Push(redirects, self.waiter): File "/home/andy/git/oilshell/oil/bin/../core/process.py", line 232, in Push if not self._ApplyRedirect(r, waiter): File "/home/andy/git/oilshell/oil/bin/../core/process.py", line 135, in _ApplyRedirect raise NotImplementedError(r.op_id) NotImplementedError: Redir_LessGreat |
osh-byterun | 31 <> for read/write [osh-byterun stdout] Expected u'line=first\nCONTENTS\nfirst\nsecond\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: FATAL: Redir_LessGreat |
dash | 32 &>> appends stdout and stderr stdout: ok STDOUTstderr: STDERR |