mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 08:08:58 +00:00
Properly spawn commands on Windows
This commit is contained in:
1 parent
f67de67900
commit
00295f3f7f
1 file changed
+1
@@ -17,6 +17,7 @@ pub fn run_shell_command(command: &str) -> io::Result<ExitStatus> {
|
||||
#[cfg(target_os = "windows")]
|
||||
pub fn run_shell_command(command: &str) -> io::Result<ExitStatus> {
|
||||
Command::new("cmd")
|
||||
.arg("/C")
|
||||
.arg(command)
|
||||
.stdin(Stdio::null())
|
||||
.stdout(Stdio::null())
|
||||
|
||||
Reference in new issue
Block a user