Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: dynamic named directories clobber $reply
On Sat, 4 Jun 2011 14:24:14 +0200
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> 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.
In addition to Bart's reply, this would only be an actual bug if it was
happening when your function returned non-zero, which is what it's supposed to
do if it doesn't have a match.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author