My pipe flushes late

Robert Schmidt rschm@broadpark.no
Wed Aug 20 13:20:00 GMT 2008


Eric Blake wrote:
> At this point, your best bet is to use something that presents d2u with a
> pty as stdout (thus output would be line-buffered), rather than a pipe,
> then consumes the pty output and throws it over the wall to the original
> pipe to sed with flushing.  Have you tried expect - according to the link
> above, expect provides a script unbuffer that does just what I described?

Thanks for the informative answer - it confirmed my suspicions.  I 
wasn't able to get unbuffer working, but I may not need to - see my 
other followup.

Robert



More information about the Cygwin-talk mailing list