zsh-users
 help / color / mirror / code / Atom feed
From: Eike von Seggern <jan.eike.von.seggern@physik.hu-berlin.de>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-users@sunsite.dk
Subject: Re: Exclude non-executables from command completion
Date: Fri, 2 Oct 2009 11:13:37 +0200	[thread overview]
Message-ID: <20091002091337.GA13986@dru.eepb.de> (raw)
In-Reply-To: <20090918112708.7529490c@news01>

On Fri, Sep 18, 2009 at 11:27 +0100, Peter Stephenson wrote:
> On Thu, 17 Sep 2009 18:08:26 +0200
> Eike von Seggern <eikevons@yahoo.de> wrote:
> > Is it possible, that command completion only completes on commands that
> > are actually executable? As it happens I have to work on machines that
> > have non-executables in directories in $PATH.
> 
> I'm not sure why we don't check that commands are executables, was there
> ever a reason?
> 
> P.S. we are woefully dependent on PATH_MAX.  That's one of those things it
> would be really good to fix that's not going to change without a ten-fold
> increase in people working on the shell.
 
Hi Peter,

I've had a look in the current HEAD version of hashtable.c, though I
have not compiled and tried it hands-on. But if I'm right, only
regular&&executable files are added to the hashtable. At least on my
Debian system, there are a lot of symlinks in /usr/bin to keep track of
different versions. So I think you should keep symlinks in mind, aswell.
If that's already the case, sorry for this, but my libc knowledge is
really small.

Cheers,
    eike


  reply	other threads:[~2009-10-02  9:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-17 16:08 Eike von Seggern
2009-09-18 10:27 ` Peter Stephenson
2009-10-02  9:13   ` Eike von Seggern [this message]
2009-10-02 10:04     ` Peter Stephenson
2009-10-02 10:59       ` 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=20091002091337.GA13986@dru.eepb.de \
    --to=jan.eike.von.seggern@physik.hu-berlin.de \
    --cc=pws@csr.com \
    --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).