|
From: | Chet Ramey |
Subject: | Re: "${assoc[@]@k}" doesn't get expanded to separate words within compound assignment syntax |
Date: | Mon, 25 Mar 2024 11:22:14 -0400 |
User-agent: | Mozilla Thunderbird |
On 3/24/24 1:04 PM, Zachary Santer wrote:
On Fri, Mar 22, 2024 at 11:23 AM Chet Ramey <chet.ramey@case.edu> wrote:This is what you can do with @K. https://lists.gnu.org/archive/html/bug-bash/2021-08/msg00119.html Word splitting doesn't happen on the rhs of an assignment statement, so you use eval. The @K quoting is eval-safe.Yeah, but what can you do with @k?
Once I added the kvpair key/value compound assignment syntax, it made sense to have a transformation that would output it. -- ``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/
OpenPGP_signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |