Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
completion newbie question
- X-seq: zsh-workers 16834
- From: John Beppu <beppu@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: completion newbie question
- Date: Thu, 14 Mar 2002 15:30:55 -0800
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I've been trying to learn how to write completions, and
I came across an idiom in _cvs that seems unnecessary.
Before every function definition, there is a guard that
looks like:
(( $+functions[_cvs_command] )) || # ...define function
Maybe I'm wrong, but once _cvs gets loaded, all the other
auxiliary functions in the same file will be loaded, too.
Under normal circumstances, the condition inside the guard
will be false the first time through, and there won't ever
be a second time through, because _cvs won't ever be loaded
again during that session.
What am I missing?
(...otherwise, _cvs is really impressive to me for its
completeness. I definitely learned a few new things
about CVS by looking at the completions for it)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author