Skip to content
Myr

Properly spawn commands on Windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent f67de67 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/hyperfine/shell.rs+1 added
15 unmodified lines
16/// Run a Windows shell command using cmd.exe17#[cfg(target_os = "windows")]18pub fn run_shell_command(command: &str) -> io::Result<ExitStatus> {19 Command::new("cmd")20 .arg("/C")21 .arg(command)22 .stdin(Stdio::null())23 .stdout(Stdio::null())24 .stderr(Stdio::null())
2 unmodified lines