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

Re: t0008 test fails with ksh

From
Junio C Hamano <gitster@pobox.com>
Date
May 20, 2016, 16:03 UTC
Message-ID
<xmqqr3cwg1ik.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160512182055.GB13886@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
>   ... However,
>   the double-quote character ( '"' ) shall not be treated specially
>   within a here-document, except when the double-quote appears within
>   "$()", "``", or "${}".
>
> So OK, that sounds like ksh is doing the right thing. But what's that
> "specially" in the last sentence?

I would say: Just like \X is passed thru as-is without losing \, \" is passed thru without losing \, because " is not special, just like X is not special.

> Anyway, it doesn't really matter what the standard says. We can spell
> this in a less ambiguous way, and it does not hurt too much to do so.
Yes.
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “t0008 test fails with ksh”
  1. Armin KunaschikMay 12, 2016
  2. Jeff KingMay 12, 2016
  3. Junio C HamanoMay 20, 2016
  4. Jeff KingMay 22, 2016

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.