Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Exclude non-executables from command completion



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