Package: grep Version: 2.6.3-3 Severity: normal
With LC_ALL undefined, this uppercase pattern doesn't work properly, e.g.: $ echo 'Aa' | grep '[A-Z][A-Z]*$' $ echo 'Ab' | grep '[A-Z][A-Z]*$' .Ab The second entry should not match. If I define LC_ALL=C, it works properly. This was confirmed by users on the IRC debian channel, and they say it is fixed in 'sid'. I tried [:upper:] and it does work: $ echo '\.Ab' | grep '\.[[:upper:]][[:upper:]]*$' $ This looks like a serious issue. IRC folks report it was broken when perl compatibility was added, though I am not using perl compability. They say it works in perl mode, but not in Posix or ERE. This bug report looks similar: http://savannah.gnu.org/bugs/index.php?31389 -- System Information: Debian Release: 6.0.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/16 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages grep depends on: ii dpkg 1.15.8.11 Debian package management system ii install-info 4.13a.dfsg.1-6 Manage installed documentation in ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib grep recommends no packages. Versions of packages grep suggests: ii libpcre3 8.02-1.1 Perl 5 Compatible Regular Expressi -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org