Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 701 Bytes

File metadata and controls

32 lines (28 loc) · 701 Bytes

Shell

This is a project that mimics mordern shells and has two mode -

  1. interactive shell mode
  2. non interactive shell mode

interactive mode - uses prebuilt . predefined functions and are used to execute them if used by the user
non interactive mode - used to execute functions inside .sh files
The whole project is coded in c and cmake and is optimised using pointers and dynamic size allocation

Structure

shell
|-->lib
|    |
|    -->shell.h
|-->src
|    |
|    -->shell.c
|    |
|    -->main.c
|-->CMakeLists.txt

Run the project

git clone git@github.com:Dhanush-Poduval/shell.git
cd shell
cmake -S . -B build
cmake --build build
./build/shell_exec