Re: Assignment of associative arrays through braces
From:
Chet Ramey
Subject:
Re: Assignment of associative arrays through braces
Date:
Mon, 20 Aug 2018 14:20:35 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
On 8/19/18 10:27 AM, konsolebox wrote:
>> This proposal simply requests an intuitively equivalent simple
>> assignment syntax for associative arrays just like a='...' and
>> a=(...), with same behavior for scoping.
>>
>> Maybe we can add another option like -G to have similar effect but
>> that's a little different already. Just allowing a={} would make it
>> simpler for every scripter.
>
> By the way, is this rejected?
No, it will not make it into bash-5.0 so I haven't looked at it further.
It is on the list for a future release.
--
``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/