On 01/03/2012 10:46 AM, jida...@jidanni.org wrote:
>>>>>> "GW" == Greg Wooledge <wool...@eeg.ccf.org> 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   ebl...@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to