Article View: comp.unix.shell
Article #4143Re: grep is screwed on Debian, Ubuntu and others ...
From: Richard Kettlewell
Date: Fri, 04 May 2012 08:12
Date: Fri, 04 May 2012 08:12
30 lines
2636 bytes
2636 bytes
Lew Pitcher <lpitcher@teksavvy.com> writes: > kaz@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/
Technical Details
Message-ID:
<87bom44b6a.fsf@araminta.anjou.terraraq.org.uk>Path:
arc1-ca.pugleaf.net!pr3ni2334pbb.0!nntp.google.com!news2.google.com!goblin1!goblin3!goblin.stu.neva.ru!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.anjou.terraraq.org.uk!.POSTED!not-for-mailReferences:
<20120503180629.531@kylheku.com> <7QGor.22191$em4.6868@newsfe21.iad>Show Full Headers
Complete Article Headers
X-Google-Thread: 1012a6,4e23b22adef8b0c2
X-Google-NewGroupId: yes
X-Google-Thread: 1025b4,4e23b22adef8b0c2
X-Google-NewGroupId: yes
X-Google-Attributes: gid9d2148d7bf,gidfeffdbf771,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.129.69 with SMTP id nu5mr2738418pbb.3.1336119151286;
Fri, 04 May 2012 01:12:31 -0700 (PDT)
Path: arc1-ca.pugleaf.net!pr3ni2334pbb.0!nntp.google.com!news2.google.com!goblin1!goblin3!goblin.stu.neva.ru!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.anjou.terraraq.org.uk!.POSTED!not-for-mail
From: Richard Kettlewell <rjk@greenend.org.uk>
Newsgroups: comp.unix.shell,gnu.misc.discuss
Subject: Re: grep is screwed on Debian, Ubuntu and others ...
Date: Fri, 04 May 2012 09:12:29 +0100
Organization: Anjou
Lines: 30
Message-ID: <87bom44b6a.fsf@araminta.anjou.terraraq.org.uk>
References: <20120503180629.531@kylheku.com>
<7QGor.22191$em4.6868@newsfe21.iad>
NNTP-Posting-Host: araminta6.anjou.terraraq.org.uk
Mime-Version: 1.0
X-Trace: araminta.anjou.terraraq.org.uk 1336119150 10444 2001:470:1f09:11ed::12 (4 May 2012 08:12:30 GMT)
X-Complaints-To: usenet@sfere.greenend.org.uk
NNTP-Posting-Date: Fri, 4 May 2012 08:12:30 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Cancel-Lock: sha1:RuB/Tu9GKBFcczx69lOuE+1WuAg=
Content-Type: text/plain; charset=us-ascii