mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 17:27:33 +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")]
|
#[cfg(target_os = "windows")]
|
||||||
pub fn run_shell_command(command: &str) -> io::Result<ExitStatus> {
|
pub fn run_shell_command(command: &str) -> io::Result<ExitStatus> {
|
||||||
Command::new("cmd")
|
Command::new("cmd")
|
||||||
|
.arg("/C")
|
||||||
.arg(command)
|
.arg(command)
|
||||||
.stdin(Stdio::null())
|
.stdin(Stdio::null())
|
||||||
.stdout(Stdio::null())
|
.stdout(Stdio::null())
|
||||||
|
|||||||
Reference in new issue
Block a user