37 lines
756 B
Markdown
37 lines
756 B
Markdown
# minishell
|
|
|
|
the result of a group project at 42 school, made by me and [BgNounours](https://github.com/BgNounours).
|
|
|
|
it's a very basic shell like sh or bash. it is not POSIX.
|
|
|
|
it supports:
|
|
- `>`, `<`, `>>`, `<<` redirections
|
|
- `|` pipes
|
|
- environment variables and $?
|
|
- some built-in commands
|
|
|
|
## compile and run
|
|
|
|
this project is for linux (it may also work on macOS i have no idea).
|
|
|
|
1. in your terminal, run `make -v`.
|
|
if you have a `command not found` error or equivalent, you will need to install `make`. on ubuntu / debian, run:
|
|
```sh
|
|
$ sudo apt install make
|
|
```
|
|
|
|
2. clone the repository and cd inside it:
|
|
```sh
|
|
$ git clone https://gitea.zaclys.com/frzysk/42_minishell
|
|
$ cd 42_minishell
|
|
```
|
|
|
|
3. build:
|
|
```sh
|
|
$ make
|
|
```
|
|
|
|
4. run:
|
|
```
|
|
$ ./minishell
|
|
```
|