This commit is contained in:
FilipAndersson authored and David Peter committed 2022-10-29 14:58:57 +02:00
1 parent af2f0ace22
commit f00acf962e
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -130,7 +130,13 @@ impl<'a> Executor for ShellExecutor<'a> {
) -> Result<(TimingResult, ExitStatus)> {
let mut command_builder = self.shell.command();
command_builder
.arg(if cfg!(windows) { "/C" } else { "-c" })
.arg(
if cfg!(windows) && *self.shell == Shell::Default("cmd.exe") {
"/C"
} else {
"-c"
},
)
.arg(command.get_command_line());
let mut result = run_command_and_measure_common(