> 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
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
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.
--