emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46802: closed (grep (GNU grep) 3.6 RexEx range reversed.)


From: GNU bug Tracking System
Subject: bug#46802: closed (grep (GNU grep) 3.6 RexEx range reversed.)
Date: Fri, 26 Feb 2021 20:21:02 +0000

Your message dated Fri, 26 Feb 2021 12:20:41 -0800
with message-id <cf33235b-9b3b-1971-996d-da9d87521958@cs.ucla.edu>
and subject line Re: bug#46802: grep (GNU grep) 3.6 RexEx range reversed.
has caused the debbugs.gnu.org bug report #46802,
regarding grep (GNU grep) 3.6 RexEx range reversed.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
46802: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46802
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: grep (GNU grep) 3.6 RexEx range reversed. Date: Fri, 26 Feb 2021 19:29:44 +0200 (EET)
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

--- End Message ---
--- Begin Message --- Subject: Re: bug#46802: grep (GNU grep) 3.6 RexEx range reversed. 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
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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]