bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with @A and arrays


From: Chet Ramey
Subject: Re: problem with @A and arrays
Date: Sat, 17 Oct 2015 18:01:46 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 10/16/15 8:55 PM, isabella parakiss wrote:
> ${array[@]@A} splits the values.
> 
> $ a=("a    b" "c   d"); printf "<%s>" "${a[@]@A}"
> <declare><-a><a=([0]="a><b"><[1]="c><d")>

Thanks for the report.  This will be fixed in the next bash release.
(BTW, your patch does not result in a valid declare command with a
correct compound assignment.)

Chet
-- 
``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/



reply via email to

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