A simple UNIX shell with history feature
My solution to the first assignment in Operating System Concepts, 9e (Silberschatz, Galvin, and Gagne; 2009, 2011, or 2012)
- Read user input
- Fork a child process using
fork()
- Child process should invoke
execvp()
- If command prepended with '&', parent should invoke
wait()
- History
Read user inputFork a child process usingfork()
Child process should invokeexecvp()
If command prepended with '&', parent should invokewait()
History- Refactor to reduce unnecessary duplicate code
git clone git@github.com:selbyk/ass.git
cd ass
make
./osh
./osh <command> <options>
Basic commands to get around osh
exit
quit
history