Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] (final) unset "array[$anything]"
- X-seq: zsh-workers 49077
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] (final) unset "array[$anything]"
- Date: Mon, 14 Jun 2021 09:54:07 -0700
- Archived-at: <https://zsh.org/workers/49077>
- In-reply-to: <CAHYJk3TW=P_qGbR7jCR+8FFS6A0GReP1+dNKG4ZKtwgWwNT6jQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7bNoRWUz6ZsUi9wZivfm1q8veD2d7Ld4jn_8qRJ+EmiBQ@mail.gmail.com> <CAHYJk3TW=P_qGbR7jCR+8FFS6A0GReP1+dNKG4ZKtwgWwNT6jQ@mail.gmail.com>
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