From: Patrick Steinhardt Date: Tue, 14 Apr 2026 07:23:18 GMT Subject: Re: [PATCH 08/12] t0008: silence error in subshell when using `grep -v` Message-ID: In-Reply-To: On Mon, Apr 13, 2026 at 10:28:00AM -0700, Junio C Hamano wrote: > Patrick Steinhardt 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