Bob <[EMAIL PROTECTED]> wrote: > XXX='a "b c" d' > for x in $XXX ; do > echo $x > done
XXX='a "b c" d'
eval "set $XXX"
for x in "$@" ; do
echo $x
done
If the first element in XXX might start with "-", then it takes a
little more work to ensure it isn't misinterpreted as an option to
"set":
eval "set x $XXX"
shift
paul
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash
