Re: incorrect associative array key parsing if they contain closing square bracket

2011-05-29 Thread Chet Ramey
> associative array key parsing seems to be incorrect if they contain > closing square bracket inside the array=([key]=value) construct. > > the following testcase : > > $ declare -A key_full; key_full=(["version[agent]"]=agent.version); echo > "${!key_full[@]}" Yes, this is a problem. Thanks

Re: incorrect associative array key parsing if they contain closing square bracket

2011-05-02 Thread Chet Ramey
On 5/2/11 9:14 AM, Rich wrote: > associative array key parsing seems to be incorrect if they contain closing > square bracket inside the array=([key]=value) construct. Yes, this is a known problem. Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

incorrect associative array key parsing if they contain closing square bracket

2011-05-02 Thread Rich
associative array key parsing seems to be incorrect if they contain closing square bracket inside the array=([key]=value) construct. the following testcase : $ declare -A key_full; key_full=(["version[agent]"]=agent.version); echo "${!key_full[@]}" --- results per version. --