Re: problem with @A and arrays

2015-10-18 Thread isabella parakiss
On 10/18/15, Chet Ramey wrote: > (BTW, your patch does not result in a valid declare command with a > correct compound assignment.) > Yes I'm sorry, I noticed it after sending the message... --- xoxo iza

Re: problem with @A and arrays

2015-10-17 Thread Chet Ramey
On 10/16/15 8:55 PM, isabella parakiss wrote: > ${array[@]@A} splits the values. > > $ a=("ab" "c d"); printf "<%s>" "${a[@]@A}" > <-a><[1]="c> 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 com

problem with @A and arrays

2015-10-16 Thread isabella parakiss
${array[@]@A} splits the values. $ a=("ab" "c d"); printf "<%s>" "${a[@]@A}" <-a><[1]="c> diff --git a/subst.c b/subst.c index 2a7366f..d7258b8 100644 --- a/subst.c +++ b/subst.c @@ -4796,18 +4796,26 @@ array_var_assignment (v, itype, quoted) { char *ret, *val, flags[MAX_ATTRIBUTES];