spec test index / oilshell.org
143 passed, 2 ok, 3 known unimplemented, 1 known bugs, 3 failed, 2 skipped
dash | 0 Here string stdout: stderr: /bin/dash: 1: Syntax error: redirection unexpected |
dash | 1 Here string with $ stdout: stderr: /bin/dash: 1: Syntax error: redirection unexpected |
osh | 1 Here string with $ [osh stdout] Expected u'one\ntwo\n\n', got 'one\\ntwo\\n\n' stdout: one\ntwo\nstderr: |
osh_ALT | 1 Here string with $ [osh_ALT stdout] Expected u'one\ntwo\n\n', got 'one\\ntwo\\n\n' stdout: one\ntwo\nstderr: |
osh | 3 Here doc from another input file descriptor [osh status] Expected 0, got 1 stdout: 8: here doc on descriptorstderr: dup2(10, 8) error: [Errno 9] Bad file descriptor 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 935, in _Execute self.fd_state.Pop() File "/home/andy/git/oilshell/oil/bin/../core/process.py", line 193, in Pop os.dup2(saved, orig) OSError: [Errno 9] Bad file descriptor dup2(10, 8) error: [Errno 9] Bad file descriptor 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 935, in _Execute self.fd_state.Pop() File "/home/andy/git/oilshell/oil/bin/../core/process.py", line 193, in Pop os.dup2(saved, orig) OSError: [Errno 9] Bad file descriptor |
osh_ALT | 3 Here doc from another input file descriptor [osh_ALT status] Expected 0, got 1 stdout: 8: here doc on descriptorstderr: dup2(10, 8) error: [Errno 9] Bad file descriptor 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 935, in _Execute self.fd_state.Pop() File "/home/andy/git/oil/bin/../core/process.py", line 193, in Pop OSError: [Errno 9] Bad file descriptor 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 dup2(10, 8) error: [Errno 9] Bad file descriptor 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 935, in _Execute self.fd_state.Pop() File "/home/andy/git/oil/bin/../core/process.py", line 193, in Pop OSError: [Errno 9] Bad file descriptor 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 |
osh | 5 Here doc with bad var delimiter [osh stdout] Expected 'here\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Line 1 of '<stdin>' cat <<${a} ^~ Error evaluating here doc delimiter: (CompoundWord parts:[(BracedVarSub token:(token id:VSub_Name val:a span_id:4) spids:[35])]) --- Line 0 of '<unknown>' <no position info for token> Error parsing AndOr in ParseCommandTerm --- |
osh_ALT | 5 Here doc with bad var delimiter [osh_ALT stdout] Expected 'here\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: Line 1 of '<stdin>' cat <<${a} ^~ Error evaluating here doc delimiter: (CompoundWord parts:[(BracedVarSub token:(token id:VSub_Name val:a span_id:4) spids:[35])]) --- Line 0 of '<unknown>' <no position info for token> Error parsing AndOr in ParseCommandTerm --- |
bash | 6 Here doc with bad comsub delimiter stdout: herestderr: |
mksh | 6 Here doc with bad comsub delimiter stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
mksh | 15 Here doc with line continuation, then pipe. Syntax error. stdout: stderr: /bin/mksh: <stdin>[5]: cat: 1: No such file or directory /bin/mksh: <stdin>[6]: syntax error: '|' unexpected |
dash | 29 Here doc within subshell with boolean stdout: 127stderr: /bin/dash: 1: [[: not found |