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

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



On Wed, Jun 2, 2021 at 7:04 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> #define unset_hashelem_literal 1
> #define unset_hashelem_stripquote 0
>
> The fourth one requires { unset "hash[${(q)k}]" } instead,
> but I think it otherwise works for all cases.

Another point in favor of "stripquote" is that it makes ${(b)k}
function in a lot of cases.  The failing cases for (b) in that branch
are backticks and a leading '\='.

Also, if you know of good test cases, please try them / send them along.




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