Results for loop.test.sh

statusdashbashmkshzshosh
pass 1313141317
ok 24121
N-I 10000
BUG 21330
total1818181818
casedashbashmkshzshoshdescription
0pass pass pass pass pass implicit for loop
1pass pass pass pass pass empty for loop (has "in")
2pass ok ok BUG pass for loop with invalid identifier
detailsdetailsdetails
3pass pass pass pass pass Tilde expansion within for loop
4N-I pass pass pass pass Brace Expansion within Array
details
5pass pass pass pass pass using loop var outside loop
6pass pass pass pass pass continue
7pass pass pass pass pass break
8pass pass pass pass ok dynamic control flow (KNOWN INCOMPATIBILITY)
details
9pass pass pass pass pass while in while condition
10pass pass pass pass pass while in pipe
11pass pass pass pass pass while in pipe with subshell
12pass pass pass pass pass until loop
13pass pass pass ok pass continue at top level
details
14ok ok BUG ok pass continue in subshell
detailsdetailsdetailsdetails
15BUG BUG BUG BUG pass continue in subshell aborts with errexit
detailsdetailsdetailsdetails
16ok ok pass pass pass bad arg to break
detailsdetails
17BUG ok BUG BUG pass too many args to continue
detailsdetailsdetailsdetails
70 passed, 10 OK, 1 not implemented, 9 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

bash2 for loop with invalid identifier

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 3: `-': not a valid identifier
mksh2 for loop with invalid identifier

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: for: bad identifier
zsh2 for loop with invalid identifier

stdout:
hi
stderr:
zsh: parse error near `-'
zsh: parse error near `done'
dash4 Brace Expansion within Array

stdout:
-{a,b}
{c,d}-
stderr:
osh8 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
zsh13 continue at top level

stdout:
one
stderr:
continue: not in while, until, select, or repeat loop
dash14 continue in subshell

stdout:
> 1
subshell status=0
. 1
> 2
subshell status=0
. 2
stderr:
bash14 continue in subshell

stdout:
> 1
subshell status=0
. 1
> 2
subshell status=0
. 2
stderr:
mksh14 continue in subshell

stdout:
> 1
Should not print
subshell status=0
. 1
> 2
Should not print
subshell status=0
. 2
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[6]: continue: can't continue
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[6]: continue: can't continue
zsh14 continue in subshell

stdout:
> 1
subshell status=0
. 1
> 2
subshell status=0
. 2
stderr:
dash15 continue in subshell aborts with errexit

stdout:
> 1
should fail after subshell
. 1
> 2
should fail after subshell
. 2
stderr:
bash15 continue in subshell aborts with errexit

stdout:
> 1
should fail after subshell
. 1
> 2
should fail after subshell
. 2
stderr:
mksh15 continue in subshell aborts with errexit

stdout:
> 1
Should not print
should fail after subshell
. 1
> 2
Should not print
should fail after subshell
. 2
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[7]: continue: can't continue
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[7]: continue: can't continue
zsh15 continue in subshell aborts with errexit

stdout:
> 1
should fail after subshell
. 1
> 2
should fail after subshell
. 2
stderr:
dash16 bad arg to break

stdout:
hi
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: break: Illegal number: oops
bash16 bad arg to break

stdout:
hi
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 4: break: oops: numeric argument required
dash17 too many args to continue

stdout:
a
b
c
--
stderr:
bash17 too many args to continue

stdout:
a
--
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 3: continue: too many arguments
mksh17 too many args to continue

stdout:
a
b
c
--
stderr:
zsh17 too many args to continue

stdout:
a
b
c
--
stderr:
continue: too many arguments
continue: too many arguments
continue: too many arguments