This is a refactored version of a shell I wrote for my Systems Programming class.
You must have gcc or some form of C compiler installed in order to run this code.
It supports:
- Certain Bash Built-in Commands (cdandexit)
- Redirection (<,>,>>)
- Piping (|)
- Backgrounding (&)
- Chaining
- Consecutive (;)
- Simultaneous (&)
 
- Consecutive (
Additional features, such as Regex and conditionals, are planned.
An example command:
wc < shell.c > test.txt & ls | wc | egrep 0; sleep 5&After downloading the file, run:
gcc -g -o shell shell.c # -g only necessary if debugging with gdbAfter compiling the code, run:
./shellKevin Karnani