summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-04-01 12:17:09 +0200
committerJim Meyering <meyering@redhat.com>2010-04-01 12:19:53 +0200
commitcb3fb19a4bf5e07cc0813e1fca7ae20e51e90206 (patch)
tree42986215f2800fa05010675edf613b3d41de34f1 /tests
parentf4d75a8bf63eb2f3b884768e0fefd3f4dd08107b (diff)
downloadgrep-cb3fb19a4bf5e07cc0813e1fca7ae20e51e90206.tar.gz
tests: remove all unportable uses of echo
* src/main.c: Use printf rather than echo -ne in a comment. * tests/fedora: Use printf (not echo) also in ok/fail functions. * cfg.mk (sc_prohibit_echo_minus_en): New rule, to prohibit any future introduction.
Diffstat (limited to 'tests')
-rw-r--r--tests/fedora4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fedora b/tests/fedora
index 20c0dc14..336d913c 100644
--- a/tests/fedora
+++ b/tests/fedora
@@ -15,8 +15,8 @@ then
D='\033[0m'
fi
-ok () { echo -e "${G}OK${D}"; }
-fail () { echo -e "${R}FAIL${D} (See ${U})"; failures=1; }
+ok () { printf "${G}OK${D}"; }
+fail () { printf "${R}FAIL${D} (See ${U})"; failures=1; }
U=https://bugzilla.redhat.com/show_bug.cgi?id=116909
printf "fgrep false negatives: "