summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-07 15:29:28 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-07 15:29:28 (GMT)
commit1ade9cad02a366a5f54a410a9f6337c92839d36e (patch)
tree34b9d10844aee643bdf2336f72bbc0c079b3d554 /lib
parent48ad25568f0dfd937303cae0221a5818a0a609b3 (diff)
* lib/open3.rb: Open3 properly passes non-keyword hash args to spawn.
Fixed by Josh Cheek. [Fix GH-808] Related to [ruby-core:67347] [Bug #10699] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/open3.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/open3.rb b/lib/open3.rb
index 6ec4a94..959181b 100644
--- a/lib/open3.rb
+++ b/lib/open3.rb
@@ -190,6 +190,7 @@ module Open3
module_function :popen2e
def popen_run(cmd, opts, child_io, parent_io) # :nodoc:
+ opts = opts.merge(cmd.pop) if cmd.last.kind_of? Hash
pid = spawn(*cmd, opts)
wait_thr = Process.detach(pid)
child_io.each {|io| io.close }