Simple POSIX-compliant shell written in C++ (Based on CodeCrafters Challenge)
- C++ 20 (or later)
- CMake 3.13 (or later)
The following commands are included in run.sh script that you can directly run.
-
Generate build files:
cmake -B build . -
Compile the program:
cmake --build ./build
-
Run the executable:
./build/shell
-
Compile the program:
g++ -Iinclude -std=c++20 -o shell.out src/*.cpp -
Run the executable:
./shell.out
- Built-in Commands:
exit,echo,pwd,cd,type - External Commands Support (using
PATHenvironment variable) - Command Auto-completion (using
TABkey) - Single and Double Quoting Support
- Output and Error Redirection
- Navigation with Arrow Keys
- History Support