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: Alex fxmbsw7 Ratchev
Subject: Re: Feature Request: scanf-like parsing
Date: Mon, 25 Jan 2021 17:28:07 +0100

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


reply via email to

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