Re: Why do associative arrays have a space before the closing )?
From:
Chet Ramey
Subject:
Re: Why do associative arrays have a space before the closing )?
Date:
Sun, 07 Sep 2014 13:07:44 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
On 9/5/14, 5:30 PM, lolilolicon wrote:
> In the `declare -p` output, I mean:
>
> % bash -c 'declare -A x; x=([foo]=bar [x]=y); declare -p x;'
> declare -A x='([foo]="bar" [x]="y" )'
>
> Does it serve any purpose? Just curious.
>
It's an artifact of how the code is written. There's no special
meaning.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/