From: Robert Klemme Date: 2005-03-17T17:59:45+09:00 Subject: Re: bug? ruby doesn't flush stdio on exit! "Sam Roberts" schrieb im Newsbeitrag news:20050317014259.GA908@ensemble.local... > 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.. It's probably just the promt setting. If the prompt starts with a CR then old content of the line is overwritten. robert