-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Description
This one seems related to #1290 which has been closed and is supposed to be fixed in JRuby 1.7.17
|ruby-2.1.1| thq-m-dkoeh01 in /tmp/my_folder
○ → ls
myfile.txt
capture3 in MRI (works):
|ruby-2.1.1| thq-m-dkoeh01 in /tmp/my_folder
○ → irb
ruby: warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead.
2.1.1 :001 > require 'open3'
=> true
2.1.1 :002 > Open3.capture3('pwd')
=> ["/tmp/my_folder\n", "", #<Process::Status: pid 1063 exit 0>]
2.1.1 :003 > Open3.capture3('ls')
=> ["myfile.txt\n", "", #<Process::Status: pid 1064 exit 0>]
capture3 with 1.7.17 (fails):
|jruby-1.7.17| thq-m-dkoeh01 in /tmp/my_folder
○ → irb
jruby-1.7.17 :001 > require 'open3'
=> true
jruby-1.7.17 :002 > Open3.capture3('pwd')
=> ["", "usage: pwd [-L | -P]\n", #<Process::Status: pid=1092,exited(1)>]
jruby-1.7.17 :003 > Open3.capture3('ls')
=> ["", "ls: {}: No such file or directory\n", #<Process::Status: pid=1099,exited(1)>]
Reactions are currently unavailable