Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unset arbitrary associative array element
- X-seq: zsh-workers 43270
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: unset arbitrary associative array element
- Date: Sat, 11 Aug 2018 16:55:33 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Us7lSnKc2YBdng0ikCXkjeDIyHYdEU437Zluc672hBw=; b=gVH3dZm1XzXdJEPGxoNU3Gd6MdRNCBFPj41lyAB2OWaedhRgcnylrTN0MIOoHBNZt+ y3bCgvF5Az0Xfixobb2J0Pj2DrVaGZKp3WJsDkSiQmSIm8FdrkC29bvpC6wURkEc57UH dgP5D4UVlqwHLUoydvOQ7ZFrLOFJoAmmcsMtVNBcIEqgW02T2Ja2F5eqKIg0UvgN37YP h6qC05dtn+wmIASTZiDtliJBQZt7xIgnkyUNH4NbIMa279iMzSyfDJLHDsmeoKQGQ+lT m1f+ZSTzrH6YIjxoYY3oiy1o8TKPACYpLBLn5zNnanUNaVC4se0HpojW2fmNilm8ZC1E w5jA==
- In-reply-to: <20180811112226.tiscidxlc7edxqmg@chaz.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180811112226.tiscidxlc7edxqmg@chaz.gmail.com>
On Sat, 11 Aug 2018 at 13:22, Stephane Chazelas
<stephane.chazelas@xxxxxxxxx> wrote:
> Is there any other way, other than recreating the full array
> with something like:
>
> hash=("${(@kv)hash[(I)^$key]}") # untested
I once reported some unset-key impossibilities, and Bart and Peter
added a (b) flag. Maybe it helps here too. Could someone recall what
this flag does?
> --
> Stephane
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author