grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v2.10-73-ga25effe


From: Paul Eggert
Subject: grep branch, master, updated. v2.10-73-ga25effe
Date: Wed, 08 Feb 2012 19:18: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  a25effe4c8ffcc34a1698459f5a1e43df1e11c31 (commit)
      from  e1ee9d96cc24a865016050aaae34178aa85f2437 (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=a25effe4c8ffcc34a1698459f5a1e43df1e11c31


commit a25effe4c8ffcc34a1698459f5a1e43df1e11c31
Author: Paul Eggert <address@hidden>
Date:   Wed Feb 8 11:17:35 2012 -0800

    tests: work portably even if SIGPIPE is ignored
    
    * tests/epipe: Don't rely on "trap - PIPE"; that's not portable.
    Problem reported by Eric Blake in
    <http://lists.gnu.org/archive/html/bug-grep/2012-02/msg00017.html>.
    Also, use "ls -al" rather than "echo", in case "echo" is done by a
    buggy shell that ignores write errors.  And close grep's fd 3, as
    a sanity check.

diff --git a/tests/epipe b/tests/epipe
index f9cb3f6..1d9ef05 100755
--- a/tests/epipe
+++ b/tests/epipe
@@ -6,8 +6,8 @@
 
 if
    (
-     (trap - PIPE; while echo x; do :; done) 3>&- |
-     (trap '' PIPE; exec grep x 2>&3) |
+     while ls -al; do :; done 3>&- |
+     (trap '' PIPE; exec grep . 2>&3 3>&-) |
      :
    ) 3>&1 | (
      read line1 && echo >&2 "$line1" &&

-----------------------------------------------------------------------

Summary of changes:
 tests/epipe |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]