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