Question: Create a command - line shell program like bash or Powershell. Have a prompt, example below. Reads from input, writes to output. until quit or

Create a command-line shell program like bash or Powershell. Have a prompt, example below.
Reads from input, writes to output. until "quit" or "exit".
Implement "cd" and "pwd".(directly). cd must take a full or relative path.
Implement the setting, deleting (unsetting) and getting of xsh environment vars:
xsh# set FOO banana
xsh# echo My favorite fruit is a $FOO.
My favorite fruit is a banana.
xsh# unset FOO
xsh# echo I'd love to eat a $FOO colored slug.
I'd love to eat a colored slug.

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 Programming Questions!