Re: [PATCH 2/1] t3920: support CR-eating grep
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 5, 2022, 01:08 UTC
- Message-ID
- <xmqqo7sisllv.fsf@gitster.g>
- In-Reply-To
- <cbe88abc-c1fb-cb50-6057-47ff27f7a12d@web.de>
René Scharfe <l.s.r@web.de> writes:
> grep 'Subject' .crlf-orig-$branch.txt | tr '\n' ' ' | sed 's/[ ]*$//' | tr -d '\n' >.crlf-subject-$branch.txt &&
> - { grep 'Body' .crlf-message-$branch.txt >.crlf-body-$branch.txt || true; } &&
> + grep 'Body' .crlf-orig-$branch.txt | append_cr >.crlf-body-$branch.txt &&Doesn't append_cr unconditionally adds CR at the end? Do we need to touch this test again when "grep" gets fixed on the platform?