Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH (not final)] (take three?) unset "array[$anything]"



> On 03 June 2021 at 14:13 Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
> If I understand correctly, the "stripquote" variant is the one
> where the user can do:
> 
> unset 'hash["foo"]'
> 
> unset "hash['']"
> 
> unset "hash[${(qq)key}]"
> 
> That is where quotes are parsed and removed but otherwise
> serve no purpose.
> 
> IMO, that just confuses things even more.

It would probably be useful to make a list of difficult cases --- both
how the original is handled and how anything that looks like a likely workaround
is treated  --- and then assemble a table of how they're handled now and with the
two most promising proposed fixes.

pws




Messages sorted by: Reverse Date, Date, Thread, Author