bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compgen -A arrayvar does not include associative arrays


From: Grisha Levit
Subject: compgen -A arrayvar does not include associative arrays
Date: Thu, 21 Apr 2016 15:21:52 -0400

$ echo address@hidden; 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
bash-completion.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]