Shell
This is a project that mimics mordern shells and has two mode -
- interactive shell mode
- 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.txtRun the project
git clone git@github.com:Dhanush-Poduval/shell.git
cd shell
cmake -S . -B build
cmake --build build
./build/shell_exec