Re: compgen -A arrayvar does not include associative arrays

2016-04-22 Thread Chet Ramey
On 4/21/16 3:21 PM, Grisha Levit wrote: > $ echo ${BASH_CMDS@a}; compgen -A arrayvar BASH_CMDS; echo $? > A > 1 > > The description doesn't specify that the output is limited to indexed > arrays only and it would be nice to have associative array variables > included as well. I will add something

compgen -A arrayvar does not include associative arrays

2016-04-21 Thread Grisha Levit
$ echo ${BASH_CMDS@a}; compgen -A arrayvar BASH_CMDS; echo $? A 1 The description doesn't specify that the output is limited to indexed arrays only and it would be nice to have associative array variables included as well. I had a recent use case for this when adding array index completion to bas