* tests/nolimips-check: Here, as options to `echo' are not
portable.
---
ChangeLog | 7 +++++++
tests/nolimips-check | 10 +++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 46fe727..404b540 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-19 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Replace all uses of `echo' with options by `printf'.
+
+ * tests/nolimips-check: Here, as options to `echo' are not
+ portable.
+
2009-11-10 Roland Levillain <roland(a)lrde.epita.fr>
Update bootstrap w.r.t. Gnulib.
diff --git a/tests/nolimips-check b/tests/nolimips-check
index 5121503..e20c2fb 100755
--- a/tests/nolimips-check
+++ b/tests/nolimips-check
@@ -9,14 +9,14 @@ shift 2
fail()
{
- echo -e -n "\033[74G"
- echo -e "[\033[31;1mFAIL\033[0m]"
+ printf "\033[74G"
+ printf "[\033[31;1mFAIL\033[0m]\n"
exit 1
}
pass()
{
- echo -e -n "\033[74G"
- echo -e "[\033[32;1mPASS\033[0m]"
+ printf "\033[74G"
+ printf "[\033[32;1mPASS\033[0m]\n"
}
BUILDDIR=$top_builddir/tests/$MODULE
@@ -31,7 +31,7 @@ for STDASM in $SRCDIR/*.s; do
STDIN=/dev/null
fi
- echo -n "> Testing $ASM:"
+ printf "> Testing $ASM:"
$NOLIMIPS $NOLFLAGS $STDASM <$STDIN >$STDOUT 2>&1
--
1.7.2.5