Debian Bug report logs -
#440342
"grep -w" implies "-o"
Reported by: Norbert Kiesel <nkiesel@tbdnetworks.com>
Date: Fri, 31 Aug 2007 17:45:04 UTC
Severity: critical
Tags: confirmed, patch
Merged with 439827,
440195,
440409,
440520
Found in version grep/2.5.3~dfsg-1
Fixed in versions grep/2.5.3~dfsg-2, 2.5.3~dfsg-3
Done: Justin Pryzby <jpryzby+d@quoininc.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#440342; Package grep.
(full text, mbox, link).
Acknowledgement sent to Norbert Kiesel <nkiesel@tbdnetworks.com>:
New Bug report received and forwarded. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: grep
Version: 2.5.3~dfsg-1
Severity: important
There is a regression in this grep: a "cat /proc/stat | grep -w cpu"
only shows the word "cpu" and not the whole line containing that word
(i.e. it behaves as if I had run "cat /proc/stat | grep -wo cpu"). That
makes "-w" pretty useless. grep-2.5.1.ds2-6 from Debian stable does not
have this bug.
</nk>
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22.5
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grep depends on:
ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
grep recommends no packages.
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#440342; Package grep.
(full text, mbox, link).
Acknowledgement sent to Justin Pryzby <jpryzby+dhcpsf@quoininc.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(full text, mbox, link).
Message #10 received at 440342@bugs.debian.org (full text, mbox, reply):
tag 440342 upstream confirmed
forwarded 440342 bug-grep@gnu.org
thanks
This regression was reported for the new grep upload.
On Fri, Aug 31, 2007 at 10:43:26AM -0700, Norbert Kiesel wrote:
> Package: grep
> Version: 2.5.3~dfsg-1
> Severity: important
>
> There is a regression in this grep: a "cat /proc/stat | grep -w cpu"
> only shows the word "cpu" and not the whole line containing that word
> (i.e. it behaves as if I had run "cat /proc/stat | grep -wo cpu"). That
> makes "-w" pretty useless. grep-2.5.1.ds2-6 from Debian stable does not
> have this bug.
Tags added: upstream, confirmed
Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com>
to control@bugs.debian.org.
(Fri, 31 Aug 2007 18:12:03 GMT) (full text, mbox, link).
Noted your statement that Bug has been forwarded to bug-grep@gnu.org.
Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com>
to control@bugs.debian.org.
(Fri, 31 Aug 2007 18:12:04 GMT) (full text, mbox, link).
Removed annotation that Bug had been forwarded to bug-grep@gnu.org.
Request was from jpryzby@quoininc.com (Justin Pryzby)
to control@bugs.debian.org.
(Sun, 02 Sep 2007 14:54:10 GMT) (full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#440342; Package grep.
(full text, mbox, link).
Acknowledgement sent to Aníbal Monsalve Salazar <anibal@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(full text, mbox, link).
Message #25 received at 440342@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Fri, Aug 31, 2007 at 10:43:26AM -0700, Norbert Kiesel wrote:
>Package: grep
>Version: 2.5.3~dfsg-1
>Severity: important
>
>There is a regression in this grep: a "cat /proc/stat | grep -w cpu"
>only shows the word "cpu" and not the whole line containing that word
>(i.e. it behaves as if I had run "cat /proc/stat | grep -wo cpu"). That
>makes "-w" pretty useless. grep-2.5.1.ds2-6 from Debian stable does not
>have this bug.
>
></nk>
>
>
>-- System Information:
>Debian Release: lenny/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (1, 'experimental')
>Architecture: i386 (i686)
>
>Kernel: Linux 2.6.22.5
>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
>Shell: /bin/sh linked to /bin/bash
>
>Versions of packages grep depends on:
>ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
>
>grep recommends no packages.
>
>-- no debconf information
Hello Norbert,
$ cat /proc/stat | grep -w cpu
cpu 58192 34 3096 2176604 6661 8048 162 0
$ cat /proc/stat
cpu 58420 34 3104 2179751 6661 8085 162 0
cpu0 34536 34 2299 1078115 4891 8085 160 0
cpu1 23884 0 805 1101635 1769 0 1 0
...
I couldn't reproduce this bug.
$ dpkg -l grep libc6 | grep ^ii
ii grep 2.5.3~dfsg-1 GNU grep, egrep and fgrep
ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
$ locale
LANG=en_AU
LC_CTYPE="en_AU"
LC_NUMERIC="en_AU"
LC_TIME="en_AU"
LC_COLLATE="en_AU"
LC_MONETARY="en_AU"
LC_MESSAGES="en_AU"
LC_PAPER="en_AU"
LC_NAME="en_AU"
LC_ADDRESS="en_AU"
LC_TELEPHONE="en_AU"
LC_MEASUREMENT="en_AU"
LC_IDENTIFICATION="en_AU"
LC_ALL=
Best Regards,
Aníbal Monsalve Salazar
--
http://v7w.com/anibal
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#440342; Package grep.
(full text, mbox, link).
Acknowledgement sent to Pierre Habouzit <madcoder@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(full text, mbox, link).
Message #30 received at 440342@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Mon, Sep 03, 2007 at 01:29:48PM +0000, Aníbal Monsalve Salazar wrote:
> On Fri, Aug 31, 2007 at 10:43:26AM -0700, Norbert Kiesel wrote:
> >Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> >ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
> I couldn't reproduce this bug.
>
> $ dpkg -l grep libc6 | grep ^ii
> ii grep 2.5.3~dfsg-1 GNU grep, egrep and fgrep
> ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
>
> $ locale
> LANG=en_AU
On Mon, Sep 03, 2007 at 01:24:09PM +0000, Aníbal Monsalve Salazar wrote:
> On Thu, Aug 30, 2007 at 05:33:21PM +0200, arno renevier wrote:
> >Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> >ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
> $ dpkg -l grep libc6 | grep ^ii
> ii grep 2.5.3~dfsg-1 GNU grep, egrep and fgrep
> ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
>
> $ locale
> LANG=en_AU
On Mon, Sep 03, 2007 at 01:11:41PM +0000, Aníbal Monsalve Salazar wrote:
> On Mon, Aug 27, 2007 at 08:51:23PM +0200, Loïc Minier wrote:
> >Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> >ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
> I didn't get a segfault when I run neither 'echo -foo | grep --color=auto -vw foo'
> nor 'echo -foo | grep -vw foo'.
>
> When I run 'echo -foo bar | grep --color=auto -w foo -foo bar', I get:
>
> -foo bar
>
> with "foo" coloured red.
>
> $ dpkg -l grep libc6 | grep ^ii
> ii grep 2.5.3~dfsg-1 GNU grep, egrep and fgrep
> ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
>
> $ locale
> LANG=en_AU
You're playing with everyone's nerves are you ? Don't you grok that
you are not reproducing the bug in the environment reported by every
single users ? It's pretty obvious the issue is with utf-8 locales, and
you're trying in one that isn't even a multi-byte one.
I was pretty dismayed when you sent me a similar answer, I just can't
believe that you just handwave a "I can't reproduce it" to every single
user that has issues with the last grep release. Do you believe everyone
is just making it up to annoy you ?
--
·O· Pierre Habouzit
··O madcoder@debian.org
OOO http://www.madism.org
[Message part 2 (application/pgp-signature, inline)]
Disconnected #439931 from all other report(s).
Request was from Justin Pryzby <jpryzby+d@quoininc.com>
to control@bugs.debian.org.
(Tue, 04 Sep 2007 07:48:05 GMT) (full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#440342; Package grep.
(full text, mbox, link).
Acknowledgement sent to Norbert Kiesel <nkiesel@tbdnetworks.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(full text, mbox, link).
Message #37 received at 440342@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
The bug only happens (for me) with UTF-8 locale (massaged output below a
bit to compensate for the missing \n after the UTF-8 output)
% cat /proc/stat | env -i /bin/grep -w cpu
cpu 11736906 15928453 1355819 64884676 1101227 326476 32868 0
% cat /proc/stat | env -i LANG=en_US.UTF-8 /bin/grep -w cpu
cpu%
% cat /proc/stat | env -i LANG=C /bin/grep -w cpu
cpu 11736936 15928489 1355831 64886124 1101234 326477 32868 0
Best,
Norbert
On Mon, 2007-09-03 at 23:29 +1000, Aníbal Monsalve Salazar wrote:
> On Fri, Aug 31, 2007 at 10:43:26AM -0700, Norbert Kiesel wrote:
> >Package: grep
> >Version: 2.5.3~dfsg-1
> >Severity: important
> >
> >There is a regression in this grep: a "cat /proc/stat | grep -w cpu"
> >only shows the word "cpu" and not the whole line containing that word
> >(i.e. it behaves as if I had run "cat /proc/stat | grep -wo cpu"). That
> >makes "-w" pretty useless. grep-2.5.1.ds2-6 from Debian stable does not
> >have this bug.
> >
> ></nk>
> >
> >
> >-- System Information:
> >Debian Release: lenny/sid
> > APT prefers unstable
> > APT policy: (500, 'unstable'), (1, 'experimental')
> >Architecture: i386 (i686)
> >
> >Kernel: Linux 2.6.22.5
> >Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> >Shell: /bin/sh linked to /bin/bash
> >
> >Versions of packages grep depends on:
> >ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
> >
> >grep recommends no packages.
> >
> >-- no debconf information
>
> Hello Norbert,
>
> $ cat /proc/stat | grep -w cpu
> cpu 58192 34 3096 2176604 6661 8048 162 0
>
> $ cat /proc/stat
> cpu 58420 34 3104 2179751 6661 8085 162 0
> cpu0 34536 34 2299 1078115 4891 8085 160 0
> cpu1 23884 0 805 1101635 1769 0 1 0
> ...
>
> I couldn't reproduce this bug.
>
> $ dpkg -l grep libc6 | grep ^ii
> ii grep 2.5.3~dfsg-1 GNU grep, egrep and fgrep
> ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
>
> $ locale
> LANG=en_AU
> LC_CTYPE="en_AU"
> LC_NUMERIC="en_AU"
> LC_TIME="en_AU"
> LC_COLLATE="en_AU"
> LC_MONETARY="en_AU"
> LC_MESSAGES="en_AU"
> LC_PAPER="en_AU"
> LC_NAME="en_AU"
> LC_ADDRESS="en_AU"
> LC_TELEPHONE="en_AU"
> LC_MEASUREMENT="en_AU"
> LC_IDENTIFICATION="en_AU"
> LC_ALL=
>
> Best Regards,
>
> Aníbal Monsalve Salazar
[signature.asc (application/pgp-signature, inline)]
Tags added: patch
Request was from Nicolas François <nicolas.francois@centraliens.net>
to control@bugs.debian.org.
(Wed, 05 Sep 2007 19:30:06 GMT) (full text, mbox, link).
Tags removed: upstream
Request was from Nicolas François <nicolas.francois@centraliens.net>
to control@bugs.debian.org.
(Wed, 05 Sep 2007 19:30:10 GMT) (full text, mbox, link).
Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Norbert Kiesel <nkiesel@tbdnetworks.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #46 received at 440342-close@bugs.debian.org (full text, mbox, reply):
Source: grep
Source-Version: 2.5.3~dfsg-2
We believe that the bug you reported is fixed in the latest version of
grep, which is due to be installed in the Debian FTP archive:
grep_2.5.3~dfsg-2.diff.gz
to pool/main/g/grep/grep_2.5.3~dfsg-2.diff.gz
grep_2.5.3~dfsg-2.dsc
to pool/main/g/grep/grep_2.5.3~dfsg-2.dsc
grep_2.5.3~dfsg-2_i386.deb
to pool/main/g/grep/grep_2.5.3~dfsg-2_i386.deb
grep_2.5.3~dfsg-2_sparc.deb
to pool/main/g/grep/grep_2.5.3~dfsg-2_sparc.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 440342@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Santiago Ruano Rincón <santiago@debian.org> (supplier of updated grep package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Thu, 06 Sep 2007 00:16:20 -0500
Source: grep
Binary: grep
Architecture: source i386 sparc
Version: 2.5.3~dfsg-2
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
Changed-By: Santiago Ruano Rincón <santiago@debian.org>
Description:
grep - GNU grep, egrep and fgrep
Closes: 439827 440195 440342
Changes:
grep (2.5.3~dfsg-2) unstable; urgency=low
.
* Removed 65-dfa-optional.patch. (Closes: #439827, #440195, #440342)
Files:
10e134a513b2da9d4387b7a1615828e1 658 utils required grep_2.5.3~dfsg-2.dsc
3d3415551658ce3a14ec5c8fbbc93099 9921 utils required grep_2.5.3~dfsg-2.diff.gz
cd8910ae221372381ab0d049fe1392fe 273106 utils required grep_2.5.3~dfsg-2_i386.deb
52f4af5006882f75c9f3de390050484f 276434 utils required grep_2.5.3~dfsg-2_sparc.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG3+3tgY5NIXPNpFURAtK5AKCaKbCswT1zN6uZasHogD/9hivEkACfW5FW
5ZNbuhAUyGouDhnFdMQN/m4=
=MPRI
-----END PGP SIGNATURE-----
Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Loïc Minier <lool@dooz.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to arno renevier <arenevier@fdn.fr>:
Bug acknowledged by developer.
(full text, mbox, link).
Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Pierre Habouzit <madcoder@debian.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Antti-Juhani Kaijanaho <ajk@debian.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#440342; Package grep.
(full text, mbox, link).
Acknowledgement sent to Tony Abou-Assaleh <taa@acm.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(full text, mbox, link).
Message #71 received at 440342@bugs.debian.org (full text, mbox, reply):
I am unable to confirm this bug. GNU grep 2.5.3 from ftp.gnu.org and from
Savannah CVS works fine with -w in that it does not imply -o. I tested
this on Mac OS X and Debian under different locales.
If you can reproduce this bug with the CVS or the release version, let me
know.
Cheers,
TAA
-----------------------------------------------------
Tony Abou-Assaleh
Email: taa@acm.org
Web site: http://tony.abou-assaleh.net
----------------------[THE END]----------------------
On Fri, 31 Aug 2007, Justin Pryzby wrote:
> tag 440342 upstream confirmed
> forwarded 440342 bug-grep@gnu.org
> thanks
>
> This regression was reported for the new grep upload.
>
> On Fri, Aug 31, 2007 at 10:43:26AM -0700, Norbert Kiesel wrote:
> > Package: grep
> > Version: 2.5.3~dfsg-1
> > Severity: important
> >
> > There is a regression in this grep: a "cat /proc/stat | grep -w cpu"
> > only shows the word "cpu" and not the whole line containing that word
> > (i.e. it behaves as if I had run "cat /proc/stat | grep -wo cpu"). That
> > makes "-w" pretty useless. grep-2.5.1.ds2-6 from Debian stable does not
> > have this bug.
>
>
Reply sent to Justin Pryzby <jpryzby+d@quoininc.com>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Norbert Kiesel <nkiesel@tbdnetworks.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #76 received at 440342-done@bugs.debian.org (full text, mbox, reply):
Version: 2.5.3~dfsg-3
grep -w was broken in a previous upload but fixed by this version.
$ cat /proc/stat |./tmp/grep.unstable -w cpu; echo
cpu
$ cat /proc/stat |grep -w cpu; echo
cpu 6465668 212104 1288498 158553905 5061378 949080 15399 0
On Tue, Oct 09, 2007 at 01:19:01AM -0300, Tony Abou-Assaleh wrote:
> I am unable to confirm this bug. GNU grep 2.5.3 from ftp.gnu.org and from
> Savannah CVS works fine with -w in that it does not imply -o. I tested
> this on Mac OS X and Debian under different locales.
>
> If you can reproduce this bug with the CVS or the release version, let me
> know.
>
> Cheers,
>
> TAA
>
> -----------------------------------------------------
> Tony Abou-Assaleh
> Email: taa@acm.org
> Web site: http://tony.abou-assaleh.net
> ----------------------[THE END]----------------------
>
> On Fri, 31 Aug 2007, Justin Pryzby wrote:
>
> > tag 440342 upstream confirmed
> > forwarded 440342 bug-grep@gnu.org
> > thanks
> >
> > This regression was reported for the new grep upload.
> >
> > On Fri, Aug 31, 2007 at 10:43:26AM -0700, Norbert Kiesel wrote:
> > > Package: grep
> > > Version: 2.5.3~dfsg-1
> > > Severity: important
> > >
> > > There is a regression in this grep: a "cat /proc/stat | grep -w cpu"
> > > only shows the word "cpu" and not the whole line containing that word
> > > (i.e. it behaves as if I had run "cat /proc/stat | grep -wo cpu"). That
> > > makes "-w" pretty useless. grep-2.5.1.ds2-6 from Debian stable does not
> > > have this bug.
> >
> >
>
>
Reply sent to Justin Pryzby <jpryzby+d@quoininc.com>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Loïc Minier <lool@dooz.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Reply sent to Justin Pryzby <jpryzby+d@quoininc.com>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to arno renevier <arenevier@fdn.fr>:
Bug acknowledged by developer.
(full text, mbox, link).
Reply sent to Justin Pryzby <jpryzby+d@quoininc.com>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Pierre Habouzit <madcoder@debian.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Reply sent to Justin Pryzby <jpryzby+d@quoininc.com>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Antti-Juhani Kaijanaho <ajk@debian.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 07 Nov 2007 07:25:34 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Mon Jul 15 22:31:42 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.