spec test index / oilshell.org
125 passed, 12 ok, 6 known unimplemented, 1 known bugs, 8 failed, 0 skipped
dash | 3 Nonexistent file stdout: status=2stderr: /bin/dash: 1: cannot open /home/andy/git/oilshell/oil/_tmp/spec-tmp/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: /bin/dash: 2: arithmetic expression: expecting primary: "i++" |
dash | 13 Descriptor redirect with filename stdout: stderr: /bin/dash: 2: Syntax error: Bad fd number |
bash | 13 Descriptor redirect with filename stdout: status=0stderr: |
osh | 13 Descriptor redirect with filename [osh stdout] Expected 'status=1\n', got 'one\nstatus=0\n' stdout: one status=0stderr: osh warning: Redirect descriptor should look like an integer, got (Str s:/home/andy/git/oilshell/oil/_tmp/spec-tmp/nonexistent-filename__) |
osh_ALT | 13 Descriptor redirect with filename [osh_ALT stdout] Expected 'status=1\n', got 'one\nstatus=0\n' stdout: one status=0stderr: osh warning: Redirect descriptor should look like an integer, got (Str s:/home/andy/git/oilshell/oil/_tmp/spec-tmp/nonexistent-filename__) |
mksh | 16 Prefix redirect for loop -- not allowed stdout: stderr: /bin/mksh: <stdin>[1]: for: not found /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_ALT | 16 Prefix redirect for loop -- not allowed [osh_ALT 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: /bin/dash: 1: exec: {myfd}: not found |
mksh | 21 Named file descriptor stdout: stderr: /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_ALT | 21 Named file descriptor [osh_ALT stdout] Expected 'named-fd-contents\n', got '' [osh_ALT 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: /bin/dash: 2: cannot create : Directory nonexistent /bin/dash: 5: cannot create : Directory nonexistent |
osh | 24 Redirect to empty string [osh stdout] Expected 'result=1\n', got 's\nresult=0\ns\nDONE\n' [osh status] Expected 1, got 0 stdout: s result=0 s DONEstderr: osh warning: Redirect filename can't be empty osh warning: Redirect filename can't be empty |
osh_ALT | 24 Redirect to empty string [osh_ALT stdout] Expected 'result=1\n', got 's\nresult=0\ns\nDONE\n' [osh_ALT status] Expected 1, got 0 stdout: s result=0 s DONEstderr: osh warning: Redirect filename can't be empty osh warning: Redirect filename can't be empty |
dash | 25 Redirect to file descriptor that's not open stdout: stderr: /bin/dash: 1: 9: Bad file descriptor |
dash | 28 >| to clobber stdout: status=2 XX ZZstderr: /bin/dash: 3: cannot create /home/andy/git/oilshell/oil/_tmp/spec-tmp/c.txt: File exists |
osh | 28 >| to clobber [osh stdout] Expected u'status=1\nXX\nZZ\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "bin/osh", line 475, in <module> main(sys.argv) File "bin/osh", line 458, in main sys.exit(OilMain(argv)) File "bin/osh", line 441, in OilMain status = OshMain(main_argv, login_shell) File "bin/osh", line 394, in OshMain status = ex.Execute(node) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 969, in Execute status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 933, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 743, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 962, in _ExecuteList status = self._Execute(child) # last status wins File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 931, in _Execute if self.fd_state.Push(redirects, self.waiter): File "/home/andy/git/oilshell/oil/bin/../core/process.py", line 180, in Push if not self._ApplyRedirect(r, waiter): File "/home/andy/git/oilshell/oil/bin/../core/process.py", line 111, in _ApplyRedirect raise NotImplementedError(r.op_id) NotImplementedError: Redir_Clobber |
osh_ALT | 28 >| to clobber [osh_ALT stdout] Expected u'status=1\nXX\nZZ\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.py", line 72, in _run_code exec code in run_globals File "/home/andy/git/oilshell/oil/bin/oil.py", line 475, in <module> main(sys.argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 458, in main sys.exit(OilMain(argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 441, in OilMain status = OshMain(main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 394, in OshMain status = ex.Execute(node) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 969, in Execute status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 933, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 743, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 962, in _ExecuteList status = self._Execute(child) # last status wins File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 931, in _Execute if self.fd_state.Push(redirects, self.waiter): File "/home/andy/git/oil/bin/../core/process.py", line 180, in Push File "/home/andy/git/oil/bin/../core/process.py", line 111, in _ApplyRedirect NotImplementedError: Redir_Clobber FATAL: couldn't import from app bundle '_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
dash | 29 &> redirects stdout and stderr stdout: STDOUTstderr: STDERR |
osh | 29 &> redirects stdout and stderr [osh stdout] Expected u'ok\nok\n', got 'STDOUT\n' [osh status] Expected 0, got 1 stdout: STDOUTstderr: Started background job with pid 544 STDERR |
osh_ALT | 29 &> redirects stdout and stderr [osh_ALT stdout] Expected u'ok\nok\n', got 'STDOUT\n' [osh_ALT status] Expected 0, got 1 stdout: STDOUTstderr: Started background job with pid 568 STDERR |
dash | 30 1>&2- to close file descriptor stdout: stderr: /bin/dash: 2: Syntax error: Bad fd number |
mksh | 30 1>&2- to close file descriptor stdout: stderr: /bin/mksh: <stdin>[1]: >&2- : illegal file descriptor name |
osh | 30 1>&2- to close file descriptor [osh stdout] Expected u'', got 'hi\n' stdout: histderr: osh warning: Redirect descriptor should look like an integer, got (Str s:2-) |
osh_ALT | 30 1>&2- to close file descriptor [osh_ALT stdout] Expected u'', got 'hi\n' stdout: histderr: osh warning: 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 475, in <module> main(sys.argv) File "bin/osh", line 458, in main sys.exit(OilMain(argv)) File "bin/osh", line 441, in OilMain status = OshMain(main_argv, login_shell) File "bin/osh", line 394, in OshMain status = ex.Execute(node) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 969, in Execute status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 933, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 743, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 962, in _ExecuteList status = self._Execute(child) # last status wins File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 931, in _Execute if self.fd_state.Push(redirects, self.waiter): File "/home/andy/git/oilshell/oil/bin/../core/process.py", line 180, in Push if not self._ApplyRedirect(r, waiter): File "/home/andy/git/oilshell/oil/bin/../core/process.py", line 111, in _ApplyRedirect raise NotImplementedError(r.op_id) NotImplementedError: Redir_LessGreat |
osh_ALT | 31 <> for read/write [osh_ALT stdout] Expected u'line=first\nCONTENTS\nfirst\nsecond\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.py", line 72, in _run_code exec code in run_globals File "/home/andy/git/oilshell/oil/bin/oil.py", line 475, in <module> main(sys.argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 458, in main sys.exit(OilMain(argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 441, in OilMain status = OshMain(main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 394, in OshMain status = ex.Execute(node) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 969, in Execute status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 933, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 743, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 962, in _ExecuteList status = self._Execute(child) # last status wins File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 931, in _Execute if self.fd_state.Push(redirects, self.waiter): File "/home/andy/git/oil/bin/../core/process.py", line 180, in Push File "/home/andy/git/oil/bin/../core/process.py", line 111, in _ApplyRedirect NotImplementedError: Redir_LessGreat FATAL: couldn't import from app bundle '_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |