From: Dave Thomas <redmine@...> Date: 2008-10-29T08:10:13+09:00 Subject: [ruby-core:19583] [Bug #694] eof? call on a pty IO object causes application to exit Bug #694: eof? call on a pty IO object causes application to exit http://redmine.ruby-lang.org/issues/show/694 Author: Dave Thomas Status: Open, Priority: Normal dave[RUBY3/Book 18:08:15*] cat t.rb require 'pty' PTY.spawn("/usr/bin/ruby /usr/bin/irb") do |reader, writer, pid| reader.eof? end dave[RUBY3/Book 18:08:52*] ruby -v t.rb ruby 1.9.0 (2008-10-29 revision 15427) [i386-darwin9.5.0] t.rb:4:in `eof?': pty - exited: 82527 (PTY::ChildExited) from t.rb:4:in `block in <main>' from t.rb:3:in `spawn' from t.rb:3:in `<main>' This problem prevents expect() from working. ---------------------------------------- http://redmine.ruby-lang.org