Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Cleaner envrionment after some completions



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