From: Jan Engelhardt Date: Thu, 10 Aug 2023 01:07:00 +0000 (-0700) Subject: automake: portability warning for dollar-escaped dollar signs. X-Git-Tag: v1.16i~36 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=56766ede64d4abfaa7c694122e7bb601a427736d;p=thirdparty%2Fautomake.git automake: portability warning for dollar-escaped dollar signs. This bug and fix was posted at https://lists.gnu.org/archive/html/automake/2023-08/msg00003.html. * lib/Automake/Variable.pm (scan_variable_expansions): rewrite scan_variable_expansions regex to handle dollar-escaped dollar signs. * t/dollarvar2.sh: test it. --- diff --git a/lib/Automake/Variable.pm b/lib/Automake/Variable.pm index 8bafc8e3a..82215b511 100644 --- a/lib/Automake/Variable.pm +++ b/lib/Automake/Variable.pm @@ -748,9 +748,10 @@ sub scan_variable_expansions ($) $text =~ s/#.*$//; # Record each use of ${stuff} or $(stuff) that does not follow a $. - while ($text =~ /(?Makefile.am <<'EOF' +x = $$$(y z) +EOF +AUTOMAKE_fails -Wportability + :