Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <41EC1274.2050400@x-ray.at> Date: Mon, 17 Jan 2005 20:31:00 +0100 From: Reini Urban User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7) Gecko/20040616 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Can "DLL's" & libraries be marked as non-executable? 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> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Igor Pechtchanski schrieb: > 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" 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. I'll look to add this to my bash_completion package. http://xarch.tu-graz.ac.at/publ/cygwin/release/bash_completion/ -- Reini Urban -- 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/