Re: [PATCH 08/12] t0008: silence error in subshell when using `grep -v`
On Mon, Apr 13, 2026 at 10:28:00AM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> Patrick Steinhardt <ps@pks.im> writes:
>
> > In t0008 we use `grep -v` in a subshell, but expect that this command
> > will sometimes not match anything. This would cause grep(1) to return an
> > error code, but given that we don't run with `set -e` we swallow this
> > error.
> >
> > We're about to enable `set -e`. Prepare for this by ignoring any errors.
>
> It is curious that true is explicitly spelled out, unlike the
> earlier steps in the series that used ":" in "|| :".
That's fair. Will adapt.
Patrick