jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [linux-x86_64]
Ubuntu 16.04, jruby installed with rbenv
Expected Behavior
MRI supports redirecting the standard output or standard error of a subprocess to an already opened IO with out: io, err: io. This works if io is a tempfile.
The text was updated successfully, but these errors were encountered:
doudou
changed the title
system and spawn raise 'wrong exec redirect action' when redirecting given out: io or err: io
system and spawn raise 'wrong exec redirect action' when redirecting given out: tempfile or err: tempfileJan 25, 2017
@doudou indeed we were just missing an else (although I used a break to keep the logic a little closer to MRI). exec is still not properly supporting :out but you added an issue for that separately...
doudou commentedJan 25, 2017
•
edited
Environment
jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [linux-x86_64]
Ubuntu 16.04, jruby installed with rbenv
Expected Behavior
MRI supports redirecting the standard output or standard error of a subprocess to an already opened IO with
out: io
,err: io
. This works ifio
is a tempfile.Actual Behavior
JRuby raises "wrong exec redirect action". Replacing the tempfile by a plain File works.
Looking at the actual code it does seem that IO and File should be supported. Maybe an
else
is missing here ?The text was updated successfully, but these errors were encountered: