| case | dash | bash | mksh | osh | description |
| 0 | pass | pass | pass | pass | implicit for loop |
| 1 | pass | pass | BUG | pass | empty for loop (has "in") |
| details | |||||
| 2 | pass | ok | ok | FAIL | for loop with invalid identifier |
| details | details | details | |||
| 3 | pass | pass | pass | pass | using loop var outside loop |
| 4 | pass | pass | pass | pass | continue |
| 5 | pass | pass | pass | pass | break |
| 6 | pass | pass | pass | pass | while in while condition |
| 7 | pass | pass | pass | pass | while in pipe |
| 8 | pass | pass | pass | pass | while in pipe with subshell |
| 9 | pass | pass | pass | FAIL | until loop |
| details |
35 passed, 2 ok, 0 known unimplemented, 1 known bugs, 2 failed, 0 skipped
| mksh | 1 empty for loop (has "in") stdout: 1 2 3stderr: |
| bash | 2 for loop with invalid identifier stdout: stderr: /bin/bash: line 3: `-': not a valid identifier |
| mksh | 2 for loop with invalid identifier stdout: stderr: /bin/mksh: <stdin>[1]: for: bad identifier |
| osh | 2 for loop with invalid identifier [osh stdout] Expected b'', got b'hi\nhi\nhi\n' [osh status] Expected 2, got 0 stdout: hi hi histderr: |
| osh | 9 until loop [osh stdout] Expected b'hi\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 838, in Execute
raise AssertionError(node.tag)
AssertionError: 16
|