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

Re: PATCH: completion for perldoc



Peter Stephenson 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.

Ah, was that it? I thought he had just copied the bodies from
somewhere and added the `perldoc {' by hand.

So, just forget the end of my last message, please.

> The may be a bug here.  Has anyone the slightest idea why `_perldoc {'
> is accepted as a complete command line with the argument "{"?

Dunno, but `ksh' and `bash' behave in the same way.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author