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

Re: unset arbitrary associative array element



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