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
Description: Digital signature