delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/17/13:59:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 17 Jan 2005 13:59:01 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT 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 DOT 3010306 AT tlinx DOT org> <009001c4fba2$54223c20$e6ec6f83 AT robinson DOT cam DOT ac DOT uk> <41EAF139 DOT 6070102 AT tlinx DOT org> <20050117014343 DOT GA907371 AT Worldnet> <20050117170533 DOT GH20403 AT trixie DOT casa DOT cgf DOT cx>
MIME-Version: 1.0

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 AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019