Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
:sccache 1sccache: true
use std::process::Command;Command::new("bash")
.arg("-c")
.arg("echo hello")
.output()
.expect("failed to execute process")Output { status: ExitStatus(unix_wait_status(0)), stdout: "hello\n", stderr: "" }Command::new("bash")
.arg("-c")
.arg("echo hello")
.status()hello
Ok(ExitStatus(unix_wait_status(0)))