diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-01 12:17:09 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-01 12:19:53 +0200 |
commit | cb3fb19a4bf5e07cc0813e1fca7ae20e51e90206 (patch) | |
tree | 42986215f2800fa05010675edf613b3d41de34f1 /tests | |
parent | f4d75a8bf63eb2f3b884768e0fefd3f4dd08107b (diff) | |
download | grep-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/fedora | 4 |
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: " |