[MacRuby] #1008: Can't get the last line from $_. Need to implement rb_lastline_get and rb_lastline_set.
#1008: Can't get the last line from $_. Need to implement rb_lastline_get and rb_lastline_set. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby require 'tempfile' t = Tempfile.new("foo") t.puts "1" t.puts "2" t.puts "3" t.close def test(io) io.gets p $_ end io = File.open(t.path) io.gets p $_ io.gets test(io) p $_ }}} Result: {{{ $ ruby19 -v t.rb ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] "1\n" "3\n" "2\n" $ macruby -v t.rb MacRuby 0.8 (ruby 1.9.2) [universal-darwin10.0, x86_64] nil nil nil }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1008> MacRuby <http://macruby.org/>
#1008: Can't get the last line from $_. Need to implement rb_lastline_get and rb_lastline_set. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: #reduction ----------------------------------+----------------------------------------- Changes (by eloy.de.enige@…): * keywords: => #reduction -- Ticket URL: <http://www.macruby.org/trac/ticket/1008#comment:1> MacRuby <http://macruby.org/>
#1008: Can't get the last line from $_. Need to implement rb_lastline_get and rb_lastline_set. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: #reduction ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby 1.0 Comment: For 1.0. -- Ticket URL: <http://www.macruby.org/trac/ticket/1008#comment:2> MacRuby <http://macruby.org/>
#1008: Can't get the last line from $_. Need to implement rb_lastline_get and rb_lastline_set. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: #reduction ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Looks like #952 should fix this problem, but let's wait to verify. -- Ticket URL: <http://www.macruby.org/trac/ticket/1008#comment:3> MacRuby <http://macruby.org/>
#1008: Can't get the last line from $_. Need to implement rb_lastline_get and rb_lastline_set. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: #reduction | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => MacRuby 0.8 Comment: Should be fixed in r4986. -- Ticket URL: <http://www.macruby.org/trac/ticket/1008#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby