Re: grep is screwed on Debian, Ubuntu and others ...
Lew Pitcher lpitc...@teksavvy.com writes: k...@kylheku.com wrote: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655293 I ran into this doing a simple grep job that needed to match upper case characters, and so I started Googling. This was only reported in January. But the Red Hat people knew about what looks like the same bug two years ago. Oops, they didn't share! https://bugzilla.redhat.com/show_bug.cgi?id=583011 (So much for the spirit of collaboration in open source. My distro, my patches, screw you!) The fix linked from the RH bug is to upstream grep, so it's not clear in what sense they didn't share. Second; I guess that your abberent grep behaviour wrt 'a' is version dependant. Under GNU grep 2.5.3 (32bit Slackware Linux 12.2), I don't see the same results. In fact, I see the results you'd properly expect from grep. It looks like it was dependent on both version and locale, as well as on competence with regexp syntax. -- http://www.greenend.org.uk/rjk/ ___ gnu-misc-discuss mailing list gnu-misc-discuss@gnu.org https://lists.gnu.org/mailman/listinfo/gnu-misc-discuss
Re: grep is screwed on Debian, Ubuntu and others ...
Kaz Kylheku k...@kylheku.com writes: Watch this: $ echo a | grep '[A-B]' a I can't reproduce this on Debian. Neither in lenny nor in squeeze, not even in etch. (C and de_DE.UTF-8 locales tested) What is your 'Debian'? $ echo b | grep '[A-B]' $ echo b | grep '[:upper:]' $ echo B | grep '[:upper:]' $ echo E | grep '[:upper:]' $ echo e | grep '[:upper:]' e I can reproduce these -- are all expected, as explained in followup. Regards, Wolfram. ___ gnu-misc-discuss mailing list gnu-misc-discuss@gnu.org https://lists.gnu.org/mailman/listinfo/gnu-misc-discuss
Re: grep is screwed on Debian, Ubuntu and others ...
On 2012-05-04, Wolfram Gloger wm...@dent.med.uni-muenchen.de wrote: Kaz Kylheku k...@kylheku.com writes: Watch this: $ echo a | grep '[A-B]' a I can't reproduce this on Debian. Neither in lenny nor in squeeze, not even in etch. (C and de_DE.UTF-8 locales tested) Me neither; I was mistaken about that. Sorry! ___ gnu-misc-discuss mailing list gnu-misc-discuss@gnu.org https://lists.gnu.org/mailman/listinfo/gnu-misc-discuss