Question: Problem: write a simple shell myshell that has the following properties: Design a simple command line shell that satisfies the below criteria and implement it
Problem: write a simple shell myshell that has the following properties:
Design a simple command line shell that satisfies the below criteria and implement it on a Linux platform.
The shell must support the following internal commands:
- cd
- clr clear the screen
- dir
- echo
- quit - quit the shell
Side notes:
All other command line input is interpreted as program invocation which should be done by the shell forking and executing the programs as its own child processes.
The shell must support background execution of programs. An ampersand (&) at the end of the command line indicates that the shell should return to the command line prompt immediately after launching that program.
The command line prompt must contain the pathname of the current directory.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
