Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11683

Re: problem with @A and arrays

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: problem with @A and arrays
Date 2015-10-17 18:01 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.525.1445119320.7904.bug-bash@gnu.org> (permalink)
References <56219cc3.a1a1c20a.fa694.5581@mx.google.com>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: problem with @A and arrays Chet Ramey <chet.ramey@case.edu> - 2015-10-17 18:01 -0400

csiph-web