From: ts Date: 2001-04-05T20:47:02+09:00 Subject: [ruby-talk:13508] Re: BUG?: HP-UX 10.20 and IO#gets followed by IO#puts >>>>> "S" == SHULTZ,BARRY (HP-Israel,ex1) writes: S> I get the following behavior for Ruby 1.6.1,1.6.2 and 1.6.3 S> on HP-UX 10.20. Could someone running HP-UX 11 check it? Seems normal for me :-))) Try to add S> [derby]:cat /tmp/a.txt S> line 1 S> [derby]:/mnt/ruby162/bin > ./irb S> irb(main):001:0> f = File.new("/tmp/a.txt","r+") S> # S> irb(main):002:0> f.gets S> "line 1\n" f.seek 0, IO::SEEK_CUR S> irb(main):003:0> f.puts("line 2") S> nil S> irb(main):004:0> f.close S> nil S> irb(main):005:0> exit and look if you have the good result. Guy Decoux