Subject: Re: Help with associative arrays
From: Stephane Chazelas <[email-masked]>
To: Lawrence Velázquez <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked]
Date: Tue, 23 Aug 2016 16:54:16 +0100
List-Id: Zsh Workers List <zsh-workers.zsh.org>

2016-08-21 17:18:11 -0400, Lawrence Velázquez:
[...]
>         The second difference is that a double-quote (`"') may appear as
>         part of a subscript expression without being preceded by
>         a backslash....
[...]

An annoying consequence is that (contrary to with ksh93) you can't do:

a[""]=foo

To assign an element for the empty key. You have to do things
like:

a[${}]=foo

or

a+=('' foo)

instead.

It would be nice if one could do:

a[]=foo

(which currently returns an error)

Note that it's a lot worse in bash. bash associative arrays
can't have an element with an empty key!

-- 
Stephane