commit 36e2916dc34a4d37c7c8f74768e04534a24cb6c4
parent 6236a94a6ffb5916a3cbda03ab6505174ee4f946
Author: vaplv <vaplv@free.fr>
Date: Wed, 18 Oct 2023 09:52:21 +0200
Updating the escape sequence in messages displayed by "make test
Some shells (e.g. dash) don't support the '\e' character in printf: the
escape sequence is simply ignored. So we've replaced '\e' with '\033'
in the printf used to display colored messages in "make test". This
should work as expected in all shells.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/make.sh b/make.sh
@@ -32,9 +32,9 @@ run_test()
printf "%s " "${test}"
if ./"${test}" > /dev/null 2>&1; then
- printf "\e[1;32mOK\e[m\n"
+ printf "\033[1;32mOK\033[m\n"
else
- printf "\e[1;31mError\e[m\n"
+ printf "\033[1;31mError\033[m\n"
fi
done 2> /dev/null
}