Skip to content

sohe1l/Unix-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csc415-p3 - Shell program

Build Instructions:

  1. Navigate to the project folder (csc415-shell-program-sohe1l)
  2. In the terminal run "make" to compile the code
  3. Alternatively run "gcc -I -Wall myshell.c -o myshell"

Run Instructions:

  1. Navigate to the project folder (csc415-shell-program-sohe1l)
  2. In the terminal run "./myshell"

What The Code Does:

Simple shell program parsing input and run commands using execvp which supports:

- Parameters passing
- Running commands in the background using&
- Redirects; reading input from file (<) and writing or appending to files (> and >>)
- Running multiple commands using pipes
- Supports cd and pwd commands.

Extra credit:

The following extra credit items are implemented:

- Nested pipe commands
- Supports combination of nested pipes and redirects (> >> <)
- Supports ~ in the prompt text and the 'cd' command.

About

Unix shell implemented in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •