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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 13, 2019, 21:43 UTC
Message-ID
<xmqqd0nvbbzz.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190213115951.12096-1-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
> 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).

Thanks for not forgetting an year-old topic. The offending commit predates 2.16.0 that is a while ago ;-)

Show 19 quoted lines
> This isn't a 2.21 regression, but sending it in the rc window anyway
> in case you'd like to queue an obviously working minor portability
> fix.
>
>  t/t1300-config.sh | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/t/t1300-config.sh b/t/t1300-config.sh
> index 9652b241c7..428177c390 100755
> --- a/t/t1300-config.sh
> +++ b/t/t1300-config.sh
> @@ -892,6 +892,7 @@ test_expect_success 'get --expiry-date' '
>  	1510348087
>  	0
>  	EOF
> +	: "work around heredoc parsing bug fixed in dash 0.5.7 (in ec2c84d)" &&
>  	{
>  		echo "$rel_out $(git config --expiry-date date.valid1)"
>  		git config --expiry-date date.valid2 &&
Previous: Ævar Arnfjörð BjarmasonNext: SZEDER Gábor
Message 6 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.