Thank you for your bug report and taking the time to make Ubuntu better.
I'm not sure you are seeing a bug because of the difficult nature of those
ranges: Your two expressions are *not* equivalent. The grep man page states:
"Within a bracket expression, a range expression consists of two characters
separated by a hyphen. It matches any single character that sorts between the
two characters, inclusive, using the locale's collating sequence and
character set. For example, in the default C locale, [a-d] is equivalent to
[abcd]. Many locales sort characters in dictionary order, and in these locales
[a-d] is typically not equivalent to [abcd]; it might be equivalent to
[aBbCcDd], for example. To obtain the traditional interpretation of bracket
expressions, you can use the C locale by setting the LC_ALL environment
variable to the value C."
So in your case, 'A' seems to sort after 'a' and is therefore matched.
'E' should not be matched, because it is after 'e'. Are you really
seeing a change in the behaviour in 2.8 (make sure to use the same
locale).
** Changed in: grep (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/799181
Title:
grep incorrectly ignores case sensitivity in search
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grep/+bug/799181/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs