Ruby 1.8.7 may have a problem with PTY's .eof.