htgop

Optical properties of a gas mixture
git clone git://git.meso-star.fr/htgop.git
Log | Files | Refs | README | LICENSE

commit 24b95b0dd312d6bcf2e564ecf11966b278064341
parent 96a9716537e8709085b4e51a6d1ca6537bbe011a
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 30 Oct 2023 12:31:52 +0100

Upd the escape sequence "make test" messages

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:
Mmake.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/make.sh b/make.sh @@ -34,9 +34,9 @@ check() printf "%s " "${prog}" if ./"${prog}" "$@" > /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 2> /dev/null }