Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/anagmrebelo/42_minishell
- Owner: anagmrebelo
- Created: 2022-09-16T12:02:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T17:52:19.000Z (over 1 year ago)
- Last Synced: 2023-08-03T12:59:41.808Z (over 1 year ago)
- Topics: 42, common-core
- Language: C
- Homepage:
- Size: 6.94 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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```