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

Re: [PATCH v2] tests: avoid syntax triggering old dash bug

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Feb 13, 2019, 21:48 UTC
Message-ID
<20190213214844.GI1622@szeder.dev>
In-Reply-To
<20190213115951.12096-1-avarab@gmail.com>
On Wed, Feb 13, 2019 at 12:59:51PM +0100, Ævar Arnfjörð Bjarmason wrote:
Show 6 quoted lines
> Avoid a bug in dash that's been fixed ever since its
> ec2c84d ("[PARSER] Fix clobbering of checkkwd", 2011-03-15)[1] first
> released with dash v0.5.7 in July 2011. This failing test was
> introduced in 5f9674243d ("config: add --expiry-date", 2017-11-18).
> 
> This fixes 1/2 tests failing on Debian Lenny & Squeeze. The other

Do I understand this "1/2" right? There are two tests failing on Lenny and Squeeze, and this fixes one of those bugs?

Show 15 quoted lines
> failure is due to 1b42f45255 ("git-svn: apply "svn.pathnameencoding"
> before URL encoding", 2016-02-09).
> 
> The dash bug is triggered by this test because the heredoc contains a
> command embedded in "$()" with a "{}" block coming right after
> it. Refactoring the "$()" to e.g. be a variable that was set earlier
> will also work around it, but let's instead break up the "EOF" and the
> "{}".
> 
> An earlier version of this patch[2] mitigated the issue by breaking
> the "$()" out of the "{}" block, that worked, but just because it
> broke up the "EOF" and "{}" block. Putting e.g. "echo &&" between the
> two would also work.
> 
> 1. https://git.kernel.org/pub/scm/utils/dash/dash.git/
Could you please link directly to the commit fixing that issue?
  https://git.kernel.org/pub/scm/utils/dash/dash.git/commit/?id=ec2c84d3c4dba4b74440d72bdd1de416a9acd2a9
> 2. https://public-inbox.org/git/20181127164253.9832-1-avarab@gmail.com/
> 
> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 7 of 10 in “tests: avoid syntax triggering old dash bug”
  1. tests: avoid syntax triggering old dash bugÆvar Arnfjörð Bjarmason, Nov 27, 2018
  2. Eric SunshineNov 27, 2018
  3. Ævar Arnfjörð BjarmasonNov 27, 2018
  4. Junio C HamanoNov 28, 2018
  5. tests: avoid syntax triggering old dash bugÆvar Arnfjörð Bjarmason, Feb 13, 2019
  6. Junio C HamanoFeb 13, 2019
  7. SZEDER GáborFeb 13, 2019
  8. Ævar Arnfjörð BjarmasonFeb 14, 2019
  9. brian m. carlsonNov 28, 2018
  10. Torsten BögershausenNov 28, 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.