delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/17/11:05:32

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
Subject: Re: file globbing
From: James Lemke <jim AT TheLemkes DOT ca>
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.61.0502171047540.9533@slinky.cs.nyu.edu>
References: <1108654296 DOT 7246 DOT 680 DOT camel AT keel DOT thelemkes DOT ca> <Pine DOT GSO DOT 4 DOT 61 DOT 0502171047540 DOT 9533 AT slinky DOT cs DOT nyu DOT edu>
Message-Id: <1108656310.7246.685.camel@keel.thelemkes.ca>
Mime-Version: 1.0
Date: Thu, 17 Feb 2005 11:05:11 -0500
X-IsSubscribed: yes

On Thu, 2005-02-17 at 10:50, Igor Pechtchanski wrote:
> On Thu, 17 Feb 2005, James Lemke wrote:
> 
> > I've recently noticed a problem with Cygwin ls.  I did a quick search of
> > the archives, but didn't get any hits.  Has anyone else seen this?
> > Try: ls -dl ../tcl[7-9]*
> > Result on Linux: ../tcl ../tcl8
> > Result on Cygwin: ../tcl8
> >
> > That is, on Cygwin tcl[7-9]* does not match tcl.  I think it should.
> >
> > I have upgraded to the latest coreutils and still see the problem.
> > Comments?
> 
> You were looking in the wrong place.  Globbing is done by the shell.
> Most likely it's bash.  Check your bash versions on both Cygwin and Linux.
> Also, check the shell settings (shopt).
> 
> FWIW, "*" in bash usually means "anything", not "any number of occurrences
> of the previous expression" (i.e., globs aren't regular expressions).  But
> YMMV.
> 	Igor

Ahem... sorry.  I'm mistaken.  It doesn't match ../tcl (in bash) on
either Linux or Cygwin, and it shouldn't.
The configure problem I'm looking at is something else.

You may now return to your regularly scheduled programming.

-- 
James Lemke   jim AT TheLemkes DOT ca   Orillia, Ontario
1992 ST1100, STOC #3750;   FWD# M:245401 H:246889
Life is what happens to you while you're busy making other plans. --John Lennon


--
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