Skip to content

UNIX-based Shell with interactive and batch execution mode

Notifications You must be signed in to change notification settings

Pechenkya/Basic-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic shell

Language: C

Short descriprion

This shell is part of course "Introduction to OS: Part 1" by Codio. It's a wrapper for UNIX file system, written with C language.

Built-In commands

List of built-in commands that can be executed by default:

  1. exit -- ends shell execution (no parameters)
  2. cd -- changes current direction (exactly 1 parameter)
  3. path -- set paths for executing other commands (0 or more parameters)

Special possibilities

  1. Stream redirection -- use symbol > to redirect output to file
  2. Parallel commands -- use symbol & to call commands simultaneously

Shell execution

Use this commands to start shell:

Interactive mode

gcc -o wish wish.c
./wish

Batch mode (from file batch.txt)

gcc -o wish wish.c
./wish batch.txt

REMARKS

  1. Built-In commands cannot be run in parallel mode!

ISSUES

  1. Some syntax and command execution problems sometimes (fix needed)
  2. DONE Code refactoring needed (add some space optimization and clarification)

About

UNIX-based Shell with interactive and batch execution mode

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages