A small, Bash-like shell implemented in C (42 project).
It provides a prompt with history, command parsing, pipes & redirections, environment variable expansion, and the standard built-ins.
- Prompt & history (GNU Readline)
- Lexer/Parser with quotes, tokenization, and env expansion (
$VAR,$?) - Pipes & redirections:
|,<,>,>>, heredoc<<(with quoted/unquoted delimiter rules) - PATH resolution for external commands
- Signals tuned for interactive use:
Ctrl-C(SIGINT): returns to prompt, exit code130Ctrl-\(SIGQUIT): ignored at promptCtrl-D: clean exit on empty line
- Built-ins (in-process, affect shell state):
echo(supports-n)cdpwdexportunsetenvexit
Prerequisites
- GNU Readline development headers (
libreadline-dev/readline) makeand a C compiler
git clone https://github.com/andrijajovanovic98/minishell
cd minishell
make
./minishellOur result with tester: https://github.com/zstenger93/42_minishell_tester:
To test it, just compile it with the "make tester" command

