what_shell/
what_shell.rs

1fn main() {
2    // `find` returns the name of the shell in a string and the pid as a u32
3    let (sh, pid) = pshell::find().unwrap_or(("unknown".to_string(), 0));
4    println!(
5        "This application has been run from pid `{}`, which is a {} shell",
6        pid, sh
7    );
8}