1 # $FreeBSD: head/bin/sh/tests/parser/for1.0 218889 2011-02-20 14:18:58Z jilles $
6 for s1 in "$nl" " "; do
7 for s2 in "$nl" ";" ";$nl"; do
8 for s3 in "$nl" " "; do
10 eval "for i${s1}in ${list}${s2}do${s3}r=\"\$r \$i\"; done"
11 [ "$r" = "$list" ] || exit 1
16 for s2 in "$nl" " "; do
17 for s3 in "$nl" " "; do
19 eval "for i${s2}do${s3}r=\"\$r \$i\"; done"
20 [ "$r" = "$list" ] || exit 1
23 for s1 in "$nl" " "; do
24 for s2 in "$nl" ";" ";$nl"; do
25 for s3 in "$nl" " "; do
26 eval "for i${s1}in${s2}do${s3}exit 1; done"