Skip to content

A shell coded in C that supports the following bash features:< (redirect input), > (redirect output), && (and), || (or), ; (execute consecutive commands) and the creation of environment variables.

Notifications You must be signed in to change notification settings

juanmartosjimenez/LinuxShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A shell coded in C that supports the following bash features:< (redirect input), > (redirect output), && (and), || (or), ; (execute consecutive commands) and the creation of environment variables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published