| case | dash | bash | mksh | osh | description |
| 0 | pass | pass | pass | pass | Empty for loop is allowed |
| 1 | pass | pass | pass | pass | Empty for loop without in. Do can be on the same line I guess. |
| 2 | pass | pass | pass | pass | Empty case statement |
| 3 | pass | pass | pass | FAIL | Last case without ;; |
| details | |||||
| 4 | pass | pass | pass | FAIL | Only case without ;; |
| details | |||||
| 5 | pass | pass | pass | FAIL | Case with optional ( |
| details | |||||
| 6 | pass | pass | ok | pass | Empty action for case is syntax error |
| details | |||||
| 7 | pass | pass | pass | pass | Empty action is allowed for last case |
| 8 | pass | pass | pass | FAIL | Case with | pattern |
| details | |||||
| 9 | pass | pass | ok | pass | Bare semi-colon not allowed |
| details | |||||
| 10 | pass | pass | pass | pass | Command substitution in default |
| 11 | pass | pass | pass | pass | Arithmetic expansion |
| 12 | pass | pass | pass | pass | Newlines in compound lists |
| 13 | pass | pass | pass | pass | Multiple here docs on one line |
| 14 | pass | pass | pass | pass | cat here doc; echo; cat here doc |
54 passed, 2 ok, 0 known unimplemented, 0 known bugs, 4 failed, 0 skipped
| osh | 3 Last case without ;; [osh stdout] Expected b'A\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, cflow = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
status, cflow = self.Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 835, in Execute
raise NotImplementedError
NotImplementedError
|
| osh | 4 Only case without ;; [osh stdout] Expected b'A\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, cflow = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
status, cflow = self.Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 835, in Execute
raise NotImplementedError
NotImplementedError
|
| osh | 5 Case with optional ( [osh stdout] Expected b'A\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, cflow = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
status, cflow = self.Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 835, in Execute
raise NotImplementedError
NotImplementedError
|
| mksh | 6 Empty action for case is syntax error stdout: stderr: /bin/mksh: <stdin>[4]: syntax error: ')' unexpected |
| osh | 8 Case with | pattern [osh stdout] Expected b'A\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, cflow = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
status, cflow = self.Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 835, in Execute
raise NotImplementedError
NotImplementedError
|
| mksh | 9 Bare semi-colon not allowed stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: ';' unexpected |