42's project: write a mini... shell.
- readline library
Ubuntu/Debian:
apt install libreadline-dev
19's Macs:
brew install readline
Obs: You will also need to include Homebrew's directories in the list of places the compiler will be looking for includes and library files. Just uncomment the two lines as indicated in the Makefile.
cd
into this repo
compile project: make
launch program: ./minishell
- search and launch executable based on the PATH variable
- redirections: <, << (here document), > and >>
- pipes ( | )
- environmental variables ($VAR_NAME)
- "?" special variable ($?)
- history of commands (arrows up and down)
- parsing of text between ' and " like bash
- ctrl-C, ctrl-D and ctrl-\ : same as bash
- builtins:
- echo
- cd
- pwd
- export
- unset
- env
- exit
- ctrl - \ not working as it should on 19's Macs.