Question: Write a shell like the code below. Your work should contain enough code that it works, and you can test it . Expand this code
Write a shell like the code below. Your work should contain enough code that it works, and you can test it Expand this code to include redirection of input and output, pipes, and background jobs. #define TRUE while TRUE repeat forever typeprompt; display prompt on the screen readcommandcommand parameters; read input from terminal if fork fork off child process Parent code. waitpid &status, ; wait for child to exit else Child code. execvecommand parameters, ; execute command
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
