Subject: Re: [PATCH 01/12] t: prepare `test_match_signal ()` calls for `set -e`

From: Junio C Hamano <[email-masked]>
Date: Tue, 14 Apr 2026 10:49:00 -0700

Patrick Steinhardt <[email-masked]> writes:

> How about the below patch? It's a mouthful, but the intent is quite
> explicit and it's overall not too bad, if you ask me.
>
>  test_expect_success !MINGW 'a constipated git dies with SIGPIPE' '
> -	OUT=$( ((large_git || echo $? 1>&3) | :) 3>&1 ) &&
> +	OUT=$( ((large_git && echo 0 1>&3 || echo $? 1>&3) | :) 3>&1 ) &&

Ah, I like it slightly better than "st=0; large_git || st=$?"
pattern, but yes, it is mouthful.