From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9992 invoked from network); 7 Sep 1999 08:57:34 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Sep 1999 08:57:34 -0000 Received: (qmail 26353 invoked by alias); 7 Sep 1999 08:57:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7680 Received: (qmail 26346 invoked from network); 7 Sep 1999 08:57:24 -0000 Message-Id: <199909070857.KAA407243@hydra.ifh.de> X-Authentication-Warning: hydra.ifh.de: pws owned process doing -bs To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: PATCH: completion for perldoc In-reply-to: "Adam Spiers"'s message of "Mon, 06 Sep 1999 19:21:31 MET DST." <19990906192131.C1322@thelonious.new.ox.ac.uk> Date: Tue, 07 Sep 1999 10:57:22 +0200 From: Peter Stephenson 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 Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56100 Pisa, Italy