Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created November 18, 2018 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/54b9b60c2b2b7ea84ed1f2e433024043 to your computer and use it in GitHub Desktop.
Save rust-play/54b9b60c2b2b7ea84ed1f2e433024043 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
use std::process::Command;
fn main(){
let mut proc = Command::new("echo")
.arg("$shell")
.spawn()
.unwrap();
proc.wait().unwrap();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment