Minishell
UNIX shell from scratch in C

UNIX shell rebuilt in C as a duo, inspired by Bash, with an interactive prompt, command parsing, program execution and environment management. The project covers simple commands, pipes, redirects, here-docs, environment variables and the main builtins.
Most of the difficulty sits at the boundary between parsing and execution. A user input line must become coherent tokens, quotes must be respected, variables expanded at the right moment, pipelines built correctly, file descriptors opened in the right place, then fork/exec/wait orchestrated without leaks or inconsistent behaviour.
The shell also has to behave correctly in interactive use: keyboard signals, return codes, Ctrl-C, Ctrl-D, history handling and builtins such as cd, echo, pwd, export, unset, env and exit. It is a dense project, very close to the system, that forces you to understand what a terminal really does when you type a command.


