~evan-hoose/Snippets

b144d9871483e1f4302f44dde8c0d1c669739861 — Evan 4 months ago b3bbb28 master
 On branch master
 Changes to be committed:
	modified:   shell.rs
1 files changed, 4 insertions(+), 1 deletions(-)

M shell.rs
M shell.rs => shell.rs +4 -1
@@ 1,3 1,6 @@
//This function sucks. I wrote it to make some rust code more readable while
//writing a script.

use std::process::Command;

fn shell(command: &str) {


@@ 11,7 14,7 @@ fn shell(command: &str) {
    //exit code of the process is 0, regardless of 0's interpretation on a
    //given system.
    //
    //You are on a POSIX complient, I hope.
    //You are on a POSIX style system, I hope.
    //
    //If the exit code is not 0, print the command and status code for 
    //debugging.