Question: greatly appreciated!! Please help me make this program for my computer science class. Please include the coding pieces listed below in order to get the

greatly appreciated!!
greatly appreciated!! Please help me make this program for my computer science

Please help me make this program for my computer science class. Please include the coding pieces listed below in order to get the program to work. Also comments would be greatly appreciated. Create a C program that repeatedly enters user input (interpreted as a shell command). The program should parse the command line to determine if it contains input/output redirection. Then the command line should be executed in a forked child process by using an "exec" call. The program should provide a shell prompt that contains the current working directory followed by a \&.If the current working directory changes, the prompt should be updated. Some pieces of code that should be used in the program are: - malloc and realloc - getenv - strdup - execvp for exec function - errno and strerror - \#define DEBUG

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!