* bug#34085: autoscan reports a warning
@ 2019-01-15 15:43 Joshua Branson
2019-01-16 10:55 ` Ludovic Courtès
2019-01-16 16:29 ` Danny Milosavljevic
0 siblings, 2 replies; 4+ messages in thread
From: Joshua Branson @ 2019-01-15 15:43 UTC (permalink / raw)
To: 34085
Hello,
I'm not certain if this is the right list to report this to, but I just
installed autoscan version 2.21, and it gave me this warning:
#BEGIN_SRC sh
autoscan
#END_SRC
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 /home/joshua/.guix-profile/bin/autoscan line 361.
Should I report this upstream instead?
Thanks
--
Joshua Branson
Sent from Emacs and Gnus
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#34085: autoscan reports a warning
2019-01-15 15:43 bug#34085: autoscan reports a warning Joshua Branson
@ 2019-01-16 10:55 ` Ludovic Courtès
2019-01-16 16:29 ` Danny Milosavljevic
1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-01-16 10:55 UTC (permalink / raw)
To: 34085
Hi,
Joshua Branson <jbranso@dismail.de> skribis:
> I'm not certain if this is the right list to report this to, but I just
> installed autoscan version 2.21, and it gave me this warning:
Guix doesn’t have an ‘autoscan’ package, does it?
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#34085: autoscan reports a warning
2019-01-15 15:43 bug#34085: autoscan reports a warning Joshua Branson
2019-01-16 10:55 ` Ludovic Courtès
@ 2019-01-16 16:29 ` Danny Milosavljevic
2019-01-17 15:04 ` Joshua Branson
1 sibling, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2019-01-16 16:29 UTC (permalink / raw)
To: Joshua Branson; +Cc: 34085
[-- Attachment #1: Type: text/plain, Size: 1377 bytes --]
Hi,
On Tue, 15 Jan 2019 10:43:49 -0500
Joshua Branson <jbranso@dismail.de> wrote:
> I'm not certain if this is the right list to report this to, but I just
> installed autoscan version 2.21, and it gave me this warning:
>
> #BEGIN_SRC sh
> autoscan
> #END_SRC
>
> 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 /home/joshua/.guix-profile/bin/autoscan line 361.
>
>
> Should I report this upstream instead?
I think so, yes.
autoscan is part of autoconf 2.21, so the bug report should go to the autoconf package.
The regexp in question is
s/\${[^\}]*}//g;
Perl is complaining because perl regexp use curly braces to specify a range of valid repeats.
Maybe the easiest way to understand it is that the following equivalences hold in regexps:
? is equivalent to {0,1}
+ is equivalent to {1,}
* is equivalent to {0,}
The above (at the end of the regexp "\${[^\}]*}") probably means a literal curly
brace--but they don't escape it - hence the warning.
It's only a warning because no valid repeat range can start with a closing curly
brace.
So perl can still figure out what you meant.
But it's obviously not recommended to use unescaped closing curly braces to
match a literal closing curly brace regardless.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#34085: autoscan reports a warning
2019-01-16 16:29 ` Danny Milosavljevic
@ 2019-01-17 15:04 ` Joshua Branson
0 siblings, 0 replies; 4+ messages in thread
From: Joshua Branson @ 2019-01-17 15:04 UTC (permalink / raw)
To: 34085
Danny Milosavljevic <dannym@scratchpost.org> writes:
> Hi,
>
> On Tue, 15 Jan 2019 10:43:49 -0500
> Joshua Branson <jbranso@dismail.de> wrote:
>
>> I'm not certain if this is the right list to report this to, but I just
>> installed autoscan version 2.21, and it gave me this warning:
>>
>> #BEGIN_SRC sh
>> autoscan
>> #END_SRC
>>
>> 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 /home/joshua/.guix-profile/bin/autoscan line
>> 361.
>>
>>
>> Should I report this upstream instead?
>
> I think so, yes.
>
> autoscan is part of autoconf 2.21, so the bug report should go to the autoconf package.
>
> The regexp in question is
>
> s/\${[^\}]*}//g;
>
> Perl is complaining because perl regexp use curly braces to specify a range of valid repeats.
> Maybe the easiest way to understand it is that the following equivalences hold in regexps:
>
> ? is equivalent to {0,1}
> + is equivalent to {1,}
> * is equivalent to {0,}
>
> The above (at the end of the regexp "\${[^\}]*}") probably means a literal curly
> brace--but they don't escape it - hence the warning.
>
> It's only a warning because no valid repeat range can start with a closing curly
> brace.
> So perl can still figure out what you meant.
>
> But it's obviously not recommended to use unescaped closing curly braces to
> match a literal closing curly brace regardless.
>
Ok, I'll report this upstream. Thanks for flushing out the main issue!
--
Joshua Branson
Sent from Emacs and Gnus
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-01-17 15:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 15:43 bug#34085: autoscan reports a warning Joshua Branson
2019-01-16 10:55 ` Ludovic Courtès
2019-01-16 16:29 ` Danny Milosavljevic
2019-01-17 15:04 ` Joshua Branson
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).