Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.RC2, JRuby 1.6.8
Assignee: Unassigned
Components: Core Classes/Modules, Launcher, Miscellaneous, Standard Library
Created: 16/Oct/12 2:50 AM
Description:

If you read from STDIN using gets very early in the process, then it returns nil, e.g. running this in a shell

bash -c '(sleep 0; echo "Hello") | jruby -e "puts gets"'

prints out "nil", where as this almost identical script

bash -c '(sleep 4; echo "Hello") | jruby -e "puts gets"'

prints out "Hello"

Environment: Ubuntu 12.04 AMD64.
java-7-openjdk-amd64 for JRuby 1.70-RC2
java-6-openjdk-amd64 for JRuby 1.6.8

    
Project: JRuby
Labels: jruby
Priority: Major Major
Reporter: Jarl Friis
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to