Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Date: Tue, 8 Oct 2002 20:58:44 -0400 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: grep = * vs grep = * > foo Message-ID: <20021009005844.GB27161@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20021009004118.17484.qmail@web40505.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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/