From: Junio C Hamano Date: Mon, 21 Nov 2022 07:27:48 GMT Subject: Re: [PATCH v5 1/2] cat-file: add mailmap support to -s option Message-ID: In-Reply-To: <20221120074852.121346-2-siddharthasthana31@gmail.com> Siddharth Asthana writes: > +test_expect_success 'git cat-file -s returns correct size with --use-mailmap' ' > + test_when_finished "rm .mailmap" && > + cat >.mailmap <<-\EOF && > + C O Mitter Orig > + EOF > + git cat-file commit HEAD | wc -c >expect && > + git cat-file --use-mailmap commit HEAD | wc -c >>expect && > + git cat-file -s HEAD >actual && > + git cat-file --use-mailmap -s HEAD >>actual && Doesn't this break under macOS where wc output tends to be padded with SP on the right? We used to often see test breakage when a carelessly written test like test "$(wc -l