|
From: | Paul Eggert |
Subject: | bug#30105: Additional "grep" parameter to change the exit code from 1 to 0, even if grep doesn't find pattern |
Date: | Sun, 14 Jan 2018 09:16:41 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |