Re: Feature request: Empty associative-array keys

2021-04-14 Thread Chet Ramey
On 4/8/21 6:02 PM, Koichi Murase wrote: No error message for `unset 'a[]''? It's still a valid function name, and `unset' attempts to unset variables first, then functions. POSIX leaves that unspecified; that is how bash behaves. Bash doesn't print an error message if you try to unset a functi

Feature request: Empty associative-array keys

2021-04-08 Thread Koichi Murase
This is a topic I originally mentioned in another discussion on the new treatment of assoc_expand_once ( https://lists.gnu.org/archive/html/bug-bash/2021-03/msg00059.html ). As in the mail subject, I suggest supporting empty keys for associative arrays. Does anyone have any opinion on this suggest