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

Re: [PATCH] (final) unset "array[$anything]"



On Mon, Jun 14, 2021 at 2:04 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> On 6/14/21, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> +unusual subset of characters in the expansion of $key.  Note this also
> +means, for example, that
> +  unset 'hash[ab]cd]'
> +unsets the element with key "ab]cd" rather than silently doing nothing.
>
> It is somewhat unclear (without using my contextual knowledge) if the
> "Note this" applies to the old or the new behavior.

The "rather than" doesn't give away that "doing nothing" is the old behavior?

I'll commit an edit, it doesn't seem worth sending a patch.




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