Thanks to Minishell, you’ll be able to travel through time and come back to problems
people faced when Windows didn’t exist.
We have restrictions which functions we're allowed to use (see subject pdf). In addition we have to format our code according to the schools Norm
Full subject: minishell.pdf
- You might have to install the readline libary with
brew install readline
- To create the execuatable run
make
- To start the programm:
./minishell
-Own functions:
cd, pwd, env, exit, unset, export, echo (all other bash commands are implemented with execv)
-A working history:
arrow key up/down
-Single and double Quotes
-Redirections:
< (input), > (trunc), >> (append) and << (heredoc)
-Pipes:
single and multible pipe(s), combination with redirections possible
-Environment Variables
-Signals:
ctrl-C, ctrl-D and ctrl-\
1. Lexer: tokenization of the input string e.g. "CMD, ARGUMENT, PIPE, CMD, ARGUMENT, TRUNC, FILE"
2. Parser: filtering parser errors and quotes, redirects output for pipes and redirections, etc.
3. Executor: executes commands with arguments