Browse Source

[enh] double redirections: enhance unit tests.

Moul 2 years ago
parent
commit
cbc4b23842
1 changed files with 4 additions and 3 deletions
  1. 4 3
      tests.sh

+ 4 - 3
tests.sh

@@ -82,10 +82,11 @@ tests=(
 #"cat << toto\nnrstai\nrsnati\nairnst\ntoto" # double gauche avec autre string de fin
 
 ## Double redirection
-"cat < $tmpf > /tmp/txt; cat /tmp/txt"
-"cat < $tmpf >> /tmp/txt; cat /tmp/txt"
+"cat < $tmpf > /tmp/txt; cat /tmp/txt; rm /tmp/txt"
+"cat < $tmpf >> /tmp/txt; cat /tmp/txt; rm /tmp/txt"
 ### Same file name
-"cat < $tmpf >> $tmpf"
+"cat < $tmpf > $tmpf"
+#"cat < $tmpf >> $tmpf" # This one is non stop adding many time which stopped the script
 
 ## Redirections avec fd de sortie spécifié
 ### Redirection closed