[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.6.2-19-gde88933
From: |
Jim Meyering |
Subject: |
grep branch, master, updated. v2.6.2-19-gde88933 |
Date: |
Thu, 01 Apr 2010 09:38:26 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via de88933b28523882e38ca5332791cb55d85ce9ee (commit)
from 03d8cfa74e36ad2e8daf6b412533aa37cc099363 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=de88933b28523882e38ca5332791cb55d85ce9ee
commit de88933b28523882e38ca5332791cb55d85ce9ee
Author: Jim Meyering <address@hidden>
Date: Thu Apr 1 11:38:04 2010 +0200
tests: use printf, not echo -n, echo -e, or any combination
* tests/fedora: Using printf is more portable.
diff --git a/tests/fedora b/tests/fedora
index a162930..20c0dc1 100644
--- a/tests/fedora
+++ b/tests/fedora
@@ -19,7 +19,7 @@ ok () { echo -e "${G}OK${D}"; }
fail () { echo -e "${R}FAIL${D} (See ${U})"; failures=1; }
U=https://bugzilla.redhat.com/show_bug.cgi?id=116909
-echo -n "fgrep false negatives: "
+printf "fgrep false negatives: "
cat > 116909.list <<EOF
a
b
@@ -37,41 +37,41 @@ EOF
grep -F -w -f 116909.list 116909.in | diff - 116909.out && ok || fail
U=https://bugzilla.redhat.com/show_bug.cgi?id=123362
-echo -n "bad handling of brackets in UTF-8: "
+printf 'bad handling of brackets in UTF-8: '
echo Y > 123362.out
echo Y | LC_ALL=de_DE.UTF-8 grep -i '[y,Y]' | diff - 123362.out && ok || fail
U=https://bugzilla.redhat.com/show_bug.cgi?id=112869
-echo -n "crash with \W: "
+printf 'crash with \\W: '
echo '<form>' > 112869.out
LANG=it_IT grep -iE '\Wform\W' 112869.out | diff - 112869.out && ok || fail
if ( timeout --version ) > /dev/null 2>&1; then
U=https://bugzilla.redhat.com/show_bug.cgi?id=189580
- echo -n "grep -D skip opening a special file: "
+ printf 'grep -D skip opening a special file: '
timeout 10 grep -D skip foo /dev/zero
test $? = 124 && fail || ok
U=https://bugzilla.redhat.com/show_bug.cgi?id=169524
- echo -n "grep -Fw looping infinitely: "
+ printf 'grep -Fw looping infinitely: '
echo foobar | timeout 10 grep -Fw ""
test $? = 124 && fail || ok
U=https://bugzilla.redhat.com/show_bug.cgi?id=140781
- echo -n "fgrep hangs on binary files: "
+ printf 'fgrep hangs on binary files: '
timeout 10 grep -F grep "$abs_top_builddir/src/grep" >/dev/null
test $? = 124 && fail || ok
fi
U=https://bugzilla.redhat.com/show_bug.cgi?id=161700
-echo -n "grep -Fw fails to match anything: "
+printf 'grep -Fw fails to match anything: '
echo test > 161700.out
grep -Fw test 161700.out | diff - 161700.out && ok || fail
U=https://bugzilla.redhat.com/show_bug.cgi?id=179698
-echo -n "grep -w broken in non-utf8 multibyte locales: "
+printf 'grep -w broken in non-utf8 multibyte locales: '
echo za a > 179698.out
LANG=ja_JP.eucjp grep -w a 179698.out | diff - 179698.out && ok || fail
@@ -79,22 +79,22 @@ LANG=ja_JP.eucjp grep -w a 179698.out | diff - 179698.out
&& ok || fail
echo a |grep -P a >/dev/null || Exit $failures
U=https://bugzilla.redhat.com/show_bug.cgi?id=171379
-echo -n "grep -P crashes on whitespace lines: "
+printf 'grep -P crashes on whitespace lines: '
echo ' ' > 171379.out
grep -P '^\s+$' 171379.out | diff - 171379.out && ok || fail
U=https://bugzilla.redhat.com/show_bug.cgi?id=204255
-echo -n "-e '' does not work if not a first parameter: "
+printf '%s' "-e '' does not work if not a first parameter: "
echo test | grep -e 'HighlightThis' -e '' > 204255.first
echo test | grep -e '' -e 'HighlightThis' > 204255.second
diff 204255.first 204255.second && ok || fail
U=https://bugzilla.redhat.com/show_bug.cgi?id=324781
-echo -n "bad handling of line breaks with grep -P #1: "
-echo -ne "a\na" | grep -P '[^a]' >/dev/null && fail || ok
+printf 'bad handling of line breaks with grep -P #1: '
+printf 'a\na' | grep -P '[^a]' >/dev/null && fail || ok
# This is mostly a check that fix for above doesn't break -P further
-echo -n "bad handling of line breaks with grep -P #2: "
-echo -ne "a\na" | grep -P '[^b].[^b]' >/dev/null && fail || ok
+printf '%s' "bad handling of line breaks with grep -P #2: "
+printf 'a\na' | grep -P '[^b].[^b]' >/dev/null && fail || ok
Exit $failures
-----------------------------------------------------------------------
Summary of changes:
tests/fedora | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.6.2-19-gde88933,
Jim Meyering <=