/ass

a simple shell

Primary LanguageCMIT LicenseMIT

osh

A simple UNIX shell with history feature

My solution to the first assignment in Operating System Concepts, 9e (Silberschatz, Galvin, and Gagne; 2009, 2011, or 2012)

Goals

  • Read user input
  • Fork a child process using fork()
  • Child process should invoke execvp()
  • If command prepended with '&', parent should invoke wait()
  • History

Progress

  • Read user input
  • Fork a child process using fork()
  • Child process should invoke execvp()
  • If command prepended with '&', parent should invoke wait()
  • History
  • Refactor to reduce unnecessary duplicate code

Building

git clone git@github.com:selbyk/ass.git
cd ass
make

Running

Interactive Interface

./osh

CLI

./osh <command> <options>

Usage

Basic commands to get around osh

Built-in Commands

exit
quit
history