for2.0 revision 259210
143725Syokota# $FreeBSD: head/bin/sh/tests/parser/for2.0 218889 2011-02-20 14:18:58Z jilles $
243725Syokota
343725Syokota# Common extensions to the 'for' syntax.
443725Syokota
543725Syokotanl='
643725Syokota'
743725Syokotalist=' a b c'
843725Syokotaset -- $list
943725Syokotafor s2 in ";" ";$nl"; do
1043725Syokota	for s3 in "$nl" " "; do
1143725Syokota		r=''
1243725Syokota		eval "for i${s2}do${s3}r=\"\$r \$i\"; done"
1343725Syokota		[ "$r" = "$list" ] || exit 1
1443725Syokota	done
1543725Syokotadone
1643725Syokota