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/ |\ _,,,---,,_ [EMAIL PROTECTED] | [EMAIL PROTECTED] 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/