bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Request: scanf-like parsing


From: Chet Ramey
Subject: Re: Feature Request: scanf-like parsing
Date: Mon, 25 Jan 2021 11:17:45 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1

On 1/25/21 10:17 AM, Chet Ramey wrote:
I agree that it might be more useful if it
expanded to multiple words in contexts like

copy=( "${assoc[@]@K}" )

I forgot to mention that since the keys and values are both quoted so they
can be reused, you can copy an associative array using a key-value
assignment like

declare -A copy
eval copy=( "${assoc[@]@K}" )

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]