42/Codam minishell, a simple shell based on bash
A collaborative group project that has us writing our own simple little shell in C.
The shell takes single-line inputs and replicates bash behaviour.
It supports:
- redirections -
<,>, and>>. - pipes -
| - separating semicolons -
; - single and double quotes -
'" - escape character -
\ - environment variables -
$ ctrl-C,ctrl-D, andctrl-\
Implemented builtins:
echowith option ’-n’cdwith relative or absolute path, and '-'pwdwithout any optionsexportwithout any optionsunsetwithout any optionsenvwithout any options and any argumentsexitwithout any options
# Build
make
# Run
./minishell
A guide to writing your own shell from Introduction to Systems Programming
A detailed breakdown of how the shell interprets commands
Pipes, forks, and dups - data flows explained
An explanation of shell operators
