Subject: Re: [PATCH v5 1/2] cat-file: add mailmap support to -s option

From: Junio C Hamano <[email-masked]>
Date: Mon, 21 Nov 2022 18:45:09 +0900

Christian Couder <[email-masked]> writes:

> Yeah, right. So I would suggest the following:
>
>      git cat-file commit HEAD >commit.out &&
>      wc -c <commit.out | sed -e 's/^ *//' >expect &&

You should not use sed for things like that.

	echo $(wc -c <file)

should suffice to strip away unwanted $IFS around the output
(Note. lack of any quotihg around $() is the key).