This project aims to create a simple shell, based on bash, in C. At this point of the cursus it's by far the largest project we have worked on and also it's the first one we must work in pairs.
-
Download/Clone this repo
git clone https://github.com/rscres/42minishell
-
cd
into the project directory and runmake
cd 42minishell make
-
Run the minishell
./minishell
The project had to be coded in C and we were limited on the lib functions we could use.
Some of the shell commands were implemented as builtins:
- echo
- exit
- export
- env
- unset
- cd
- pwd
Echo was implemented with the -n flag and the rest without any flags. The minishell is capable of running other commands, like ls or wc, but will do it using execve().