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

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: <20021009003034.57778.qmail@web40513.mail.yahoo.com>
Date: Tue, 8 Oct 2002 17:30:34 -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: <20021009002731.GA25291@redhat.com>
MIME-Version: 1.0

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.

-Sheryl


--- Christopher Faylor <cgf AT redhat DOT com> wrote:
> On Tue, Oct 08, 2002 at 05:23:05PM -0700, Sheryl
> McKeown wrote:
> >grepping and redircting the output to a file
> >causes a process loop that has to be killed
> >
> >17:17 0  [C:\Development\test]
> >.grep = * > delme
> >
> >17:18 66048  [C:\Development\test]
> >.^C
> >
> >What happens is that the grep starts reading the
> delme
> >file and then reporting all those finds...
> 
> Right.  The file is created before grep is started
> so when grep expands
> the '*' if finds delme and dutifully searches it... 
> forever.
> 
> >Ok, but the odd part this is, this behavior doesn't
> appear when using
> >the bash shell (on the same XP box).
> 
> When run from the bash shell, bash itself first
> expands '*' and then
> creates delme.  Since delme doesn't exist, it isn't
> searched.
> 
> cgf
> --
> Please do not send me personal email with cygwin
> questions.
> Use the resources at http://cygwin.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/
> 


__________________________________________________
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