cool, now that u're the main bash coder greycat and co wont fall like
cannibals over you for using eval
cheers for old code

On Mon, Jan 25, 2021, 17:18 Chet Ramey <chet.ra...@case.edu> wrote:

> 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/
>
>

Reply via email to