Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion for perldoc
- X-seq: zsh-workers 7684
- From: Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: completion for perldoc
- Date: Tue, 7 Sep 1999 10:18:58 +0100
- In-reply-to: <199909070857.KAA407243@xxxxxxxxxxxx>; from Peter Stephenson on Tue, Sep 07, 1999 at 10:57:22AM +0200
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990906192131.C1322@xxxxxxxxxxxxxxxxxxxxxxx> <199909070857.KAA407243@xxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
Peter Stephenson (pws@xxxxxx) wrote:
> Adam Spiers wrote:
> > > _perldoc {
> > > ...
> >
> > I forgot to say: this kills zsh :-(
>
> There's no () after _perldoc, so it thinks it's a function call, not a
> definition. You just generate hundreds of recursive calls to _perldoc
> until the machine gets board of having enough space on the stack, or
> something.
Yes, I'm ashamed to say this was indeed the problem, and as usually
happens, I only realised it after I'd posted.
> Also, since it's assumed in the completion functions that KSH_AUTOLOAD
> isn't set, you need to have as the last line `_perldoc "$@"' to call
> the function you've just defined.
Ah! So /that's/ why I was having to press TAB twice. Thanks.
> The may be a bug here. Has anyone the slightest idea why `_perldoc {'
> is accepted as a complete command line with the argument "{"?
Nope. I've been bitten by that more than just this once though; I
always forget the () ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author