Use COMPSEC to find "cmd.exe" on Windows.
This commit is contained in:
parent
2fe19ae2ff
commit
46607b24c2
@ -69,7 +69,12 @@ module Cmdtest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def _shell
|
def _shell
|
||||||
_windows ? "cmd /Q /c" : "/bin/sh"
|
if _windows
|
||||||
|
cmd_exe = ENV["COMSPEC"] || "cmd.exe"
|
||||||
|
"#{cmd_exe} /Q /c"
|
||||||
|
else
|
||||||
|
"/bin/sh"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def _tmp_command_sh
|
def _tmp_command_sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user