#1429: STDIN.eof? consumes first input character --------------------------------+------------------------------------------- Reporter: lastobelus@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- {{{ irb(main):045:0> def test irb(main):046:1> STDIN.eof? irb(main):047:1> STDIN.gets irb(main):048:0> end => nil irb(main):049:0> test bob => "ob\n" }}} - I checked File and StringIO, they do not show this bug. - I was unable to come up with a workaround that would work with client code calling STDIN.eof? then STDIN.gets. Any suggestions would be appreciated. I tried STDIN.reopen and STDIN.rewind -- Ticket URL: <http://www.macruby.org/trac/ticket/1429> MacRuby <http://macruby.org/>