A simple Unix shell implemented in C as part of the 42 School curriculum.
The goal of this project is to create a minimal but functional shell that can interpret and execute user commands, handling redirections, pipes, signals, and environment variables.
- Command parsing and execution
- Built-in commands:
echo,cd,pwd,export,unset,env,exit - Pipes (
|) and redirections (>,>>,<,<<) - Environment variable handling (
$VAR) - Signal handling (
ctrl+C,ctrl+D,ctrl+\) - Quote and escape character support
- Exit status management
make
This will generate the minishell executable.
Usage
bash
Copy code
./minishell
Once running, you can use it like a normal shell:
bash
Copy code
minishell$ echo Hello World
Hello World
minishell$ ls -l | grep .c
To exit:
bash
Copy code
exit
License
This project is part of the 42 School curriculum and is distributed for educational purposes only.
---