rsh.
A Unix-style shell. Written in Rust.
From a line of input to a running process. A custom shell built from scratch to work directly with command execution, process lifecycles, and the operating system.
Inside the engineeringExplore case studyClose case study+
Bridging input and execution.
An interactive Read-Eval-Print Loop parses commands and executes them. Built-in commands, including cd and exit, sit alongside child-process spawning and environment-variable management.
- Process managementUsed Rust’s
std::processto spawn and manage child processes. - Composable commandsImplemented pipes (
|) and input/output redirection (<,>) to chain commands. - Interrupt handlingManaged POSIX signals for stable foreground execution and graceful handling of user interrupts.