Project description:
A simplified shell program that follows the rules of bash.
In collaboration with YUSHUA@github
Functionalities:
- Shows a prompt when waiting for a new command
- Search and launch the right executable (based on the PATH variable or the relative or absolute path), like in bash.
- Shell built-ins:
- echo with option '-n'
- cd with only a relative or absolute path
- pwd without any options
- export without any options
- unset without any options
- env without any options and any arguments
- exit without any options.
- ; in the command should separate commands like in bash
- ' and " should work like in bash except for multiline commands.
- Redirections > >> < works like in bash except for file descriptor aggregation.
- Pipes | work like in bash
- environment variables ($ followed by characters) work like in bash
- $? works like in bash
- ctrl-C, ctrl-D, ctrl-\ have the same results as in bash.
Clone the project with git clone:
git clone [repo_link] [folder_name]
Create the executable:
make
Run the executable:
./minishell
A prompt will show up that will allow you to use minishell as your current g_shell.