aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 1da4fc9476efac46c5b1ee5e084b1756f171b4b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# minishell test

Test for the minishell project of school 42.

# Usage

## Test compatibility

Your executable **must** support the `-c` option which allow to pass command as string.

example:

```
> bash -c 'echo bonjour je suis'
bonjour je suis
> ./minishell -c 'echo bonjour je suis'
bonjour je suis

> bash -c 'ls'
README.md test.sh
> ./minishell -c 'ls'
README.md test.sh
```

The reasons for this:
1. You're free to set the prompt to whatever you want
2. Termcaps would be a nightmare to test

## Run

`> ./main.py`

# Configuration

The default configuration can be changed in <config.py>