Results for loop.test.sh

casedashbashmkshoshdescription
0pass pass pass pass implicit for loop
1pass pass BUG pass empty for loop (has "in")
details
2pass ok ok FAIL for loop with invalid identifier
detailsdetailsdetails
3pass pass pass pass Tilde expansion within for loop
4N-I pass pass pass Brace Expansion within Array
details
5pass pass pass pass using loop var outside loop
6pass pass pass pass continue
7pass pass pass pass break
8N-I N-I N-I pass continue at top level is error
detailsdetailsdetails
9N-I N-I N-I pass break at top level is error
detailsdetailsdetails
10pass pass pass pass while in while condition
11pass pass pass pass while in pipe
12pass pass pass pass while in pipe with subshell
13pass pass pass FAIL until loop
details

44 passed, 2 ok, 7 known unimplemented, 1 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

mksh1 empty for loop (has "in")

stdout:
1
2
3
stderr:
bash2 for loop with invalid identifier

stdout:
stderr: 
/bin/bash: line 3: `-': not a valid identifier
mksh2 for loop with invalid identifier

stdout:
stderr: 
/bin/mksh: <stdin>[1]: for: bad identifier
osh2 for loop with invalid identifier

[osh stdout] Expected b'', got b'hi\nhi\nhi\n'
[osh status] Expected 2, got 0

stdout:
hi
hi
hi
stderr:
dash4 Brace Expansion within Array

stdout:
-{a,b}
{c,d}-
stderr:
dash8 continue at top level is error

stdout:
bad
stderr:
bash8 continue at top level is error

stdout:
bad
stderr:
/bin/bash: line 1: continue: only meaningful in a `for', `while', or `until' loop
mksh8 continue at top level is error

stdout:
bad
stderr:
/bin/mksh: <stdin>[1]: continue: can't continue
dash9 break at top level is error

stdout:
bad
stderr:
bash9 break at top level is error

stdout:
bad
stderr:
/bin/bash: line 1: break: only meaningful in a `for', `while', or `until' loop
mksh9 break at top level is error

stdout:
bad
stderr:
/bin/mksh: <stdin>[1]: break: can't break
osh13 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 = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 900, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 878, in _Execute
    raise AssertionError(node.tag)
AssertionError: 17