https://github.com/oc8/42-minishell
42 | Rewrite a simple shell
https://github.com/oc8/42-minishell
42 c minishell shell
Last synced: 3 months ago
JSON representation
42 | Rewrite a simple shell
- Host: GitHub
- URL: https://github.com/oc8/42-minishell
- Owner: oc8
- Created: 2021-04-30T12:16:44.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T21:57:49.000Z (over 2 years ago)
- Last Synced: 2025-01-26T07:26:00.002Z (4 months ago)
- Topics: 42, c, minishell, shell
- Language: C
- Homepage:
- Size: 235 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minishell
Minishell is a project from 42 school consisting in coding a simple Unix shell in C.
## Features
Minishell must be able to handle the following basic commands:
- Execution of external programs (for example, `ls`, `cat`, `echo`, etc.) with their arguments
- Handling of redirection operators (`>`, `>>`, `<`, `|`)
- Execution of commands in the background with `&`
- Handling of builtins `cd`, `echo`, `setenv`, `unsetenv`, `env`, `exit`Minishell must also handle the `SIGINT` (Ctrl + C) and `SIGQUIT` (Ctrl + \\) signal handlers.
## Usage
To use Minishell, compile the program using the `make` command and then run it with `./minishell`. You can then enter commands in the shell as in any other Unix shell.