|
From: | Paul Eggert |
Subject: | 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.
[Prev in Thread] | Current Thread | [Next in Thread] |