Skip to content

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Project focus on building a simple UNIX shell program.

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.

Program Breakdown



    1. Handle many attributes of the shell yet.
    1. This step Handle command lines with arguments, unlike the first, that only reads and prints out user input.
    1. This step handle the PATH, which is the list of all directories, a shell access to executes a particular command.
    1. This part implements the exit built-in that exits the shell. From the previous steps, the shell can not exit.
    1. This step implement the env built-in that prints the current enviroment.
    1. At this stage, we write a function that reads input from the command line, this function mimics the getline library function.
    1. This step handle arguments for the built-in exit. Exit status also allowed at this point.
    1. This step implemets the setenv and unsetenv built-in commands.
    1. This step implement the builtin command cd.
    1. This step handles the commands separator ; which is a sequencing character.
    1. This step handles the && and || shell logical operators.
    1. This step implemets the alias built-in command.
    1. This step handles variables replacement; that is $ variable.
    1. Commenting # is handled at this stage.
    1. This step handle the usage of simple_shell [filename]

About

Simple shell project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages