
|
If you were logged in you would be able to see more operations.
|
|
|
JRuby
Created: 10/Sep/07 10:23 AM
Updated: 22/Dec/07 06:28 AM
|
|
| Component/s: |
None
|
| Affects Version/s: |
JRuby 1.0.0,
JRuby 1.0.1
|
| Fix Version/s: |
JRuby 1.1b1,
JRuby 1.0.2
|
|
|
File Attachments:
|
1.
echo-fix.patch (0.7 kb)
|
|
Environment:
|
Mac OS X 10.4.10, Java 1.5.0_07-87, 1.6.0-dp-b88-34
Solaris SPARC Generic_120011-14 (Sol10u4), Java 1.6.0_02-b05
Mac OS X 10.4.10, Java 1.5.0_07-87, 1.6.0-dp-b88-34
Solaris SPARC Generic_120011-14 (Sol10u4), Java 1.6.0_02-b05
|
|
Method "gets" when run in jirb does not echo stdin to stdout. E.g.,
typed = gets
puts "you typed #{typed}"
does not echo what the user types until the user hits ENTER.
Worth noting that as compared to native/MRI ruby, when the above is run within the jruby interpreter there is a discernible delay from when ENTER is hit to when "gets" returns.
|
|
Description
|
Method "gets" when run in jirb does not echo stdin to stdout. E.g.,
typed = gets
puts "you typed #{typed}"
does not echo what the user types until the user hits ENTER.
Worth noting that as compared to native/MRI ruby, when the above is run within the jruby interpreter there is a discernible delay from when ENTER is hit to when "gets" returns.
|
Show » |
|
The strange pause is unrelated, and fixed in trunk (at least I'm not seeing it).