delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/08/21:04:36

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
Message-ID: <20021009010429.56461.qmail@web40511.mail.yahoo.com>
Date: Tue, 8 Oct 2002 18:04:29 -0700 (PDT)
From: Sheryl McKeown <iboulder AT yahoo DOT com>
Reply-To: smckeown AT mac DOT com
Subject: Re: grep = * vs grep = * > foo
To: cygwin AT cygwin DOT com
In-Reply-To: <20021009005844.GB27161@redhat.com>
MIME-Version: 1.0

Gotch ya.

Thanks Christopher and Gareth.

And the . makes all the difference.

Best,
Sheryl

--- Christopher Faylor <cgf AT redhat DOT com> wrote:
> 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/
> 


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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