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 Date: Thu, 17 Feb 2005 10:50:17 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: James Lemke cc: cygwin AT cygwin DOT com Subject: Re: file globbing In-Reply-To: <1108654296.7246.680.camel@keel.thelemkes.ca> Message-ID: References: <1108654296 DOT 7246 DOT 680 DOT camel AT keel DOT thelemkes DOT ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/