On 4/2/26 1:54 AM, Zachary Santer wrote:
$ printf '%s\n' "${| REPLY=( zero one two ); }" zero $ printf '%s\n' "${@ REPLY=( zero one two ); }" zero one two $ printf '%s\n' "${* REPLY=( zero one two ); }" zero one twoLike the ${| command; } form, REPLY within the funsub starts life as an initially-unset local variable, not an initially empty indexed array variable. That way, REPLY can become either an indexed or associative array within the funsub.
Thanks for the proposal. I'll look at it for a future version.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
