Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Cleaner envrionment after some completions
- X-seq: zsh-workers 21173
- From: Tobias Gruetzmacher <tobias@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: Cleaner envrionment after some completions
- Date: Sun, 24 Apr 2005 14:15:54 +0200
- In-reply-to: <1050424002330.ZM20410@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Tobias Gruetzmacher <tobias@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20050423201944.GA23939@xxxxxxxxxxxxxx> <1050424002330.ZM20410@xxxxxxxxxxxxxxxxxxxxxxx>
Hi,
On Sun, Apr 24, 2005 at 12:23:30AM +0000, Bart Schaefer wrote:
> On Apr 23, 10:19pm, Tobias Gruetzmacher wrote:
> }
> } +++ mod/Completion/Unix/Command/_subversion
> }
> } if (( ! $+_svn_cmds )); then
> } - typeset -gA _svn_cmds
> } + typeset -A _svn_cmds
>
> This one is wrong. The "g" in there makes _svn_cmds a global; if it's
> removed to make it a a local, then 'if (( ! $+_svn_cmds ))' will always
> be true, and _call_program will always be run.
I somehow manged to miss the caching... So, yes, this is obviously
wrong.
> Perhaps you meant 'typeset -gHA _svn_cmds' ?
Yes, that looks good.
Greetings Tobi
--
GPG-Key 0xE2BEA341 - signed/encrypted mail preferred
My, oh so small, homepage: http://portfolio16.de/
http://www.fli4l.de/ - ISDN- & DSL-Router on one disk!
Registered FLI4L-User #00000003
Messages sorted by:
Reverse Date,
Date,
Thread,
Author