From 00295f3f7fe6e9c3bc96cb6e4e018755338c1fcf Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 2 Feb 2018 23:04:19 +0100 Subject: [PATCH] Properly spawn commands on Windows --- src/hyperfine/shell.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hyperfine/shell.rs b/src/hyperfine/shell.rs index 0b4effb..4545e72 100644 --- a/src/hyperfine/shell.rs +++ b/src/hyperfine/shell.rs @@ -17,6 +17,7 @@ pub fn run_shell_command(command: &str) -> io::Result { #[cfg(target_os = "windows")] pub fn run_shell_command(command: &str) -> io::Result { Command::new("cmd") + .arg("/C") .arg(command) .stdin(Stdio::null()) .stdout(Stdio::null())