String#slice! not working correctly when used with string read from file
------------------------------------------------------------------------

                 Key: JRUBY-3198
                 URL: http://jira.codehaus.org/browse/JRUBY-3198
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.5
         Environment: Mac OS X 10.5.5
            Reporter: Miika Leppänen
            Assignee: Thomas E Enebo


mlemacbook:lib milep$ jruby -v
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-03 rev 7996) [i386-java]
mlemacbook:lib milep$ cat lines.txt 
first
second
third
mlemacbook:lib milep$ jirb
irb(main):001:0> s = File.new('lines.txt').read
=> "first\nsecond\nthird\n"
irb(main):002:0> line1 = s.to_a[0]
=> "first\n"
irb(main):003:0> s.slice!(s.to_a[0])
=> "second"
irb(main):004:0> line1
=> "second"
irb(main):005:0> 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to