From: Lloyd Zusman Date: 2005-03-17T10:57:30+09:00 Subject: Re: bug? ruby doesn't flush stdio on exit! Sam Roberts writes: > This can't be a feature... stdio should flush on exit! > > % ruby -e 'printf "hello"' > % ruby -e 'printf "hello\n"' > hello > % ruby -e 'printf "hello";puts "hi";' > hellohi > % It does flush. Try doing this: % ruby -e 'printf "hello"'; echo '' hello What's going on is that your shell is overwriting the "hello" that indeed gets written on the next line, when it repositions the cursor to the left column. Adding the "; echo ''" to the end shows that this is taking place. -- Lloyd Zusman ljz@asfast.com God bless you.