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:
echo
with option ’-n’cd
with relative or absolute path, and '-'pwd
without any optionsexport
without any optionsunset
without any optionsenv
without any options and any argumentsexit
without 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