delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/30/16:44:57

X-Spam-Check-By: sourceware.org
Date: Thu, 30 Mar 2006 16:44:44 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: David Carter <carter AT carter DOT to>
cc: cygwin AT cygwin DOT com
Subject: Re: problems with gawk 3.1.5-3 hanging -- more info
In-Reply-To: <442C408B.3080409@carter.to>
Message-ID: <Pine.GSO.4.63.0603301640430.16543@access1.cims.nyu.edu>
References: <442C25D0 DOT 7030605 AT pondol DOT com> <442C3197 DOT 7090309 AT pondol DOT com> <20060330200757 DOT GO20907 AT calimero DOT vinschen DOT de> <442C408B DOT 3080409 AT carter DOT to>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Thu, 30 Mar 2006, David Carter wrote:

> Corinna Vinschen wrote:
>
> > O_TEXT is correct because gawk is a text tool in the first place and
> > it should treat input lines identical, regardless if they have DOS
> > or UNIX lineendings.
>
> [snip]
> It appears to me that by opening the file as O_TEXT, that gawk is
> hanging because it is waiting for that LF char to follow the CR (which
> never comes). Does this sound likely to you?

If this theory were true, "echo -ne 'aa\rb' | gawk '{print $0}'" would
hang.  It doesn't for me, even with textmode pipes...

Try saving the output of rsync to file and running gawk over that
separately...  Also, if gawk really hangs, you can run it under strace to
see exactly what it was doing up to the hang (but please don't post the
strace output unless you're asked to do so by Corinna or CGF).
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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