delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/02/17:22:10

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.20010602135537.0230b210@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sat, 02 Jun 2001 14:21:52 -0700
To: "Karl M" <karlm30 AT hotmail DOT com>, cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: case insensitive tab completion
In-Reply-To: <F244wFCHOzyfyz5b6KZ0000d8f7@hotmail.com>
Mime-Version: 1.0

Karl,

You need to make sure that you understand properly in which circumstances 
each of these similar options apply:

glob:nocase
   This applies when a Cygwin-linked binary is executed by something other 
than a Cygwin shell and hence "glob" characters (star/* and question/?) are 
not already expanded. The Cygwin runtime handles this, and hence needs to 
consult the Cygwin environment variable to find the option that controls 
this action. I never use it, so I cannot comment on its correct operation.

shopt -s nocaseglob
   This applies when the shell is interpreting (unquoted) glob characters 
in preparing the argument list for the command it is about to execute. It 
works for me.

case-insensitive-completion
   I don't know about this, but my printed BASH manual is a couple of years 
old, the closest thing it lists is the readline option 
"completion-query-items" which takes an integer argument).

completion-ignore-case
   This is also a readline option that takes a boolean (on/off) argument 
and must be placed in the ~/.inputrc file:

set completion-ignore-case on


Judging from your question, the last one is what you. It works for me, as 
does "shopt -s nocaseglob".

I'm not sure, but I presume that .inputrc is only read when a 
readline-equipped program (e.g., BASH) starts up.

I'm running the latest everything:

% uname -a
CYGWIN_NT-5.0 CLEMENS 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown

% set |egrep BASH_VERSION
BASH_VERSION=$'2.05.0(6)-release'


Randall Schulz
Mountain View, CA USA


At 13:48 2001-06-02, Karl M wrote:
>Hi All...
>
>I've been trying to use case insensitive tab completion with cygwin. I've 
>found references to glob:nocase in the cygwin environment variable, shopt 
>-s nocaseglob, and set case-insensitive-completion on. None of these 
>appear to have any effect. What do I need to do to get case insensitive 
>completion interactively with cygwin?
>
>Thanks,
>
>...Karl


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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