From: matz@... (Yukihiro Matsumoto) Date: 2003-11-11T10:17:55+09:00 Subject: Re: IO.readlines bug? (1.6.8 vs 1.8.1) Hi, In message "IO.readlines bug? (1.6.8 vs 1.8.1)" on 03/11/11, Daniel Berger writes: |Ruby 1.6.8 (32 bit) / 1.8.1 (64 bit) on Solaris 9 | |If I have a file with a single line of data in it, but no newline, I get |different return values: | |Let's say foo.pid contains "12345" (no newline). | |> VERSION |=> "1.6.8" |irb(main):002:0> IO.readlines("foo.pid") |=> ["12345"] | | |irb(main):001:0> VERSION |=> "1.8.1" |irb(main):002:0> IO.readlines("foo.pid") |=> [] | |This a bug? It should be. Since it works completely on my machine, it must be a Solaris specific bug. Wish I had a Solaris box. Let me see anyway. matz.