From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10409 invoked from network); 17 Sep 2004 10:17:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Sep 2004 10:17:39 -0000 Received: (qmail 32578 invoked from network); 17 Sep 2004 10:17:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Sep 2004 10:17:33 -0000 Received: (qmail 15580 invoked by alias); 17 Sep 2004 10:16:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8005 Received: (qmail 15562 invoked from network); 17 Sep 2004 10:16:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Sep 2004 10:16:08 -0000 Received: (qmail 29718 invoked from network); 17 Sep 2004 10:16:08 -0000 Received: from mail36.messagelabs.com (193.109.254.211) by a.mx.sunsite.dk with SMTP; 17 Sep 2004 10:16:06 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-14.tower-36.messagelabs.com!1095416164!9383434 X-StarScan-Version: 5.2.10; banners=-,-,- X-Originating-IP: [158.234.9.163] Received: (qmail 31430 invoked from network); 17 Sep 2004 10:16:04 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-14.tower-36.messagelabs.com with SMTP; 17 Sep 2004 10:16:04 -0000 Received: from trentino.logica.co.uk ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id i8HAG0AI020508 for ; Fri, 17 Sep 2004 11:16:04 +0100 Received: from trentino.logica.co.uk (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id A7979791B004 for ; Fri, 17 Sep 2004 12:16:00 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: From: Oliver Kiddle References: <200409161430.i8GEUUoK012318@news01.csr.com> <27415.1095348059@trentino.logica.co.uk> To: zsh-users@sunsite.dk Subject: Re: Globbing question Date: Fri, 17 Sep 2004 12:16:00 +0200 Message-ID: <31887.1095416160@trentino.logica.co.uk> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 lists wrote: > > Maybe I misunderstood the "What we need to ask is why someone should > want to complete non-executable files in command position" statement, > but what I'm trying to do is have non-executable files which happen to > be in my $path *not* be completed. I hadn't realised that they are completed by default but a quick check reveals that they are. command names are not completed by using the usual filename completion. Instead the shell's internal hash table of commands is used. If you run the hash builtin, it lists non-executable files. Quite why it does this, I don't know but presumably it is an optimisation of some sort. So it looks like there isn't an easy way to fix the completion. Oliver