Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 18, 2018, 01:55 UTC
- Message-ID
- <xmqqy3bz4lik.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20180917221603.GA3621@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
>> -cat >expect_cookies.txt <<EOF >> +cat <<EOF | sort >expect_cookies.txt > > This can be spelled: > > sort >expect_cookies.txt <<EOF > > can't it? Then we do not even incur the extra process. :)
Yeah, true. Running cat only to feed a pipe with contents of a single file or the here-doc is an anti-pattern.