The goal of this project is to recreate bash shell.
- interpretation of
|
,&&
,||
,()
- interpretation of
<
,<<
,>
,>>
- interpretation of
$
,"
,'
- interpretation of
*
for the current working directory (e.g ls *) - built in functions:
echo
with or without-n
(e.gecho -n hello "world"
)cd
with parameters (e.gcd ../directory
)env
(lists all environment variabels)exit
with parameters (e.gexit 42
)export
with or without parameters (e.gexport TEST="test variable"
)unset
(e.gunset TEST
)pwd
(shows current directory)false
andtrue
(e.gfalse || true && ls
)
MacOs Linux only
git clone --recursive https://github.com/nschumac/42cursus03-Minishell.git
- install readline library (e.g
brew install readline
) - run
make
in cloned repository - execute
./minishell
you are now in a shell and can execute most commands (e.g ls -a | grep a | cat)
- Status: Completed
- Result: 125%
- 42-slack: nschumac
- 42-email: [email protected]
- 42-profile: https://profile.intra.42.fr/users/nschumac