From: Sam Roberts Date: 2005-03-17T10:43:44+09:00 Subject: Re: bug? ruby doesn't flush stdio on exit! Quoting aredridel@gmail.com, on Thu, Mar 17, 2005 at 10:38:26AM +0900: > On Thu, 17 Mar 2005 10:34:47 +0900, Sam Roberts wrote: > > 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 > > % > > In the first example, your shell is overwriting the output. You're right, thanks! And I'm pretty surprised. > Not a bug. I think it is - a bug in zsh. start with bash: [ensemble] ~/p/ruby/zeroconf $ ruby -e 'print "hello"' hello[ensemble] ~/p/ruby/zeroconf $ zsh ensemble% ruby -e 'printf "hello"' ensemble% I think zsh is wrong here.. Cheers, Sam