Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please code in C 1. Project #1 - Create Your own Shell Project Instructions The objective of this assignment is to understand the workings of
Please code in C
1. Project #1 - Create Your own Shell Project Instructions The objective of this assignment is to understand the workings of a command-line interface (CLI) and to obtain a working knowledge of process forking and signaling. Assignment: In this project we will build a command shell in stages. Our command shell will be a simple implementation of the commonly used command shells such as sh , bash , csh , and tesh. The assignment is split-up in tasks to implement separate features of our shell program. The code fragments for these tasks does not need to be separately submitted. Only the final implementation should be submitted for grading. If you are not able to complete the final tasks, you should be able to submit a partial but working shell program. The textbook discusses a simple shell implementation at the end of Chapter 3. You may use this information as a resource, as well as the labs that we have covered in class. Task 1 - Print the Shell Prompt and Adding Built-in Commands We have created a file shell.c where you will develop a simple shell to execute commands from the command line. Your shell should prompt the user with current working directly. Use the getcwd() to get the current working directory and print a prompt using the following formatStep 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