Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 855 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 855 Bytes

LinuxShell

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.

Installation Instructions

  1. Clone the repository
  2. Make the makefile
  3. 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