https://github.com/nicolasgasco/42_minishell
42 group project. A simple, Bash-inspired shell. Done by @adel-cor and @ngasco.
https://github.com/nicolasgasco/42_minishell
Last synced: 7 months ago
JSON representation
42 group project. A simple, Bash-inspired shell. Done by @adel-cor and @ngasco.
- Host: GitHub
- URL: https://github.com/nicolasgasco/42_minishell
- Owner: nicolasgasco
- Created: 2022-01-23T09:16:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T11:01:57.000Z (over 2 years ago)
- Last Synced: 2025-01-15T01:44:29.020Z (9 months ago)
- Language: C
- Homepage:
- Size: 446 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minishell
> The objective of this project is for you to create a simple shell. Yes, your little bash or zsh. You will learn a lot about processes and file descriptors.This is a group project done with [@adelcor](https://github.com/adelcor).
The shell must:
- interpret quotes correctly
- expand environment variables, including `$?`
- detect syntax errors
- have a prompt with a working history
- execute builtins, such as `echo`, `cd`, `pwd`, `export`, `unset`, `env`, and `exit`
- interpret simple and double quotes
- execute redirections (`<`, `>`, `<<`, `>>`)
- execute pipes
- Catch `ctrl-C`, `ctrl-D`, and `ctrl-\` signals## Run the program
### Unix
Clone the repository and open it
```
# You might need to run this on MacOs
brew install readlinemake
./minishell
```## Examples
- \>\> redirection
- Here doc

- Echo

- Export and unset

- Export and unset

- Pipe examples
