GNU bug report logs - #46802
grep (GNU grep) 3.6 RexEx range reversed.

Previous Next

Package: grep;

Reported by: "Georgi K." <strammer <at> abv.bg>

Date: Fri, 26 Feb 2021 17:57:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 46802-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Georgi K." <strammer <at> abv.bg>
Cc: 46802-done <at> debbugs.gnu.org
Subject: Re: bug#46802: grep (GNU grep) 3.6 RexEx range reversed.
Date: Fri, 26 Feb 2021 12:20:41 -0800
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.




This bug report was last modified 4 years and 81 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.