From: Ævar Arnfjörð Bjarmason Date: Tue, 22 Feb 2022 14:24:31 GMT Subject: Re: [PATCH 0/2] microproject: avoid using pipes in test Message-ID: <220222.86pmnf6ket.gmgdl@evledraar.gmail.com> In-Reply-To: <20220222114313.14921-1-shivam828787@gmail.com> On Tue, Feb 22 2022, Shubham Mishra wrote: > pipes doesn't care about error codes and ignore them thus we should not use them in tests. Aside from what Derrick Stolee mentioned in his feedback, all of which I agree with. I think these changes are good, but it's not the case that we try to avoid using pipes at all in our tests. It's often a hassle, and just not worth it, e.g.: oid=$(echo foo | git hash-object --stdin -w) && Sure, we can make that: echo foo >in && oid=$(git hash-object --stdin -w