From unknown Sun Aug 10 09:15:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46802: grep (GNU grep) 3.6 RexEx range reversed. Resent-From: "Georgi K." Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Fri, 26 Feb 2021 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46802 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 46802@debbugs.gnu.org X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161436220821106 (code B ref -1); Fri, 26 Feb 2021 17:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2021 17:56:48 +0000 Received: from localhost ([127.0.0.1]:42330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFhM8-0005UL-5s for submit@debbugs.gnu.org; Fri, 26 Feb 2021 12:56:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:38348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFgwK-0004nJ-3F for submit@debbugs.gnu.org; Fri, 26 Feb 2021 12:30:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFgwJ-0004P4-R5 for bug-grep@gnu.org; Fri, 26 Feb 2021 12:30:07 -0500 Received: from ns5.abv.bg ([194.153.145.180]:46900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFgwD-00016n-Tt for bug-grep@gnu.org; Fri, 26 Feb 2021 12:30:07 -0500 Received: from nm22.abv.bg (mail92.ni.bg [192.168.151.143]) by ns5.abv.bg (Postfix) with UTF8SMTP id 848E96002700 for ; Fri, 26 Feb 2021 19:29:44 +0200 (EET) Received: from nm22.abv.bg (localhost [127.0.0.1]) by nm22.abv.bg (Postfix) with UTF8SMTP id 614949D805 for ; Fri, 26 Feb 2021 19:29:44 +0200 (EET) Date: Fri, 26 Feb 2021 19:29:44 +0200 (EET) From: "Georgi K." Message-ID: <1467524146.849643.1614360584398@nm22.abv.bg> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_849642_1925346305.1614360584375" X-Mailer: AbvMail 3.0 X-Originating-IP: 83.228.117.132 Received-SPF: pass client-ip=194.153.145.180; envelope-from=strammer@abv.bg; helo=ns5.abv.bg X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Mailman-Approved-At: Fri, 26 Feb 2021 12:56:46 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) ------=_Part_849642_1925346305.1614360584375 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Dear Grep team, My installation of grep thinks [a-Z] is a valid range, while [A-z] is not. OS: ArcoLinux Kernel Version: 5.11.1-zen1-1-zen Grep Version: grep (GNU grep) 3.6 Shell Version: GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu) Locale: en_US.utf8 Steps to reproduce: $ echo "test" | grep -E "[a-Z]" test $ echo "test" | grep -E "[A-z]" grep: Invalid range end Please, let me know if I can produce some debug log for you. Best, George ------=_Part_849642_1925346305.1614360584375 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Dear Grep team,


My install= ation of grep thinks [a-Z] is a valid range, while [A-z] is not.
=
OS:
ArcoLinux

Kernel Vers= ion:
5.11.1-zen1-1-zen

Grep Version:
<= div>grep (GNU grep) 3.6

Shell Version:
GNU bash= , version 5.1.4(1)-release (x86_64-pc-linux-gnu)

Locale:
en_US.utf8

Steps to reproduce:
=

$ echo "test" | grep -E "[a-Z]"
test
<= br>
$ echo "test" | grep -E "[A-z]"
grep: Invalid range end

Please, let me know if I can produce some debug log = for you.


Best,

=
George
------=_Part_849642_1925346305.1614360584375-- From unknown Sun Aug 10 09:15:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Georgi K." Subject: bug#46802: closed (Re: bug#46802: grep (GNU grep) 3.6 RexEx range reversed.) Message-ID: References: <1467524146.849643.1614360584398@nm22.abv.bg> X-Gnu-PR-Message: they-closed 46802 X-Gnu-PR-Package: grep Reply-To: 46802@debbugs.gnu.org Date: Fri, 26 Feb 2021 20:21:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1614370862-18910-1" This is a multi-part message in MIME format... ------------=_1614370862-18910-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #46802: grep (GNU grep) 3.6 RexEx range reversed. which was filed against the grep package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 46802@debbugs.gnu.org. --=20 46802: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46802 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1614370862-18910-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 46802-done) by debbugs.gnu.org; 26 Feb 2021 20:20:52 +0000 Received: from localhost ([127.0.0.1]:42600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFjbY-0004uN-Dj for submit@debbugs.gnu.org; Fri, 26 Feb 2021 15:20:52 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFjbW-0004u7-0C for 46802-done@debbugs.gnu.org; Fri, 26 Feb 2021 15:20:51 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D9CF91600FF; Fri, 26 Feb 2021 12:20:43 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id bBW5IpR6VZSf; Fri, 26 Feb 2021 12:20:43 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3C8CF160117; Fri, 26 Feb 2021 12:20:43 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id E4lNngxLBH3j; Fri, 26 Feb 2021 12:20:43 -0800 (PST) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1ADCC1600FF; Fri, 26 Feb 2021 12:20:43 -0800 (PST) Subject: Re: bug#46802: grep (GNU grep) 3.6 RexEx range reversed. To: "Georgi K." References: <1467524146.849643.1614360584398@nm22.abv.bg> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Fri, 26 Feb 2021 12:20:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <1467524146.849643.1614360584398@nm22.abv.bg> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 46802-done Cc: 46802-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.0 (--) On 2/26/21 9:29 AM, Georgi K. wrote: > My installation of grep thinks [a-Z] is a valid range, while [A-z] is not. That's because 'a' collates before 'Z' in your locale, but 'A' does not collate before 'z'. If that's not what you want you can change your locale, e.g., by setting LC_ALL="C" in your environment. ------------=_1614370862-18910-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Feb 2021 17:56:48 +0000 Received: from localhost ([127.0.0.1]:42330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFhM8-0005UL-5s for submit@debbugs.gnu.org; Fri, 26 Feb 2021 12:56:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:38348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFgwK-0004nJ-3F for submit@debbugs.gnu.org; Fri, 26 Feb 2021 12:30:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFgwJ-0004P4-R5 for bug-grep@gnu.org; Fri, 26 Feb 2021 12:30:07 -0500 Received: from ns5.abv.bg ([194.153.145.180]:46900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFgwD-00016n-Tt for bug-grep@gnu.org; Fri, 26 Feb 2021 12:30:07 -0500 Received: from nm22.abv.bg (mail92.ni.bg [192.168.151.143]) by ns5.abv.bg (Postfix) with UTF8SMTP id 848E96002700 for ; Fri, 26 Feb 2021 19:29:44 +0200 (EET) Received: from nm22.abv.bg (localhost [127.0.0.1]) by nm22.abv.bg (Postfix) with UTF8SMTP id 614949D805 for ; Fri, 26 Feb 2021 19:29:44 +0200 (EET) Date: Fri, 26 Feb 2021 19:29:44 +0200 (EET) From: "Georgi K." To: bug-grep@gnu.org Message-ID: <1467524146.849643.1614360584398@nm22.abv.bg> Subject: grep (GNU grep) 3.6 RexEx range reversed. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_849642_1925346305.1614360584375" X-Mailer: AbvMail 3.0 X-Originating-IP: 83.228.117.132 Received-SPF: pass client-ip=194.153.145.180; envelope-from=strammer@abv.bg; helo=ns5.abv.bg X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 26 Feb 2021 12:56:46 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) ------=_Part_849642_1925346305.1614360584375 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Dear Grep team, My installation of grep thinks [a-Z] is a valid range, while [A-z] is not. OS: ArcoLinux Kernel Version: 5.11.1-zen1-1-zen Grep Version: grep (GNU grep) 3.6 Shell Version: GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu) Locale: en_US.utf8 Steps to reproduce: $ echo "test" | grep -E "[a-Z]" test $ echo "test" | grep -E "[A-z]" grep: Invalid range end Please, let me know if I can produce some debug log for you. Best, George ------=_Part_849642_1925346305.1614360584375 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Dear Grep team,


My install= ation of grep thinks [a-Z] is a valid range, while [A-z] is not.
=
OS:
ArcoLinux

Kernel Vers= ion:
5.11.1-zen1-1-zen

Grep Version:
<= div>grep (GNU grep) 3.6

Shell Version:
GNU bash= , version 5.1.4(1)-release (x86_64-pc-linux-gnu)

Locale:
en_US.utf8

Steps to reproduce:
=

$ echo "test" | grep -E "[a-Z]"
test
<= br>
$ echo "test" | grep -E "[A-z]"
grep: Invalid range end

Please, let me know if I can produce some debug log = for you.


Best,

=
George
------=_Part_849642_1925346305.1614360584375-- ------------=_1614370862-18910-1--