This project is about creating a simple shell, YES, my own little bash. I've learn a lot about processes and file descriptors
This project is a recreation bash with some limitations
Install if you don't have readline installed
sudo apt-get install libreadline-dev
To use it:
git@github.com:benmaia/42_Minishell.git
cd 42_Minishell/minishell
make && ./minishell
- echo && echo -n
- env
- export
- unset
- cd
- pwd
- exit with error code/values
- CTRL C
- CTRL D
- CTRL \
As also have to run all the other commands with execve, have to handle multiple pipes an redirections and support running other programs, like the minishell itself.
Have to launch absolute or relative commands, have to handle expansions of variables '$' and parsing the quotes.
More info on the subject itself!! HERE
Here is an example:
Minishell OK ✅
Grade: 96%