Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 17 Jan 2005 13:59:01 -0500 (EST)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: Can "DLL's" & libraries be marked as non-executable?
In-Reply-To: <20050117170533.GH20403@trixie.casa.cgf.cx>
Message-ID: <Pine.GSO.4.61.0501171354330.20896@slinky.cs.nyu.edu>
References: <41E9D722.3010306@tlinx.org> <009001c4fba2$54223c20$e6ec6f83@robinson.cam.ac.uk> <41EAF139.6070102@tlinx.org> <20050117014343.GA907371@Worldnet> <20050117170533.GH20403@trixie.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 17 Jan 2005, Christopher Faylor wrote:

> On Sun, Jan 16, 2005 at 08:43:44PM -0500, Pierre A. Humblet wrote:
> >On Sun, Jan 16, 2005 at 02:56:57PM -0800, linda w wrote:
> >
> >> I was told I might fix the problem of typing in a partial command name
> >> like "cyg", and the command completion character and getting a long list
> >> of DLL's with a few EXE's thrown in.
> >>
> >> I had been told it could be fixed through adjustment of the bash command
> >> completion or in the readline completion used by bash.  This doesn't
> >> appear to be a straight forward solution.
> >
> >Have you looked into it? It's easy in bash:
> >  FIGNORE
> >    A colon-separated list of suffixes to  ignore  when  performing
> >    filename  completion  (see  READLINE  below).  A filename whose
> >    suffix matches one of the entries in FIGNORE is  excluded  from
> >    the list of matched filenames.  A sample value is ".o:~".
>
> Great point.  Thanks, Pierre.
> Should this be a default in a .profile (or equivalent) somewhere?

Unfortunately, this isn't necessarily good to have as a default setting,
since putting .dll in $FIGNORE will disable completion in all cases, not
just when searching for an executable.  In other words, if you have a file
foo.dll, and try to get gcc to link with it while having .dll in $FIGNORE,
typing in "gcc blah.c foo<TAB>" will not produce a match with foo.dll
(same with "cp", etc).  If there were a way to restrict .dll completion
*only* for cases when an executable is needed, that would be a good
candidate for a default setting.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

