minishell is one of the 42 projects.
It is a reimplementation of bash.
We implemented the main features of bash.
- Search and launch the right executable (e.g.
./a.out,/bin/ls..) - builtins:
echo,cd,pwd,export,unset,env,exit - File I/O management by redirection:
>,>>,<,<< - interprocess communication by pipes:
| - signal:
Ctrl-C,Ctrl-D,Ctrl-\ - expand environment variables (e.g.
$PWD,$PATH..) - expand exit status:
$? - expand wildcards:
* - control operators:
;,&&,||
-
readline(It is used where the shell accepts commands)
brew install readlineClone this repository.
git clone https://github.com/JIA0010/minishell.gitChange directory to this repository.
cd minishellCompile to create an executable file: minishell.
makeExecute.
./minishell

