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 | pass | Last case without ;; |
4 | pass | pass | pass | pass | Only case without ;; |
5 | pass | pass | pass | pass | Case with optional ( |
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 | pass | Case with | pattern |
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 |
58 passed, 2 ok, 0 known unimplemented, 0 known bugs, 0 failed, 0 skipped
mksh | 6 Empty action for case is syntax error stdout: stderr: /bin/mksh: <stdin>[4]: syntax error: ')' unexpected |
mksh | 9 Bare semi-colon not allowed stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: ';' unexpected |