Merge pull request #3865 from commitay/systemcommand

Fix SystemCommand escaping
This commit is contained in:
Vítor Galvão 2018-03-06 09:34:56 +00:00 committed by GitHub
commit 6c203f9372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ module Hbc
executable, *args = expanded_command executable, *args = expanded_command
raw_stdin, raw_stdout, raw_stderr, raw_wait_thr = raw_stdin, raw_stdout, raw_stderr, raw_wait_thr =
Open3.popen3({ "PATH" => path }, executable, *args, **options) Open3.popen3({ "PATH" => path }, [executable, executable], *args, **options)
write_input_to(raw_stdin) write_input_to(raw_stdin)
raw_stdin.close_write raw_stdin.close_write