grep -i does not treat non-matching character ranges correctly

Tilman Johannes Bohl <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Hi,
grep doesn't seem to treat ranges of non-matching characters correctly.

To reproduce, copy into bash:
echo CLOAK_OF_DISPLACEMENT | grep -Ei 'displace[^A-Z]'

output:
CLOAK_OF_DISPLACEMENT

expected output: empty.

This is grep (GNU grep) 2.5.1, as preinstalled on Mac OS X 10.5.

Cheers,
Tilman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.