Skip to content

Guangyi-Z/Simple-Shell-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Shell

##Intro

*nix-like terminal shell, derived from the skeleton of the xv6 shell. The skeleton shell contains two main parts: parsing shell commands and run the command in saperate processes.

The parser recognizes only simple shell commands such as the following:

  • ls > y
  • cat < y | sort | uniq | wc > y1
  • cat y1
  • rm y1
  • ls | sort | uniq | wc
  • rm y

####Limits

MAX AUGUMENTS LIMIT for each single command: 10 MAX LENGTH LIMIT for user input: 100 MAX LENGTH LIMIT for absolute path of command: 100

####Usage

*Only works in nix-like platform.

Open your terminal, run the Makefile under the project directory:

make all

Run following to delete the intermediate files and the executable:

make clean

##Impl

####Main Flow main-flow

####Parser parser

####Pipeline pipeline

####Redirection redirection

About

Simple shell terminal written in C, derived from the skeleton of xv6 shell.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published