Re: [PATCH] config.c: fix regression for core.safecrlf false
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jun 6, 2018, 17:17 UTC
- Message-ID
- <CAPig+cRyv=JuGo+OfULuvbLrqRxoYZyBZDrSJrt5F8YRwzNn6w@mail.gmail.com>
- In-Reply-To
- <CAPig+cSzJ=2Zz7jRNB7sK7FyZ+YwdAFseCTSDbM_m4E8K9WxHA@mail.gmail.com>
On Wed, Jun 6, 2018 at 1:15 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
> On Mon, Jun 4, 2018 at 4:17 PM, Anthony Sottile <asottile@umich.edu> wrote: >> + for w in I am all CRLF; do echo $w; done | append_cr >allcrlf && > > Simpler: printf "%s\n" I am all CRLF | append_cr >allcrlf &&
Or even simpler:
printf "%s\r\n" I am all CRLF >allcrlf &&