Description: Your shell prompt MUST adhere to the following format:
o Current date (optional) and time (mandatory) followed by the hash sign (e.g., 13:03:00#)
Your shell MUST support, at minimum, the following commands: o The internal shell command “exit” to terminate the shell o ls, with no arguments
o ls, with arguments (e.g., ls –l)
o echo
Your shell WILL NEED system calls fork(), waitpid(), and one of execv, execve or execvp. You MUST
NOT use the C library function system(). You WILL receive a grade of zero if you do so.
You MUST check and correctly handle all return values. This means that you need to read the man pages for the system calls to figure out what the possible return values are and the types of errors
they indicate, and what you must do when you get that error.
To Search:
File list (Check if you may need any files):
myshell.c
__MACOSX
........\._myshell.c