spec test index / oilshell.org
status | dash | bash | mksh | osh | |
pass | 15 | 15 | 13 | 14 | |
ok | 0 | 0 | 2 | 0 | |
FAIL | 0 | 0 | 0 | 1 | |
total | 15 | 15 | 15 | 15 | |
case | dash | bash | mksh | osh | description |
0 | pass | pass | pass | FAIL | Empty for loop is allowed |
details | |||||
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 |
57 passed, 2 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 0 Empty for loop is allowed [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1125, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1955, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1777, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1674, in _Dispatch status = self._DoForEach(node) File "/home/uke/oil/osh/cmd_eval.py", line 1212, in _DoForEach assert iter_list, iter_list AssertionError: [] |
mksh | 6 Empty action for case is syntax error stdout: stderr: mksh: <stdin>[4]: syntax error: ')' unexpected |
mksh | 9 Bare semi-colon not allowed stdout: stderr: mksh: <stdin>[1]: syntax error: ';' unexpected |