delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/08/20:57:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 8 Oct 2002 20:58:44 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: grep = * vs grep = * > foo
Message-ID: <20021009005844.GB27161@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <F81QkWrvyqunlHsjkiV00005a2b AT hotmail DOT com> <20021009004118 DOT 17484 DOT qmail AT web40505 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20021009004118.17484.qmail@web40505.mail.yahoo.com>
User-Agent: Mutt/1.4i

On Tue, Oct 08, 2002 at 05:41:18PM -0700, Sheryl McKeown wrote:
>That makes sense in the Unix world, but in this particular XP directory
>*.* returns the same listing as *
>
>As you note though, 
>grep = * > delme and
>grep = *.* > delme.txt
>both create an infinite loop.
>
>But, "grep = *.* > delme." does not create the loop.

Gareth is correct.

If you do this:

  touch delme
  ls *.*

You'll see that delme is not listed.  Cygnus wildcard expansion follows
UNIX rules, not MS-DOS rules.  You can't (easily) create an actual
'delme.' file on Windows.  So, "delme." is the same thing as "delme", i.e.
if you perform an ls on the directory, you'll see a file called "delme"
not "delme.".

cgf

>--- Gareth Pearce <tilps AT hotmail DOT com> wrote:
>> 
>> >Thanks, cgf, That makes sense.
>> >
>> >But one more comment
>> >
>> >"grep = *.* > delme" from the XP prompt does NOT
>> >create the infinite loop.  It acts like the bash
>> >shell.
>> 
>> well obviously - delme doesnt contain a period.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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