Skip to content

Implementation of a basic UNIX shell

Notifications You must be signed in to change notification settings

Noahffiliation/Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell

I implemented a shell in C that runs known commands with full and relative paths along with input and output redirection and background commands.

Requirements

  • dejagnu for runtest
sudo apt install dejagnu

Build

$ make

Run

$ ./tush
$ (Run commands here)

Testing

Run tests to ensure proper functionality

$ runtest PROMPT=\\\$ NAME=your-name-here

Notes

Currently, piping is not yet implemented, but there is starting code that is included in the source file.

Also, the runtest may appear paused on the errors.exp test, but it does continue running and passing other tests. The tush.log file records the test results if this happens.

About

Implementation of a basic UNIX shell

Topics

Resources

Stars

Watchers

Forks

Languages