From dd10f34b75d488cb432bd0cad49900f9dd0f652b Mon Sep 17 00:00:00 2001 From: hugogogo Date: Wed, 15 Dec 2021 11:09:18 +0100 Subject: [PATCH] correction erreur lecture backslash --- unitests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unitests.sh b/unitests.sh index 15ecb41..57499a5 100644 --- a/unitests.sh +++ b/unitests.sh @@ -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" ]