This is a requirement to implement the knowledge of C programming basics. This project contains defined user functions, do similar work compared to the same library function, example: copy-string does the work of strcpy. The project consist of files, all sums up the step by step function of a shell program.
-
- Handle many attributes of the shell yet.
-
- This step Handle command lines with arguments, unlike the first, that only reads and prints out user input.
-
- This step handle the PATH, which is the list of all directories, a shell access to executes a particular command.
-
- This part implements the exit built-in that exits the shell. From the previous steps, the shell can not exit.
-
- This step implement the env built-in that prints the current enviroment.
-
- At this stage, we write a function that reads input from the command line, this function mimics the
getlinelibrary function.
- At this stage, we write a function that reads input from the command line, this function mimics the
-
- This step handle arguments for the built-in exit. Exit status also allowed at this point.
-
- This step implemets the setenv and unsetenv built-in commands.
-
- This step implement the builtin command cd.
-
- This step handles the commands separator
;which is a sequencing character.
- This step handles the commands separator
-
- This step handles the
&&and||shell logical operators.
- This step handles the
-
- This step implemets the alias built-in command.
-
- This step handles variables replacement; that is
$variable.
- This step handles variables replacement; that is
-
- Commenting
#is handled at this stage.
- Commenting
-
- This step handle the usage of simple_shell [filename]