correction erreur lecture backslash

This commit is contained in:
hugogogo
2021-12-15 11:09:18 +01:00
parent 1b8c0aaea9
commit dd10f34b75

View File

@@ -61,7 +61,7 @@ DEFAULT_DIR="./tests/defaults/"
{
FILES_AFTER="$(ls .)"
DIFF_FILES="$(comm -3 <(echo "$FILES_BEFORE") <(echo "$FILES_AFTER"))"
while read line_diff
while read -r line_diff
do
rm -rf "$line_diff"
done < <(echo "$DIFF_FILES")
@@ -183,7 +183,7 @@ DEFAULT_DIR="./tests/defaults/"
echo -en $B_YELLOW "\n\n\nfile: $filename\n" $ENDCO >>$BASH_LOG
echo -en $B_YELLOW "\n\n\nfile: $filename\n" $ENDCO >>$MINISHELL_LOG
# do the loop
while read line
while read -r line
do
(( LINE_NUMBER++ ))
if [ -n "$line" ]