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

2021-02-26 Thread Georgi K.
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

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

2021-02-26 Thread Paul Eggert
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