In this project, we will be creating a simple working version of bash. No thanks to this project, we'll be able to travel back in time and come back to problems people faced when Windows
didn't exists.
- The program will constantly read input from the user.
- Tokenizing and parsing input given by the user and executes them.
- These are what we have to handle in our
minishell
:
Requirements | Description |
---|---|
A working history | saves all previous inputs given by the user |
Executables | executes the right executables based on PATH using execve() |
Built-ins | echo, pwd, export, unset, env, exit |
ENV Expansion | '' and "" |
Redirections | <, <<, >, >> |
Piping | | |
Signals | ctrl+D, ctrl+C, ctrl+\ |
- GNU make (v3.81)
- GCC (v4.2.1)
- lib32readline8
- Download/Clone this repository
git clone https://github.com/joekeroo/42-minishell.git minishell
cd
into the root directory and runmake
cd minishell && make
make
- compiles the program intominishell
make clean
- removes all.o
filesmake fclean
- clean and removesminishell
make re
- fclean and recompiles
./minishell