Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
dynamic named directories clobber $reply
- X-seq: zsh-workers 29455
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: dynamic named directories clobber $reply
- Date: Sat, 4 Jun 2011 14:24:14 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=sFJN0Ai/Ddm6TY6tkGTGOVBWQxdOz/YVQbThm6duB5I=; b=etn8SkSqTJDdFupcctqV1ljNhXgJaD6graktlJ2vkmjgG+3QiLXgl54L0qoo8qihiU Wc6wE/mLUU0vMaJ3BbgXMMl2Rg6w50siLXgnIpkFEjXDoKDS7YxMl0uUmMdAa1rnqj9e Ye+FzQ1hRWYVE6OWg+Mu64WTvYduORapD5U9c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=iEk/C6BN8ekcfPqgpz7y9M8WDtnPLQQR6mMG0tUdF7nPf+UngRlrpNCqznYvVQ//b4 qErHQiyRhCfeGin8P4WekZlP75MC8OMcHBrxAQOZ0Yr2FowyNWnTYOYYQ8R3cGKrpC+D AxmtkFnnETDiWyKSlisIw+Y/u427NwCXSJSBU=
- 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
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author