Welcome to thesh, a lightweight custom shell written in C. This project is a minimalist command-line interpreter designed for educational purposes. It demonstrates how to build basic shell functionality, including built-in commands, user input parsing, and system command execution.
- Built-in commands:
cd– Change the current working directoryhelp– Display information about the shellexit– Exit the shellecho– Print arguments to the terminal
- Executes external system commands (e.g.,
ls,pwd, etc.) - Basic error handling
- Clean and readable codebase
- GCC or any C compiler
- Unix-like environment (Linux, macOS, or WSL)
To compile the shell:
gcc -o thesh main.c builtins.c -Wall