matz
11/11/2003 1:18:00 AM
Hi,
In message "IO.readlines bug? (1.6.8 vs 1.8.1)"
on 03/11/11, Daniel Berger <djberge@qwest.com> 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.