zsh-users
 help / color / mirror / code / Atom feed
From: Sven Guckes <guckes@math.fu-berlin.de>
To: zsh-users@math.gatech.edu
Subject: Re: completion ignoring
Date: Wed, 27 May 1998 17:41:41 +0200	[thread overview]
Message-ID: <19980527174141.G1747@math.fu-berlin.de> (raw)
In-Reply-To: <vbogwj26nw.fsf@snake.isode.com>; from Bruce Stephens on Wed, May 27, 1998 at 02:18:59PM +0100

Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> writes:
> But why does zsh take all the files from the directories that are
> in $PATH, and not only the files that can be executed by the user?

Quoting Bruce Stephens (b.stephens@isode.com):
> It does only consider executable files.  There's nothing wrong with a
> command ending in ~1~ or ,v.  Other than looking at the executable
> bit, how should zsh determine which files are really executable?

I think Vincent.Lefevre meant this:

When using command name expansion (correct term?)
can the zsh check the permissions on the executable files
and present those that are actually executable for the user?

Example:  Let's assume that the current dir (ie '.') is in the $PATH [*].
Then the zsh should behave like this:

	$ touch foo
	$ chmod 700 foo
	$ f<TAB>
	"foo" is shown
	$ chmod 600 foo
	$ f<TAB>
	"foo" is NOT shown

Is this possible?  (I hope that's not in the manual. ;-)

[*] Yes, I know this is a bad thing.  it's just an example, ok?  ;-)

Sven

-- 
Sven Guckes guckes@math.fu-berlin.de            using zsh-3.0.5 [961218]
ZSH HomePage: http://www.zsh.org   | Latest version:  zsh-3.1.3 [980501]
ZSH Pages:    http://www.math.fu-berlin.de/~guckes/zsh/  Tips and tricks


  reply	other threads:[~1998-05-27 15:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-22 15:01 Timothy J Luoma
1998-05-22 15:22 ` Matthew Lovell
1998-05-22 15:23 ` Andrew Main
1998-05-22 15:34   ` Timothy J Luoma
1998-05-22 16:00     ` Bruce Stephens
1998-05-22 16:52       ` Bart Schaefer
1998-05-27 12:20         ` Vincent Lefevre
1998-05-27 13:18           ` Bruce Stephens
1998-05-27 15:41             ` Sven Guckes [this message]
1998-05-27 16:21               ` Bruce Stephens
1998-05-29 14:14                 ` Vincent Lefevre
1998-05-29 15:36                   ` Bruce Stephens
1998-05-29 16:59                     ` Vincent Lefevre
1998-05-29 18:55                     ` Bart Schaefer
1998-05-27 16:31               ` Bart Schaefer
1998-05-27 22:34           ` Shawn Leas
1998-05-22 15:32 ` Bruce Stephens
     [not found] <"hsoX92.0.773.iEPPr"@tequila.systemsz.cs.yale.edu>
1998-05-22 20:07 ` Stefan Monnier

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=19980527174141.G1747@math.fu-berlin.de \
    --to=guckes@math.fu-berlin.de \
    --cc=zsh-users@math.gatech.edu \
    /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).