Well, finally I figured out why the printf text is not displayed right away. You need to turn off the "tty" switch in CYGWIN enviroment variable:
set CYGWIN=notty (under DOS prompt, or in autoexec.bat), before starting the bash. Wirawan -- 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/