for2.0 revision 218889
1214524Sjilles# $FreeBSD: head/tools/regression/bin/sh/parser/for2.0 218889 2011-02-20 14:18:58Z jilles $ 2214524Sjilles 3214524Sjilles# Common extensions to the 'for' syntax. 4214524Sjilles 5214524Sjillesnl=' 6214524Sjilles' 7214524Sjilleslist=' a b c' 8214524Sjillesset -- $list 9214524Sjillesfor s2 in ";" ";$nl"; do 10214524Sjilles for s3 in "$nl" " "; do 11214524Sjilles r='' 12214524Sjilles eval "for i${s2}do${s3}r=\"\$r \$i\"; done" 13214524Sjilles [ "$r" = "$list" ] || exit 1 14214524Sjilles done 15214524Sjillesdone 16214524Sjilles