Project

General

Profile

Bug #159

[PATCH] StringIO#readline does not set $_

Added by NoKarma (Arthur Schreiber) almost 12 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
[ruby-core:17257]

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

stringio_readline.patch (423 Bytes) stringio_readline.patch NoKarma (Arthur Schreiber), 06/16/2008 03:22 AM
#1

Updated by nobu (Nobuyoshi Nakada) almost 12 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r17352.
=end

Also available in: Atom PDF