zsh-workers
 help / color / mirror / code / Atom feed
* dynamic named directories clobber $reply
@ 2011-06-04 12:24 Mikael Magnusson
  2011-06-04 18:45 ` Bart Schaefer
  2011-06-04 21:24 ` Peter Stephenson
  0 siblings, 2 replies; 4+ messages in thread
From: Mikael Magnusson @ 2011-06-04 12:24 UTC (permalink / raw)
  To: zsh workers

I noticed that after a successful ~[something] substitution, ~[] or
~[invalid] would return the same substitution, because $reply leaks to
the parent shell, and my function doesn't unset $reply when it doesn't
find anything valid. If I make it local in the function it doesn't
work at all, is there some way it can be local in the hook somehow?

-- 
Mikael Magnusson


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

end of thread, other threads:[~2011-06-04 21:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-04 12:24 dynamic named directories clobber $reply Mikael Magnusson
2011-06-04 18:45 ` Bart Schaefer
2011-06-04 21:24 ` Peter Stephenson
2011-06-04 21:34   ` Mikael Magnusson

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).