Article View: comp.unix.shell
Article #4141grep is screwed on Debian, Ubuntu and others ...
From: Kaz Kylheku
Date: Fri, 04 May 2012 01:25
Date: Fri, 04 May 2012 01:25
26 lines
1639 bytes
1639 bytes
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!) Watch this: $ echo a | grep '[A-B]' a $ echo b | grep '[A-B]' $ echo b | grep '[:upper:]' $ echo B | grep '[:upper:]' $ echo E | grep '[:upper:]' $ echo e | grep '[:upper:]' e Ooops! Someone doesn't have a regression test suite, or at least not one that is worth a damn.
Technical Details
Message-ID:
<20120503180629.531@kylheku.com>Path:
arc1-ca.pugleaf.net!pr3ni1287pbb.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1025b4,4e23b22adef8b0c2,start
X-Google-NewGroupId: yes
X-Google-Attributes: gidfeffdbf771,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.136.33 with SMTP id px1mr1373132pbb.7.1336094730707;
Thu, 03 May 2012 18:25:30 -0700 (PDT)
MIME-Version: 1.0
Path: arc1-ca.pugleaf.net!pr3ni1287pbb.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail
From: Kaz Kylheku <kaz@kylheku.com>
Newsgroups: comp.unix.shell,gnu.misc.discuss
Subject: grep is screwed on Debian, Ubuntu and others ...
Date: Fri, 4 May 2012 01:25:05 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 26
Message-ID: <20120503180629.531@kylheku.com>
NNTP-Posting-Host: X+c6YNb3AaWMPA3YfA4opg.user.speranza.aioe.org
X-Complaints-To: abuse@aioe.org
User-Agent: slrn/pre1.0.0-18 (Linux)
X-Notice: Filtered by postfilter v. 0.8.2