From: Tanaka Akira Date: 2005-02-07T23:26:25+09:00 Subject: Re: No stdout-flush before gets In article <20050207133351.GA30424@homer.bertram-scharpf>, Bertram Scharpf writes: > I try to prompt for an input: > > user@host:~$ ruby -e "print '? ' ; gets" > foo > ? user@host:~$ > user@host:~$ ruby -e "print '? ' ; $>.flush ; gets" > ? foo > user@host:~$ > > In the 1.8.2 it worked properly. > > Or should this be the desired behaviour? No. 1.9 flushes $stdout before reading stdin, now. Although stdio flushes other ttys, I hope 1.9 behaviour works well in most case. -- Tanaka Akira