Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If you read the README carefully, you will notice that the shell program has a interactive mode as well as a batch mode. All the
If you read the README carefully, you will notice that the shell program has a "interactive" mode as well as a "batch" mode. All the tests will run in the batch mode.
You can check argc to determine which mode to use in your program. In the interactive mode, your skeleton program shall echo out the lines of the user input
promptwish
wish this is a command
line: this is a command
wish this is another command
line: this is another command
If the batch.txt contains the following lines:
this is a command
this is another command
The batch mode will echo the file content line by line:
promptwish batch.txt
line: this is a command
line: this is another command
Write a c program basic shell with these basic functionalities to produce the same output
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started