[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add EXECIGNORE
From: |
Eric Blake |
Subject: |
Re: [PATCH] Add EXECIGNORE |
Date: |
Thu, 21 May 2015 12:22:01 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
ping - any feedback, positive or negative?
On 04/17/2015 03:53 PM, Eric Blake wrote:
> Based on an idea from Dan Colascione:
> https://sourceware.org/ml/cygwin/2010-11/msg00022.html
>
> Usage: add this to your shell startup:
> EXECIGNORE='*.so:*.so.*'
> to cause TAB completion to ignore shared library files when crawling
> the file system to look for executables.
>
> Cygwin has been using a variation of this patch since December 2010,
> in part because on that platform, shared libraries (*.dll) MUST have
> the executable bit set, and MUST live in /usr/bin alongside normal
> executables, so they can easily get in the way of TAB completion.
> At least on Linux, *.so and *.so.* files tend to live in a
> separate location (/usr/lib{,64}/) from normal executables. But
> even on Linux, attempts to directly execute a .so file (other than
> the rare exception like /usr/lib/libc.so) usually results in
> spectacular failure, so this is useful to more than just Cygwin.
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> ---
> doc/bash.1 | 8 ++++++++
> doc/bashref.texi | 11 ++++++++++-
> findcmd.c | 43 +++++++++++++++++++++++++++++++++++++------
> findcmd.h | 1 +
> pathexp.h | 4 ++--
> variables.c | 9 +++++++++
> variables.h | 1 +
> 7 files changed, 68 insertions(+), 9 deletions(-)
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [PATCH] Add EXECIGNORE,
Eric Blake <=