smallsh implements a subset of features of well-known shells, such as bash.
This program does the following:
- Provides a prompt for running commands
- Handles blank lines and comments, which are lines beginning with the
#character - Provides expansion for the variable
$$ - Executes 3 commands
exit,cd, andstatusvia code built into the shell. - Executes other commands by creating new processes using a function from the
execfamily of functions - Supports input and output redirection
- Supports running commands in foreground and background processes
- Implements custom handlers for 2 signals, SIGINT and SIGTSTP
Makefile included, please use make to compile
Run program using ./smallsh; or,
Run with script using bash p3testscript
