case | dash | bash | mksh | zsh | osh | description |
0 | pass | pass | pass | pass | pass | If |
1 | pass | pass | pass | pass | pass | else |
2 | pass | pass | pass | pass | pass | elif |
3 | pass | pass | pass | pass | pass | Long style |
4 | pass | pass | pass | pass | pass | If empty command |
5 | pass | pass | pass | pass | FAIL | If subshell true |
details | ||||||
6 | pass | pass | pass | pass | pass | If subshell true WITH OUTPUT is different |
7 | pass | pass | pass | pass | pass | If subshell true WITH ARGUMENT |
8 | pass | pass | pass | pass | FAIL | If subshell false |
details |
43 passed, 0 ok, 0 known unimplemented, 0 known bugs, 2 failed, 0 skipped
osh | 5 If subshell true [osh stdout] Expected b'TRUE\n', got b'' [osh status] Expected 0, got 1 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, cflow = ex.Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 822, in Execute status, _ = self.Execute(arm.cond) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 703, in Execute status, cflow = self.Execute(node.command) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 669, in Execute thunk = self._GetThunkForSimpleCommand(argv, more_env) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 498, in _GetThunkForSimpleCommand assert argv, "Need at least one arugment" AssertionError: Need at least one arugment |
osh | 8 If subshell false [osh stdout] Expected b'FALSE\n', got b'' [osh status] Expected 0, got 1 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, cflow = ex.Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 822, in Execute status, _ = self.Execute(arm.cond) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 703, in Execute status, cflow = self.Execute(node.command) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 669, in Execute thunk = self._GetThunkForSimpleCommand(argv, more_env) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 498, in _GetThunkForSimpleCommand assert argv, "Need at least one arugment" AssertionError: Need at least one arugment |