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

Re: $PATH pollution and t9902-completion.sh

From
Jeff King <peff@peff.net>
Date
Dec 20, 2012, 20:01 UTC
Message-ID
<20121220200109.GC21785@sigill.intra.peff.net>
In-Reply-To
<7vobho4hxa.fsf@alter.siamese.dyndns.org>
On Thu, Dec 20, 2012 at 11:55:45AM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> The beginning of such a change may look like the attached patch.
> [...]
> +test_fully_contains () {
> +	sort "$1" >expect.sorted &&
> +	sort "$2" >actual.sorted &&
> +	test $(comm -23 expect.sorted actual.sorted | wc -l) = 0
> +}

I like the direction. I suspect test_fully_contains could be used in a lot of other places, too.

-Peff
Previous: Junio C HamanoNext: Torsten Bögershausen
Message 7 of 10 in “$PATH pollution and t9902-completion.sh”
  1. Adam SpiersDec 17, 2012
  2. Jeff KingDec 20, 2012
  3. Adam SpiersDec 20, 2012
  4. Torsten BögershausenDec 20, 2012
  5. Junio C HamanoDec 20, 2012
  6. Junio C HamanoDec 20, 2012
  7. Jeff KingDec 20, 2012
  8. Torsten BögershausenDec 20, 2012
  9. Junio C HamanoDec 20, 2012
  10. Jeff KingDec 20, 2012

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.