delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/30/13:29:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
From: Bengt Larsson <lists DOT cygwin AT bengtl DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with wildcard from Windows
Date: Wed, 30 Dec 2009 19:29:17 +0100
Message-ID: <dh6nj5p61f7l6h9cb0k1h9g522li6vv5o1@4ax.com>
References: <bivmj55gng57ut1ei2e1in1hufms1h90ri AT 4ax DOT com> <4B3B8786 DOT 9090506 AT cygwin DOT com> <ob2nj5pcdjhtelil336sds9sqdi64v2a4u AT 4ax DOT com> <4B3B9723 DOT 1000104 AT etr-usa DOT com>
In-Reply-To: <4B3B9723.1000104@etr-usa.com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

 Warren Young wrote:
>On 12/30/2009 10:18 AM, Bengt Larsson wrote:
>>> Try "noglob" if your shell is not Cygwin-aware.
>>
>> Eh? The problem is that it doesn't glob when it should. The shell is
>> standard CMD.EXE, ie Windows console.
>
>The behavior you're relying on is a nonstandard Cygwin extension which 
>most Cygwin users, I dare say, don't even use themselves.  It's an 
>emulation of a feature all POSIX shells have, internal globbing. 
>cmd.exe doesn't provide globbing services to programs it runs, so Cygwin 
>by default ("CYGWIN=glob") tries to do this for you, but it appears 
>there are weaknesses.
>
>Another thing that doesn't work:
>
>	c:\> echo W*
>
>This should give "Windows" at least.
>
>What I'm having trouble understanding is why you've installed Cygwin but 
>then insist on sticking with the primitive cmd.exe shell.  Your globbing 
>problem will go away if you switch to one of the many shells in the 
>Cygwin package repository.

Every port of Unix utilities to Windows such as ls, grep and so forth do
this globbing internally. It's not only Cygwin that does it. The reason
is, it can be useful to use Unix command line utilities from the Windows
command line. ls, for example, has a handy way of seeing the whole
precision of a file timestamp. grep is a better grepper.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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