As beautiful as a shell
About • Resource Links • Prerequisites • Getting Started • Why we got 95/100
Write a shell.
This project is about creating a simple shell. Yes, your own little bash.
You will learn a lot about processes and file descriptors.
- 📜 Project PDF: PDF
- Open the terminal and run the following commands
git clone [email protected]:JustShush/42_minishell.git
cd 42_minishell
make
./minishell
git clone [email protected]:JustShush/42_minishell.git ; cd 42_minishell ; make ; ./minishell
- To compile, run
make
at the root of the42_minishell
directory. - To start the project run the executable file at the root of the
42_minishell
directory. Example:
$ ./minishell
Basically execve creates a new process when when we changed the exit status in the child it doesn't get updated in the other process so when we tried the command: env | <invalid_command>
and then echo $?
it returns 0
instead of 127
for the command not found.