Actions
Bug #159
closed[PATCH] StringIO#readline does not set $_
Description
=begin
Desktop:ruby_1_8 arthur$ irb
irb(main):001:0> $stdin.readline
some text
=> "some text\n"
irb(main):002:0> $_
=> "some text\n"
irb(main):003:0> require "stringio"
=> true
irb(main):004:0> strio = StringIO.new("line1\nline2")
=> #StringIO:0x282ddc
irb(main):005:0> strio.readline
=> "line1\n"
irb(main):006:0> $_
=> "some text\n"
=end
Files
Actions
Like0
Like0