Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: JRuby 1.5, JRuby 1.6
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Hideuname -a
Linux desktop.local 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
jruby -v
jruby 1.6.0 (ruby 1.8.7 patchlevel 330) (2011-03-15 f3b6154) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java]Showuname -a Linux desktop.local 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux jruby -v jruby 1.6.0 (ruby 1.8.7 patchlevel 330) (2011-03-15 f3b6154) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java]
-
Number of attachments :
Description
I attached simple test tools isatty to demonstrate this bug.
$ ruby -v ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] $ jruby -v jruby 1.6.0 (ruby 1.8.7 patchlevel 330) (2011-03-15 f3b6154) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java] $ ruby -e '["stdin", "stdout", "stderr"].each { |s| system "./isatty #{s}" }' Yes Yes Yes $ jruby -e '["stdin", "stdout", "stderr"].each { |s| system "./isatty #{s}" }' No No No
I tried to patch Ruby on Rails to make rails dbconsole working with jdbcpostgresql adapter, but I noticed that started psql command has no prompt because psql detected not interactive environment using isatty function.
Issue Links
- duplicates
-
JRUBY-1608
STDIN/STDOUT "not a tty" under Kernel.system
-
Duplicate of JRUBY-1608.