Subject: Re: bug#30105: Additional "grep" parameter to change the exit code from 1 to 0, even if grep doesn't find pattern
From: Paul Eggert <[email-masked]>
To: Vasyl Vavrychuk <[email-masked]>
Cc: [email-masked]
Date: Sun, 14 Jan 2018 09:16:41 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Vasyl Vavrychuk wrote:
> Actually I use grep in pipe with
> 
>    set -eo pipefail
> 
> but still there I can do
> 
>    ... | grep exrp || test $? -lt 2 | ...
> 
> Thanks for suggestion.

You're welcome. You'll need to parenthesize of course. Closing the bug.