From: nobu@... Date: 2006-07-28T12:41:06+09:00 Subject: Re: [ ruby-Bugs-5217 ] irb: assignment to $stdout Hi, At Fri, 28 Jul 2006 06:12:43 +0900, wrote in [ruby-core:08419]: > Initial Comment: > irb crashes if you try to assign any class other than File or IO to $stdout. Test case: > > require 'stringio' > $stdout = StringIO.new It was an issue of ext/readline, and TypeError raises on recent versions. $ ruby18 -v -S irb -rstringio ruby 1.8.5 (2006-07-26) [i686-linux] irb(main):001:0> $stdout = StringIO.new /usr/lib/ruby/1.8/irb/input-method.rb:97:in `readline': wrong argument type StringIO (expected File) (TypeError) -- Nobu Nakada