a bug in autoscan 2.69

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

a bug in autoscan 2.69

aquanox
1
$ autoscan
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/\${ <-- HERE [^\}]*}/ at /usr/bin/autoscan-2.69 line 361.
2
/usr/bin/autoscan-2.69
348 # scan_sh_file($SHELL-SCRIPT-NAME)
349 # --------------------------------
350 sub scan_sh_file ($)
351 {
352   my ($file_name) = @_;
353   push @shfiles, $File::Find::name;
354
355   my $file = new Autom4te::XFile "< " . open_quote ($file_name);
356
357   while ($_ = $file->getline)
358     {
359       # Strip out comments and variable references.
360       s/#.*//;
361       s/\${[^\}]*}//g;
362       s/@[^@]*@//g;
363
364       # Tokens in the code.
365       while (s/\b([a-zA-Z_]\w*)\b/ /)
366         {
367           used ('program', $1);
368         }
369     }
370
371   $file->close;
372 }


line 361 : s/\${[^\}]*}//g; shoule be:
s/\$\{[^\}]*\}//g;




my autoonf version is 2.69
$ autoscan --version
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/\${ <-- HERE [^\}]*}/ at /usr/bin/autoscan-2.69 line 361.
autoscan (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Written by David J. MacKenzie and Akim Demaille.














=?GBK?Q?=BD=D8=CD=BC1.png?= (11K) Download Attachment
autoscan-2.69 (22K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: a bug in autoscan 2.69

Eric Blake-3
On 12/13/2017 03:35 PM, aquanox wrote:
> 1
> $ autoscan
> Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/\${ <-- HERE [^\}]*}/ at /usr/bin/autoscan-2.69 line 361.

Thanks for the report.  This has already been fixed in git, and it is
just waiting for me to find time to release autoconf 2.70.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


signature.asc (632 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: a bug in autoscan 2.69

aquanox
ok, thanks for your reply

发自网易邮箱大师


在2017年12月14日 06:49,Eric Blake 写道:
On 12/13/2017 03:35 PM, aquanox wrote:
> 1
> $ autoscan
> Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/\${ <-- HERE [^\}]*}/ at /usr/bin/autoscan-2.69 line 361.

Thanks for the report.  This has already been fixed in git, and it is
just waiting for me to find time to release autoconf 2.70.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org