Skip to content

kevinkarnani/CShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

CShell

Introduction

This is a refactored version of a shell I wrote for my Systems Programming class.

Getting Started

Prerequisites

You must have gcc or some form of C compiler installed in order to run this code.

Functionality

It supports:

  • Certain Bash Built-in Commands (cd and exit)
  • Redirection (<, >, >>)
  • Piping (|)
  • Backgrounding (&)
  • Chaining
    • Consecutive (;)
    • Simultaneous (&)

Additional features, such as Regex and conditionals, are planned.

An example command:

wc < shell.c > test.txt & ls | wc | egrep 0; sleep 5&

Compilation

After downloading the file, run:

gcc -g -o shell shell.c # -g only necessary if debugging with gdb

Running The Shell

After compiling the code, run:

./shell

Author

Kevin Karnani

About

My implementation of a Bash Shell in C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages