git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Jeff KingNext: Junio C Hamano
Message 7 of 8 in “t5551-http-fetch-smart.sh: sort cookies before comparing”
  1. t5551-http-fetch-smart.sh: sort cookies before comparingTodd Zullinger, Sep 7, 2018
  2. Jeff KingSep 7, 2018
  3. Todd ZullingerSep 8, 2018
  4. Jeff KingSep 8, 2018
  5. Junio C HamanoSep 17, 2018
  6. Jeff KingSep 17, 2018
  7. Junio C HamanoSep 18, 2018
  8. Junio C HamanoSep 11, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.