Fix SystemCommand escaping

This commit is contained in:
commitay 2018-03-01 17:19:00 +10:00
parent 84d718cbef
commit 2404279d63

View File

@ -85,7 +85,7 @@ module Hbc
executable, *args = expanded_command
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)
raw_stdin.close_write