Minishell-42 is a minimalist Unix-style shell implemented in C, created to mimic basic behaviors of shells such as bash. It was developed as part of the 42 curriculum and focuses on understanding core system programming concepts like process control, file descriptors, built-ins, redirections, pipes, environment variables, and signal handling.
Before building and running the project:
- A Unix-like system (Linux, macOS, or Windows with WSL)
- A C compiler (
cc,gcc, or similar) makeinstalled- GNU Readline library for command line input handling (see the end of readme)
git clone git@github.com:vgomes-p/minishell-42.gitcd minishell-42/projectmakeThis will generate the minishell executable.
./minishellmake debugmake reTo see the program dependencies, run:
make dependand then
cat dependencies.mkor open the <dependencies.mk> on your favorite file reader.
make cleanor
make fcleansudo apt-get updatesudo apt install libreadline-devbrew install readlineMachine may require linking include and lib paths depending on your environment.
