Minishell is a project developed as part of the 42 curriculum. It aims to create a simplified shell that can interpret and execute basic commands, handle environment variables, and implement some built-in functionalities.
Installation To install and run the Minishell project, follow these steps:
Clone the repository: 'git clone https://github.com/0xtoowan/minishell.git'
Navigate to the project directory: 'cd minishell'
Compile the source code: 'make'
Run Minishell: './minishell'
Usage Once you have started Minishell, you can enter commands and execute them. The shell supports various features and built-in commands, including but not limited to:
Running external commands by specifying the command's name.
Handling environment variables using the syntax
shell Copy code $ ./minishell minishell$ echo Hello, World! Hello, World! minishell$ ls -l total 8 -rwxr-xr-x 1 user staff 16376 May 20 12:00 minishell minishell$ cd .. minishell$ pwd /Users/user minishell$ exit $ Contributing Contributions to the Minishell project are welcome. If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
Parsing
1. readline
2. pipes
3. Command and arguments
4. Protections
5. The <,>, >> redirects
6. Environment variables
7. The separations
8. history
The execution
1. Redirects
2. Env, export, unset
3. Exit and $?
4. Pipes / signals / process links
Executer | Parser |
- 42 Intra profile: oel-houm | - 42 Intra profile: wbouwach |
- Github Profile: click here ➚ | - Github Profile: click here ➚ |