Use COMPSEC to find "cmd.exe" on Windows.

This commit is contained in:
Johan Holmberg 2009-11-23 17:11:27 +01:00
parent 2fe19ae2ff
commit 46607b24c2

View File

@ -69,7 +69,12 @@ module Cmdtest
end
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
def _tmp_command_sh