Dmitry V. Levin <[email protected]> ha escrit:

> Now an innocent code like "tar -tf $file |grep -q $pattern" produces
> misleading error output, and the only way to avoid it is to suppress
> tar's stderr completely. :(

Yes, you are definitely right. Thanks for pointing that out. Please
apply the attached patch.

Regards,
Sergey

diff --git a/src/tar.c b/src/tar.c
index e3fdf7b..b127963 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -2570,8 +2570,6 @@ main (int argc, char **argv)
 
   obstack_init (&argv_stk);
 
-  /* Ensure default behavior for some signals */
-  signal (SIGPIPE, SIG_IGN);
   /* System V fork+wait does not work if SIGCHLD is ignored.  */
   signal (SIGCHLD, SIG_DFL);
 

Reply via email to