Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.5
-
Fix Version/s: None
-
Component/s: Standard Library
-
Labels:None
-
Environment:Mac OSX.
-
Number of attachments :
Description
It appears Open3.popen3(...) is broken on JRuby in 1.9 mode.
On 1.8.7, it returns three arguments (stdin, stdout, and stderr).
On 1.9.X, it returns (stdin, stdout, stderr, and a thread).
You can use the thread argument to access a Process::Status object,
and the PID of the spawned command.
To reproduce:
stdin, stdout, stderr, thr = Open3.popen3 "ls"
thr.value # => NoMethodError (called on nil)
Thanks!
Issue Links
- is duplicated by
-
JRUBY-6966
Open3.popen3 does not take optional environment hash as first argument
-
-
JRUBY-6539
IO.capture3 in 1.9 mode fails with nil.value call
-