Details
Description
JRuby does not handle EOF character in case of reading program from its standard input.
I have to hit Ctrl-D twice.
The problem is the EOF character is ignored by the lexer in some case, and next read operation will be blocking.
The posted patch adds a simple FilterInputStream subclass, EOFWrappedInputStream, which remembers previously happened EOF.
When I run jruby:
Things end with the first ^D. Could you provide more instructions for how to reproduce this?