zsh-workers
 help / color / mirror / code / Atom feed
* unset "hash[key]" isn't matched with what "key" may be
@ 2016-02-07 14:16 Sebastian Gniazdowski
  2016-02-07 19:08 ` Peter Stephenson
  2016-02-07 21:33 ` Bart Schaefer
  0 siblings, 2 replies; 13+ messages in thread
From: Sebastian Gniazdowski @ 2016-02-07 14:16 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-02-15 13:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-07 14:16 unset "hash[key]" isn't matched with what "key" may be Sebastian Gniazdowski
2016-02-07 19:08 ` Peter Stephenson
2016-02-07 19:10   ` Sebastian Gniazdowski
2016-02-07 19:24     ` Peter Stephenson
2016-02-07 21:33 ` Bart Schaefer
2016-02-08  7:05   ` Bart Schaefer
2016-02-09  4:54     ` Bart Schaefer
2016-02-09  8:53       ` Peter Stephenson
2016-02-09 15:50         ` Bart Schaefer
2016-02-09 16:19           ` Peter Stephenson
2016-02-09 18:07             ` Bart Schaefer
2016-02-15  7:48   ` Sebastian Gniazdowski
2016-02-15 13:26     ` Nikolay Aleksandrovich Pavlov (ZyX)

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).