[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/
- Re: Feature Request: scanf-like parsing, (continued)
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/22
- Re: Feature Request: scanf-like parsing, Saint Michael, 2021/01/22
- Re: Feature Request: scanf-like parsing, Daniel Colascione, 2021/01/22
- Re: Feature Request: scanf-like parsing, pepa65, 2021/01/22
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/22
- Re: Feature Request: scanf-like parsing, Greg Wooledge, 2021/01/22
- Re: Feature Request: scanf-like parsing, pepa65, 2021/01/22
- Re: Feature Request: scanf-like parsing, Léa Gris, 2021/01/22
- Re: Feature Request: scanf-like parsing, Oğuz, 2021/01/22
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/25
- Re: Feature Request: scanf-like parsing,
Chet Ramey <=
- Re: Feature Request: scanf-like parsing, Alex fxmbsw7 Ratchev, 2021/01/25
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/25
- Re: Feature Request: scanf-like parsing, Alex fxmbsw7 Ratchev, 2021/01/25
- Re: Feature Request: scanf-like parsing, Eli Schwartz, 2021/01/25
- Re: Feature Request: scanf-like parsing, Alex fxmbsw7 Ratchev, 2021/01/25
- Re: Feature Request: scanf-like parsing, Eli Schwartz, 2021/01/25
- Message not available
- Fwd: Feature Request: scanf-like parsing, Alex fxmbsw7 Ratchev, 2021/01/25
- Re: Feature Request: scanf-like parsing, Oğuz, 2021/01/25
- Re: Feature Request: scanf-like parsing, Greg Wooledge, 2021/01/25
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/25