From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12228 invoked from network); 11 May 2003 18:36:06 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 May 2003 18:36:06 -0000 Received: (qmail 800 invoked by alias); 11 May 2003 18:35:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6100 Received: (qmail 793 invoked from network); 11 May 2003 18:35:49 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 May 2003 18:35:49 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.233.9] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 May 2003 18:35:48 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h4BIZlH04058 for zsh-users@sunsite.dk; Sun, 11 May 2003 11:35:47 -0700 From: "Bart Schaefer" Message-Id: <1030511183546.ZM4057@candle.brasslantern.com> Date: Sun, 11 May 2003 18:35:46 +0000 In-Reply-To: <14023.193.134.254.145.1052494582.squirrel@wesley.pjcj.net> Comments: In reply to "Paul Johnson" "Re: Perl completion" (May 9, 5:36pm) References: <20030509140206.GA83525@ppe.happygiraffe.net> <20030509141259.GA83621@ppe.happygiraffe.net> <14023.193.134.254.145.1052494582.squirrel@wesley.pjcj.net> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: Perl completion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 9, 5:36pm, Paul Johnson wrote: } } >> I've just noticed in _perl that it only completes *.p[ml]. } } Which is actually wrong, I think. It's not precisely wrong, it's just that _perl isn't as clever as it could be. It doesn't use the state-machine mechanism for _arguments, so it doesn't complete differently when -c is [not] among the flags. It's easier to skip the .pm files when they appear in the completion listing when they aren't useful, than to know they're available if they don't appear when you want them. } It seems to me that it would be better not to pay any heed to the } extension. I can't agree with that. `perl foo' should not complete `foo.c' or `foo.sh' etc. On the other hand it probably should recognize names with no extension, such as `foobar'.