From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21752 invoked from network); 27 May 1998 15:45:45 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 27 May 1998 15:45:45 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id LAA27726; Wed, 27 May 1998 11:41:09 -0400 (EDT) Resent-Date: Wed, 27 May 1998 11:40:58 -0400 (EDT) Message-ID: <19980527174141.G1747@math.fu-berlin.de> Date: Wed, 27 May 1998 17:41:41 +0200 From: Sven Guckes To: zsh-users@math.gatech.edu Subject: Re: completion ignoring Mail-Followup-To: zsh-users@math.gatech.edu References: <199805221523.QAA17745@taos.demon.co.uk> <199805221534.LAA13850@luomat.peak.org> <980522095232.ZM29476@candle.brasslantern.com> <19980527142048.A20324@ens-lyon.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.8i In-Reply-To: ; from Bruce Stephens on Wed, May 27, 1998 at 02:18:59PM +0100 X-Mailer-Info: http://www.math.fu-berlin.de/~guckes/mutt/ Resent-Message-ID: <"ZRjLQ2.0.im6.AG3Rr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1555 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Vincent Lefevre 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 "foo" is shown $ chmod 600 foo $ f "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