On 01/03/2012 10:46 AM, [email protected] wrote: >>>>>> "GW" == Greg Wooledge <[email protected]> writes: > GW> Why not just use a named array? > GW> $ read -a myarray > But does that let me get a my favorite array, the positional parameters?
Any time you want to assign the positional parameters, use set. It's as
simple as that. What's wrong with:
read -a myarray
set -- "${myarray[@]}"
--
Eric Blake [email protected] +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
