Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Exclude non-executables from command completion
- X-seq: zsh-users 14451
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Exclude non-executables from command completion
- Date: Fri, 02 Oct 2009 11:04:52 +0100
- In-reply-to: <20091002091337.GA13986@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090917160826.GA16143@joutsen> <20090918112708.7529490c@news01> <20091002091337.GA13986@xxxxxxxxxxx>
Eike von Seggern wrote:
> 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.
I think we're OK: we test using the information returned by stat whether
the file is regular and executable, but the information was retrieved
using the stat() call (not lstat()), so any symbolic links will have
been dereferenced (unless they're broken, of course). Tests seem to
confirm this is working.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author