Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion for perldoc
- X-seq: zsh-workers 7680
- From: Peter Stephenson <pws@xxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: completion for perldoc
- Date: Tue, 07 Sep 1999 10:57:22 +0200
- In-reply-to: "Adam Spiers"'s message of "Mon, 06 Sep 1999 19:21:31 MET DST." <19990906192131.C1322@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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.
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.
The may be a bug here. Has anyone the slightest idea why `_perldoc {'
is accepted as a complete command line with the argument "{"?
--
Peter Stephenson <pws@xxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56100 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author