This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems with gawk 3.1.5-3 hanging -- more info

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).
      |\      _,,,---,,_ |
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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]