Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
unset "hash[key]" isn't matched with what "key" may be
- X-seq: zsh-workers 37902
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: unset "hash[key]" isn't matched with what "key" may be
- Date: Sun, 7 Feb 2016 15:16:05 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=9LIuqsBaN3qd0P6/HIeKHcLylOBWQvhkkIrj1IX1m7c=; b=soCicRIddU5Ip40LzeUzgPMNa5RD16arCJPhGVFx6YTEDjJ7bCPkmPAuPk1sbVRQAg V3D6M156G+kdELIIitxga4Gq1OZCM673jLKBwPS8akd58V81DeQXa2T4PkLwVV1Ycz0e 9U031J9/BA4aSzh0QVgH+x1QSMWqWHDDxfUU/Cv25DJne0sEBN4BstOzftCxfYIZnLbd +WSxdGUacJyAK4EMumDbl0LZr+pV/U6Fm4FOQ7vcR5pIOFtop0lBcnnmsUxx122B666x APx6bSjPXaSZ+DjYkg7asu/exNW5YzjznpTh1UMPSTyNb6IR2ZMCHphhURt0pskVTsA+ Wdrw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
I was testing following plugin:
https://github.com/hchbaw/opp.zsh
It creates functions with sophisticated names, like
opp+aB opp+aW
opp+a" opp+a'
opp+a( opp+a)
opp+a< opp+a>
opp+a[ opp+a]
I had a loop in which I browsed $functions, setting:
func[$i]=1
where "func" is a hash and "$i" is ${(k)functions}. This worked, however this:
unset "func[$i]"
yielded:
-zplg-diff-functions:unset:36: func[opp+a\[]: invalid parameter name
Tried ${(q)i}, qq, qqq, qqqq.
Related code:
https://github.com/psprint/zplugin/commit/61a59fe0e2e367b3536fb028f4a36e9730322402
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author