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 c...@case.edu http://tiswww.cwru.edu/~chet/