>>>>> "H" == Harry Ohlsen <harryo / zip.com.au> writes:

H> ts wrote:
>> Try something like this
>> 
>> begin
>> print "-> "
>> $defout.flush
>> end while gets

H> That doesn't work, either.

H> I find this really weird, because this is something I'd expect to work 
H> pretty much 100%.  I'm starting to think it's an idiosyncracy of the 
H> particular build I have.  I might see if there's a newer nightly snapshot 
H> and give that a go.

 Well, this code work for me with 1.6.4 and 1.7.1


pigeon% cat ~/b.rb
#!/usr/bin/ruby
begin
   print "-> "
   $defout.flush
end while gets
pigeon% 

pigeon% ruby -v ~/b.rb
ruby 1.7.1 (2001-07-31) [i686-linux]
-> aaaaa
-> bbbb
-> pigeon% 


Guy Decoux