This is a repo for Rust solutions to the "Build Your Own Shell" Challenge.
The entry point for this shell implementation is in src/main.rs. This simple shell
implementation includes:
- REPL implementation (run
./your_shell.shto start the REPL) - handling unknown commands
-
echo,exit, andtypebuilt-in commands - printing the full path to external executables if they are found in the PATH (run
type mkdirin the REPL as an example) - running external executables with arguments (run
ls -l -sin the REPL as an example) - implementing the
pwdbuilt-in command - implementing the
cdbuilt-in command
- Ensure you have
cargo (1.70)installed locally - Run
./your_shell.shto run your program, which is implemented insrc/main.rs. This command compiles your Rust project, so it might be slow the first time you run it. Subsequent runs will be fast. - Execute commands in the REPL that appears. You can run any command that you would normally run in a shell.