D
Daniel Berger
Hi all,
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).
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?
Regards,
Dan
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).
=> "1.6.8"VERSION
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?
Regards,
Dan