2023-02-10 10:13:30 -06:00
|
|
|
fn main() {
|
2023-02-10 15:35:23 -06:00
|
|
|
// Things it should warn about:
|
2023-02-10 10:13:30 -06:00
|
|
|
std::process::Command::new("echo").arg("-n hello").spawn().unwrap();
|
|
|
|
std::process::Command::new("cat").arg("--number file").spawn().unwrap();
|
2023-02-10 15:35:23 -06:00
|
|
|
|
|
|
|
// Things it should not warn about:
|
|
|
|
std::process::Command::new("echo").arg("hello world").spawn().unwrap();
|
|
|
|
std::process::Command::new("a").arg("--fmt=%a %b %c").spawn().unwrap();
|
|
|
|
std::process::Command::new("b").arg("-ldflags=-s -w").spawn().unwrap();
|
2023-02-10 10:13:30 -06:00
|
|
|
}
|