Skip to content

tonytrinh19/shellProgram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Pre Setup

This program will run using DC libraries. DC libraries provide error handling, and error reporting for your POSIX application.

So clone this repository -> dc_scripts. After that, cd into dc_scripts folder and run ./dc-update work gcc g++ This will install all dc libraries in your folder called work. If you'd like to update your libraries, simply go to dc_scripts folder and run ./dc-update work to update the libraries.

Setup

Clone this repository then go to the program's directory then run command:

mkdir cmake-build-debug

Source Code Additions

cmake -DCMAKE_C_COMPILER="gcc" -DCMAKE_CXX_COMPILER="g++" -S . -B cmake-build-debug

Build

Examples:

cmake --build cmake-build-debug
cmake --build cmake-build-debug --clean-first
cmake --build cmake-build-debug --target docs
cmake --build cmake-build-debug --target format

State Table

state_table.png

State Transition Diagram

state_transition_diagram.png

Examples

Start the program

start

Print Working Directory (pwd)

PWD

Change Directory (cd)

CD

List (ls)

list

Redirection (<, >, >>, 2>)

Redirection

Print (cat)

Cat B

GCC

Compile C program

Run Output

Run output

About

A C program that replicates Linux shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published