bug-gzip
[Top][All Lists]
Advanced

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

Re: [PATCH] Terminate zgrep gracefully when a pipeline is interrupted by


From: Dmitry V. Levin
Subject: Re: [PATCH] Terminate zgrep gracefully when a pipeline is interrupted by a signal
Date: Wed, 3 Feb 2010 01:48:00 +0300

On Mon, Feb 01, 2010 at 08:00:20PM -0700, Eric Blake wrote:
> According to Dmitry V. Levin on 2/1/2010 3:35 PM:
> >     (eval "$grep" 4>&-; echo $? >&4) 3>&- | sed "$sed_script" >&3 4>&-
> > -      ) || r=2
> > -      exit $r
> > +      ) && exit $r
> > +      r=$?
> > +      test $r -gt 128 -a $r -le 143 && exit $r || exit 2
> 
> 'test x -a y' is not portable.  Use test x && test y.

OK, shall I repost the patch with these changes applied?


-- 
ldv

Attachment: pgpaNViRdIEob.pgp
Description: PGP signature


reply via email to

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