diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-07 15:29:28 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-07 15:29:28 +0000 |
commit | 1ade9cad02a366a5f54a410a9f6337c92839d36e (patch) | |
tree | 34b9d10844aee643bdf2336f72bbc0c079b3d554 /lib/open3.rb | |
parent | 48ad25568f0dfd937303cae0221a5818a0a609b3 (diff) | |
download | ruby-1ade9cad02a366a5f54a410a9f6337c92839d36e.tar.gz |
* 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/open3.rb')
-rw-r--r-- | lib/open3.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/open3.rb b/lib/open3.rb index 6ec4a941d2..959181b67d 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 } |