Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anagmrebelo/42_minishell

Recreate a simple shell
https://github.com/anagmrebelo/42_minishell

42 common-core

Last synced: 19 days ago
JSON representation

Recreate a simple shell

Awesome Lists containing this project

README

        

# minishell
![ezgif com-video-to-gif-3](https://github.com/anagmrebelo/42_minishell/assets/66007323/23428027-79e5-4863-9e34-61f9cbba3df0)

## Project description:
Recreate a simple shell - group project with [Micaela Rollo](https://github.com/micarollo)

Shell functionalities:
- Displays a prompt when waiting for a new command
- Has a working history
- Searches and launches the right executable
- Handles ’ which should prevent the shell from interpreting the meta- characters in the quoted sequence
- Handles " which should prevent the shell from interpreting the meta- characters in the quoted sequence except for $
- Implements redirections
- Implements pipes
- Handles environment variable which should expand to their values
- Handles $? which should expand to the exit status of the most recently executed foreground pipeline
- Handles ctrl-C, ctrl-D and ctrl-\ which should behave like in bash
- Has implemented builtins:
- echo with option -n
- cd with only a relative or absolute path\
- pwd with no options
- export with no options
- unset with no options
- env with no options or arguments
- exit with no options

## Grade
100%

## Usage

```make```\
```./minishell```