Skip to content

tung2389/Unix-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DUSH shell

  • Unix shell that supports running multiple commands in parallel and redirection.

Project structure

  • dush.c: entry point to run the shell.
  • common/: some utility functions that are used accross the program.
  • services/: main services for the shell, including :
    • parser for parsing and validating input into commands.
    • executor for executing commands.
    • logger for logging useful information.
  • tester/: script for running tests.
  • tests/: test cases for the shell.

Usage

  • To run the shell:
make
./dush # Interactive mode
./dush commands.txt # Batch mode
  • To run test:
./test_dush.sh