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:
echowith or without-n(e.gecho -n hello "world")cdwith parameters (e.gcd ../directory)env(lists all environment variabels)exitwith parameters (e.gexit 42)exportwith or without parameters (e.gexport TEST="test variable")unset(e.gunset TEST)pwd(shows current directory)falseandtrue(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
makein 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: nschumac@student.42heilbronn.de
- 42-profile: https://profile.intra.42.fr/users/nschumac