The following repl program demonstrates a very simple shell in Rust. It reads a line, splits it into a program name and its arguments, runs the program, and waits for it to finish. Type exit or press CTRL-D to quit.
This zip file contains the complete crate.