Minishell is a fundamental project in the 42 school curriculum, designed to introduce students to the world of systems programming and command-line interfaces. In this project, we have are have created a simple shell that mimic the behavior of the bash shell using C programing language.
- Command Execution: Execute shell commands.
- Pipelines: Implementing simple command pipelines allows users to chain commands together, facilitating more complex operations.
- Redirections: Support input and output redirections.
- Environment Variables: Handle environment variables.
- Built-in Commands: Implement built-in shell commands like cd, echo, env, export, unset, exit and pwd.
- Error Handling: Provide meaningful error messages for user input.
- Signal Handling: Handle ctrl-C, ctrl-D and ctrl-\ which should behave like in bash.
- GCC (GNU Compiler Collection)
- Make
-
Clone the repository:
git clone https://github.com/aandom/minishell.git
-
Navigate to the project directory:
cd minishell -
Build the project:
make
To run the Minishell, use the following command:
./minishell