TadoTheRustacean@programming.dev to Programmer Humor@programming.devEnglish · 10 months agothisIsGoingToBeASeriousDebateprogramming.devimagemessage-square9fedilinkarrow-up14arrow-down10
arrow-up14arrow-down1imagethisIsGoingToBeASeriousDebateprogramming.devTadoTheRustacean@programming.dev to Programmer Humor@programming.devEnglish · 10 months agomessage-square9fedilink
minus-squarepranaless@beehaw.orglinkfedilinkarrow-up0·10 months agouse std::process::Command; fn main() { Command::new("sh") .arg("-c") .arg("echo Hello World!") .spawn() .unwrap(); } Like this?
minus-square30p87@feddit.delinkfedilinkarrow-up0·10 months agoNo, more like use std::process::Command; fn main() { Command::new("sh").arg("-c").arg("echo Hello World!").spawn().unwrap(); } . Just a little bit shorter, as it seems /s
use std::process::Command; fn main() { Command::new("sh") .arg("-c") .arg("echo Hello World!") .spawn() .unwrap(); }
Like this?
No, more like
use std::process::Command; fn main() { Command::new("sh").arg("-c").arg("echo Hello World!").spawn().unwrap(); }
.
Just a little bit shorter, as it seems /s