/nsh

Not(e) (A) Shell made in C

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

NSH: Not(e) (A) Shell

NSH is a (pseudo) shell written for OSN Assignment 2 at IIIT Hyderabad

Building

Make sure you have cmake installed.

First, Create a build directory:

mkdir build
cd build

Run cmake, with debug flag for debugging or release flag otherwise.

cmake -DCMAKE_BUILD_TYPE=Debug ..

Then, either run make or ninja:

make

or

ninja -C

You should have the shell in nsh in the build/bin/ directory.

Quirks

  1. Home directory is defined as the directory where the shell is initialized: Assignment specification.
  2. Argument parsing is very rudimentary.
  3. Environment variables are not touched: Assignment specification(?)
  4. Job id's are always increasing.