delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/02/17:09:45

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: <003901c04518$92668da0$2a02a8c0@tff.ca>
From: "Boris Gjenero" <bgjenero AT sympatico DOT ca>
To: <cygwin AT sources DOT redhat DOT com>
References: <9649-Wed01Nov2000172434+0000-starksb AT ebi DOT ac DOT uk><Pine DOT GSU DOT 4 DOT 21 DOT 0011010942100 DOT 10108-100000 AT waltz DOT rahul DOT net> <8054-Thu02Nov2000164348+0000-starksb AT ebi DOT ac DOT uk>
Subject: Re: Cygnus question
Date: Thu, 2 Nov 2000 17:02:19 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

> On Wednesday 1 Nov 00, Ken Arromdee writes:
> > On Wed, 1 Nov 2000, David Starks-Browning wrote:
> > > > >How do I set up Cygnus so as to smash case?  I want to be able to
do "ls b*"
> > > > >or "grep foo b*" and not have to do it twice for b* and B*...
> > > >
> > > > See bash documentation.
> > > Or the FAQ:
> > > "How can I get bash filename completion to be case insensitive?"
> >
> > I seem to not have phrased my question properly.
> >
> > I'm not using bash.  I'm using the Cygnus tools only, typing in the
commands
> > from a Windows command prompt.
> >
> > And I'm aware I can use an expression such as [bB*], but my question is
how
> > to set things up so I don't need it.
>
> I don't know that you can.  In UNIX, it *is* bash (or csh or ...) that
> expands an expression like 'ls b*' to 'ls' plus a list of files that
> matches your expression.  It's called "globbing".  (Don't ask me
> why...)
>
> Since the original UNIX commands ls, grep, ... have no builtin support
> for filename globbing (since they expect the shell to do it), you
> won't find it in Cygwin ports of these commands.

However, the Cygwin commands *do* have support for globbing.  It is not in
the source of the commands themselves; the support is in cygwin1.dll, and it
is enabled if the program is not running under Cygwin.  Try running commands
from just the standard windows shell (cmd.exe or command.com).  Wildcards
will do what you expect.

> So you have to find a way to get cmd.exe or command.com to do this for
> you.  I don't think Cygwin can help you with that problem.

Well, obviously there's a way to get case-insensitive globbing:  go alter
the source code.  However, this may not be the solution you're looking for.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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