Question: Modify psh2.c to exit when the user types the command ** '93exit'94 or when the program sees end of file psht.c: /** prompting shell version
Modify psh2.c to exit when the user types the command\ ** \'93exit\'94 or when the program sees end of file
psht.c:
/** prompting shell version 2\ **\ ** Solves the `one-shot' problem of version 1\ ** Uses execvp(), but fork()s first so that the\ ** shell waits around to perform another command\ ** New problem: shell catches signals. Run vi, press ^c.\ **/\ \ #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
