This project is about creating a simple shell.
We need to implement a bash that handle simple commands like
- redirections
output (ls > file)append (echo Hail >> file)input (< Makefile cat)heredoc (cat << delimiter_to_stop)
- pipes
cat Makefile | grep CFLAGS | tr ' ' '#' | wc
- command history
- environment variables
- signals
ctrl-Cctrl-Dctrl-\
- $? (expand to the exit status of the most recently executed foreground pipeline)
- builtins
echo with option -ncd with only a relative or absolute pathpwd with no optionsexport with no optionsunset with no optionsenv with no options or argumentsexit with no options
- Our program has to implement
&& and || with parenthesis for priorities.Wildcards * should work for the current working directory.
# && and || examples
echo Hello && echo Bye
wrong_command || echo right_command# Wildcard example
ls *
cat *cgit clone git@github.com:vinicius-f-pereira/minishell.git
Use make or make bonus and follow instructions Here