A simple shell command in C using the command line interface. The shell itself can change directories and execute system programs such as pwd
and ls
. The project involves high usage of memory allocation with different header and driver files to implement a complete shell in C.
Four files are included in this project:
Makefile
- contains information used to compile your program with themake
command.shell.h
- includes declarations and specifications for all of the functions inshell.c
.shell.c
- contains function definitions for all functions inshell.c
. In particular, your goal for this assignment will be to implement the following functions:parse
,find_fullpath
, andexecute
.driver.c
- contains the main function, which is just a loop that reads in a command and uses the functions written inshell.c
to determine whether the command is valid and handle it appropriately. Reading this file before you begin will help you understand the usage of functions you must implement.