From 3c89304cdad9b8622ee43a86249a34c94f3f2988 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Wed, 15 Dec 2021 21:28:06 +0100 Subject: [PATCH] ajout fichier error qui recense les erreurs observees --- error.md | 16 ++++++++++++++++ tests/defaults/redirections.sh | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 error.md diff --git a/error.md b/error.md new file mode 100644 index 0000000..e165089 --- /dev/null +++ b/error.md @@ -0,0 +1,16 @@ +1. redirection et quotes expansion + + ``` + bash> echo "hello" > "file" + bash> ls + file + bash> + ``` + + ``` + minishell> echo "hello" > "file" + minishell> ls + '"file"' + minishell> + ``` +2. diff --git a/tests/defaults/redirections.sh b/tests/defaults/redirections.sh index 4f7dd2b..3961f64 100644 --- a/tests/defaults/redirections.sh +++ b/tests/defaults/redirections.sh @@ -131,12 +131,44 @@ ls < notworking.txt echo > doethet +ls +cat doethet + +echo hoi >> doethet "of niet" +ls +cat doethet + +echo clear > "doethet" +ls +cat doethet + +echo > doethet +echo hoi >> doethet "of niet" +ls +cat doethet + +echo > doethet +echo clear > "doethet" +ls +cat doethet + echo hoi >> doethet "of niet" echo clear > "doethet" +ls +cat doethet + +echo > doethet +echo hoi >> doethet "of niet" +echo clear > "doethet" +ls +cat doethet + echo test > working.txt echo > newfile.txt hardertest ls -cat doethet + +echo test > working.txt +echo > newfile.txt hardertest echo hallo >file1 >file2 cat file1 file2