zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-users@sunsite.dk
Subject: Re: Globbing question
Date: Fri, 17 Sep 2004 12:16:00 +0200	[thread overview]
Message-ID: <31887.1095416160@trentino.logica.co.uk> (raw)
In-Reply-To: <BA5819CB-0843-11D9-8E7B-000A95D2C79E@kalama.no-ip.org>

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


  reply	other threads:[~2004-09-17 10:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16  3:08 lists
2004-09-16 14:30 ` Peter Stephenson
2004-09-16 15:20   ` Oliver Kiddle
2004-09-17  0:51     ` lists
2004-09-17 10:16       ` Oliver Kiddle [this message]
2004-09-17  9:45     ` Peter Stephenson
2004-09-17 10:31       ` Oliver Kiddle
2013-11-18 10:45 Dominik Vogt
2013-11-18 11:00 ` Peter Stephenson
2013-11-18 11:31   ` Dominik Vogt
2013-11-18 12:10     ` Peter Stephenson
2013-11-19  0:10   ` zzapper
2013-11-19  6:17     ` Eike von Seggern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=31887.1095416160@trentino.logica.co.uk \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).