From ada1b5081a04bbe3c2304422fb63301abeeabfaf Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 6 Nov 2020 13:47:18 +0100 Subject: Added environment variable explaination in README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index dc37b49..e8c01d5 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,23 @@ This allows you to set the prompt to whatever you want. This test works with python >= 3.5. +### Environement variables + +My test only gives the `PATH=minishell_test/bin` and `TERM=xterm-256color` variables to your minishell. +**Please check that your project still work with those settings before messaging me on Slack or creating an issue**. + +You can test this quickly in a python script: + +```python +import subprocess +p = subprocess.run( + ["./minishell", "-c", ""], + capture_output=True, + env={"PATH": "minishell_test/bin", "TERM": "xterm-256color"} +) +print(p.stdout.decode()) +``` + ## Bonus Their is 3 different method to enable the bonus tests: -- cgit