Project for CS 3650 at Northeastern University where I created a working Bash-like Shell written in C. It is a bare bones shell that supports the following bash features: < (redirect input), > (redirect output), && (and), || (or), ; (execute consecutive commands) and the creation of environment variables.
- Clone the repository
- Make the makefile
- Run the nush executable
The following are example commands supported by the shell:
mkdir -p tmp
sort -o tmp/sorted.txt tests/sample.txt
cat tmp/sorted.txt
or
true&& echo dont need spaces
or
mkdir -p tmp
sort tests/sample.txt > tmp/sorted2.txt
cat tmp/sorted2.txt
or
FOO=one
BAR=two
echo $FOO $BAR $FOO
FOO=three
echo $BAR $FOO $BAR