This is a simple shell program written in C++. It provides a command-line interface for executing commands.
- Execute commands with arguments
- Change directory with
cd - Set environment variables with
setenv - Print environment variables with
printenv - Execute commands from a file with
source - Exit the shell with
exit
To build the shell, you will need a C++ compiler and CMake.
cmake .
makeTo run the shell, execute the following command:
./shell- The
sourcecommand does not handle errors in the sourced file. - The
parsefunction does not handle quotes or other special characters.