case | dash | bash | mksh | osh | description |
0 | pass | pass | pass | FAIL | case |
details | |||||
1 | pass | pass | pass | FAIL | case in subshell |
details | |||||
2 | pass | pass | pass | pass | Command sub word part |
3 | pass | pass | pass | pass | Backtick |
4 | pass | pass | pass | FAIL | Backtick 2 |
details | |||||
5 | pass | pass | pass | FAIL | Nested backticks |
details | |||||
6 | pass | pass | pass | pass | Making command out of command sub should work |
7 | BUG | pass | ok | FAIL | Making keyword out of command sub should NOT work |
details | details | details | |||
8 | pass | pass | pass | pass | Command sub with here doc |
9 | pass | pass | pass | pass | Here doc with pipeline |
33 passed, 1 ok, 0 known unimplemented, 1 known bugs, 5 failed, 0 skipped
osh | 0 case [osh stdout] Expected b'letter\n', got b'' stdout: stderr: Traceback (most recent call last): File "bin/osh", line 378, in <module> sys.exit(main(sys.argv)) File "bin/osh", line 368, in main return OshMain(main_argv) File "bin/osh", line 327, in OshMain status = ex.Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 900, in Execute status = self._Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 791, in _Execute status = self._Execute(child) # last status wins File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 875, in _Execute raise NotImplementedError NotImplementedError |
osh | 1 case in subshell [osh stdout] Expected b'letter\n', got b'\n' stdout: stderr: Traceback (most recent call last): File "bin/osh", line 378, in <module> sys.exit(main(sys.argv)) File "bin/osh", line 368, in main return OshMain(main_argv) File "bin/osh", line 327, in OshMain status = ex.Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 900, in Execute status = self._Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 677, in _Execute argv = self.ev.EvalWords(words) File "/home/andy/git/oil/bin/../core/word_eval.py", line 769, in EvalWords return self._EvalWords(words) File "/home/andy/git/oil/bin/../core/word_eval.py", line 759, in _EvalWords val = self._EvalCompoundWord(w, ifs=ifs, do_glob=do_glob) File "/home/andy/git/oil/bin/../core/word_eval.py", line 455, in _EvalCompoundWord val = self._EvalWordPart(p, quoted=False) # may raise File "/home/andy/git/oil/bin/../core/word_eval.py", line 662, in _EvalWordPart return self._EvalCommandSub(part.command_list) File "/home/andy/git/oil/bin/../core/word_eval.py", line 819, in _EvalCommandSub status = p.Run() File "/home/andy/git/oil/bin/../core/process.py", line 482, in Run self.Start() File "/home/andy/git/oil/bin/../core/process.py", line 468, in Start self.thunk.RunInChild() File "/home/andy/git/oil/bin/../core/process.py", line 273, in RunInChild self.RunInParent() File "/home/andy/git/oil/bin/../core/process.py", line 328, in RunInParent return self.ex.Execute(self.node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 900, in Execute status = self._Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 791, in _Execute status = self._Execute(child) # last status wins File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 875, in _Execute raise NotImplementedError NotImplementedError |
osh | 4 Backtick 2 [osh stdout] Expected b'ls\n', got b'-n l -n s\n' stdout: -n l -n sstderr: |
osh | 5 Nested backticks [osh stdout] Expected b'01-bad-func.sh\n', got b'-n s` tests\n' stdout: -n s` testsstderr: Unexpected error in execvpe('`echo', ['`echo', '-n', 'l'], ...): [Errno 2] No such file or directory: b'/home/andy/bin/`echo' |
dash | 7 Making keyword out of command sub should NOT work stdout: stderr: /bin/dash: 1: for: not found |
mksh | 7 Making keyword out of command sub should NOT work stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: 'do' unexpected |
osh | 7 Making keyword out of command sub should NOT work [osh status] Expected 2, got 127 stdout: stderr: Unexpected error in execvpe('for', ['for', 'i', 'in', 'a', 'b', 'c'], ...): [Errno 2] No such file or directory: b'/home/andy/bin/for' |