From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Branson Subject: bug#34085: autoscan reports a warning Date: Thu, 17 Jan 2019 10:04:38 -0500 Message-ID: <87imynnx4p.fsf@dismail.de> References: <87r2devscq.fsf@dismail.de> <20190116172916.20b20636@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gk9EY-0003Mn-H8 for bug-guix@gnu.org; Thu, 17 Jan 2019 10:05:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gk9EI-0007p8-0x for bug-guix@gnu.org; Thu, 17 Jan 2019 10:05:21 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gk9E8-0007bk-9y for bug-guix@gnu.org; Thu, 17 Jan 2019 10:05:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gk9E7-0005CA-RU for bug-guix@gnu.org; Thu, 17 Jan 2019 10:05:04 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:59468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gk9Dn-0002qD-69 for bug-guix@gnu.org; Thu, 17 Jan 2019 10:04:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gk9Di-00072w-E4 for bug-guix@gnu.org; Thu, 17 Jan 2019 10:04:43 -0500 Received: from dismail.de ([78.46.223.134]:23880) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gk9Dh-000709-Mf for bug-guix@gnu.org; Thu, 17 Jan 2019 10:04:38 -0500 Received: from dismail.de (localhost [127.0.0.1]) by dismail.de (OpenSMTPD) with ESMTP id ebffba56 for ; Thu, 17 Jan 2019 16:04:35 +0100 (CET) Received: from smtp2.dismail.de (10.240.26.12 [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 845294be for ; Thu, 17 Jan 2019 16:04:35 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 73068a02 for ; Thu, 17 Jan 2019 16:04:35 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 766cad34 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 17 Jan 2019 16:04:34 +0100 (CET) In-Reply-To: <20190116172916.20b20636@scratchpost.org> (Danny Milosavljevic's message of "Wed, 16 Jan 2019 17:29:16 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 34085@debbugs.gnu.org Danny Milosavljevic writes: > Hi, > > On Tue, 15 Jan 2019 10:43:49 -0500 > Joshua Branson 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