Question: (100 points) Create a shell from scratch which can read scripts. Code this in C/C++. Should be able to do the following commands: echo prints
(100 points) Create a shell from scratch which can read scripts. Code this in C/C++. Should be able to do the following commands:
echo
echo $? prints out exit code of previous command
!! repeates last command given to shell
exit
Other details:
- When no other command listed is used the Shell will print out "Incorrect command"
- When the user gives an empty command, the shell gives a new prompt.
- At minnimum should be able to run the program below
## run.sh echo run echo running echo ran !! exit 10
$ ./myShell test.sh run running ran ran $ echo $? 10 $
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
