GNU bug report logs - #23602
Unescaped left brace in regex is deprecated, passed through in regex

Previous Next

Package: automake;

Reported by: carl hansen <carlhansen1234 <at> gmail.com>

Date: Mon, 23 May 2016 06:24:02 UTC

Severity: normal

Tags: fixed

Merged with 21986, 23014, 31883

Done: Mathieu Lirzin <mthl <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 23602 <at> debbugs.gnu.org (full text, mbox):

From: carl hansen <carlhansen1234 <at> gmail.com>
To: 23602 <at> debbugs.gnu.org
Subject: Re: bug#23602: Unescaped left brace in regex is deprecated, passed
 through in regex
Date: Sun, 22 May 2016 23:39:03 -0700
[Message part 1 (text/plain, inline)]
On Sun, May 22, 2016 at 11:23 PM, carl hansen <carlhansen1234 <at> gmail.com>
wrote:

> >> automake --version
> Unescaped left brace in regex is deprecated, passed through in regex;
> marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at
> /opt/gsrc/bin/automake line 3936.
> automake (GNU automake) 1.15
> Copyright (C) 2014 Free Software Foundation, Inc.
> License GPLv2+: GNU GPL version 2 or later ....
>
>
> using perl 5.22.1
>
> how to fix ?
>
>
>
>  was:

   $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker
($1)/ge;

following the message, this seems to work; not thoroughly tested:

   $text =~ s/\$\{([^ \t=:+{}]+)\}/substitute_ac_subst_variables_worker
($1)/ge;

leaning toothpicks....
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.