delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/08/08:57:47

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.1.0.14.2.20010708145207.0271f560@imap.local.mscha.com>
X-Sender: ml AT imap DOT local DOT mscha DOT com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sun, 08 Jul 2001 14:57:15 +0200
To: <cygwin AT cygwin DOT com>
From: Michael Schaap <cygwin AT mscha DOT com>
Subject: RE: Zsh observations
Cc: "ZSH Workers Mailing List" <zsh-workers AT sunsite DOT dk>
In-Reply-To: <000501c10546$4e7318e0$21c9ca95@mow.siemens.ru>
References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20010705112435 DOT 03520c60 AT imap DOT mscha DOT org>
Mime-Version: 1.0
X-Virus-Scanned: at mscha.com by AMaViSd snapshot-20010407 (http://amavis.org/)

Hello Andrej,

At 13:33 5-7-2001, Andrej Borsenkow wrote:
>Apply this patch and do it :-) It was lost when gcc stopped setting _WIN32
>by default.
>
>Note, that it will make completion list executables twice - as foo and
>foo.exe. With new completion you may want to set something like
>
>zstyle ':completion::complete:-command-:*' ignored-patterns
>'*.(#i)(exe|dll)'
>
>to prevent *.exe and *.dll from appearing in the list (given, that every
>foo.exe is already hashed as foo, it is O.K.; and dll is not executable
>anyway - or is it?)

This works very nicely, with one exception.
If I'm trying to complete an executable in the current directory, e.g.
         % setu<TAB>
it will give me neither "setup", nor "setup.exe".  This is logical, because 
the special .exe handling is only for the PATH hash.

Would you know a workaround for that?

Thanks,

  - Michael

(Wouldn't it be nice if Cygwin did this foo.exe -> foo handling 
automagically for us?)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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