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

Re: mac test failure -- test 3301

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 11, 2014, 15:58 UTC
Message-ID
<xmqqmw7x7mpw.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CALKQrgexnrCy-P6yTZB+U0--5peaTys9KqB+KGKqbAuyLA=NqA@mail.gmail.com>
Johan Herland <johan@herland.net> writes:
> Ah, thanks!
>
> I thought that quoting command output was a good idea in general. Am I
> wrong, or is this just one exception to an otherwise good guideline?
It is not a good practice to blindly follow any guideline ;-).

When you anticipate that different platforms throw you unnecessary spaces around a single token you expect to see, not quoting is obviously the right thing. If you are unsure if the comamand gives you one or multiple tokens, you obviously risk the output getting split by not quoting.

Previous: Johan Herland
Message 9 of 9 in “mac test failure -- test 3301”
  1. Michael BlumeNov 11, 2014
  2. Michael BlumeNov 11, 2014
  3. Michael BlumeNov 11, 2014
  4. Eric SunshineNov 11, 2014
  5. Johan HerlandNov 11, 2014
  6. Michael BlumeNov 11, 2014
  7. Jeff KingNov 11, 2014
  8. Johan HerlandNov 11, 2014
  9. Junio C HamanoNov 11, 2014

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.