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 Message-ID: <20021009010429.56461.qmail@web40511.mail.yahoo.com> Date: Tue, 8 Oct 2002 18:04:29 -0700 (PDT) From: Sheryl McKeown 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 Content-Type: text/plain; charset=us-ascii Gotch ya. Thanks Christopher and Gareth. And the . makes all the difference. Best, Sheryl --- Christopher Faylor 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 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/