Your message dated Tue, 9 Oct 2007 10:22:09 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#440409: grep -w is broken
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: grep
Version: 2.5.3~dfsg-1
Severity: normal

Tested the following on both i386 (lenny) and amd64 (sid):

[EMAIL PROTECTED]:~$ cat foo.sh
#!/bin/sh

cat << EOF
xmga    Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)
mga     Matrox G200/G4x0/G550 overlay (/dev/mga_vid)
tdfxfb  3Dfx Banshee/Voodoo3/Voodoo5
3dfx    3dfx (/dev/3dfx)
xv      X11/Xv
x11     X11 ( XImage/Shm )
xover   General X11 driver for overlay capable video output drivers
gl      X11 (OpenGL)
gl2     X11 (OpenGL) - multiple textures version
dga     DGA ( Direct Graphic Access V2.0 )
sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
fbdev   Framebuffer Device
fbdev2  Framebuffer Device
caca    libcaca
directfb        Direct Framebuffer Device
dfbmga  DirectFB / Matrox G200/G400/G450/G550
xvidix  X11 (VIDIX)
cvidix  console VIDIX
null    Null video output
xvmc    XVideo Motion Compensation
mpegpes Mpeg-PES to DVB card
yuv4mpeg        yuv4mpeg output for mjpegtools
png     PNG file
jpeg    JPEG file
gif89a  animated GIF output
tga     Targa output
pnm     PPM/PGM/PGMYUV file
md5sum  md5sum of each frame
EOF

[EMAIL PROTECTED]:~$ ./foo.sh | egrep -vw 
'png|pgm|md5|tga|gif|jpeg|null|yuv4mpeg|gif89a'
xmga    Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)
mga     Matrox G200/G4x0/G550 overlay (/dev/mga_vid)
tdfxfb  3Dfx Banshee/Voodoo3/Voodoo5
3dfx    3dfx (/dev/3dfx)
xv      X11/Xv
x11     X11 ( XImage/Shm )
xover   General X11 driver for overlay capable video output drivers
gl      X11 (OpenGL)
gl2     X11 (OpenGL) - multiple textures version
dga     DGA ( Direct Graphic Access V2.0 )
sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
fbdev   Framebuffer Device
fbdev2  Framebuffer Device
caca    libcaca
directfb        Direct Framebuffer Device
dfbmga  DirectFB / Matrox G200/G400/G450/G550
xvidix  X11 (VIDIX)
cvidix  console VIDIX
    Null video output
xvmc    XVideo Motion Compensation
mpegpes Mpeg-PES to DVB card
Muistialueen ylitys (core dumped)
[EMAIL PROTECTED]:~$ 

Notice also the weird behavior with the "Null video output" line.

This in the fi_FI.UTF-8 locale.  The problem disappears in the C locale and 
in the (ISO-8859-1) locale fi_FI.

The problem does not seem to be #392257, as I can't reproduce that one 
here.

(The test case come from the mplayer config script.  Noticed the segfault 
during a sid to sid upgrade that mplayer was a part of.)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22.6-ibid (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grep depends on:
ii  libc6                         2.6.1-1    GNU C Library: Shared libraries

grep recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
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:46AM -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:    [EMAIL PROTECTED]
> Web site: http://tony.abou-assaleh.net
> ----------------------[THE END]----------------------
> 
> On Sat, 1 Sep 2007, Justin Pryzby wrote:
> 
> > tag 440409 upstream confirmed
> > forwarded 440409 [EMAIL PROTECTED]
> > forcemerge 440409 439827 439931 440195 440342
> > thanks
> >
> > grep -w regression was reported again.
> >
> > On Sat, Sep 01, 2007 at 12:29:14PM +0200, Pierre Habouzit wrote:
> > > Package: grep
> > > Version: 2.5.3~dfsg-1
> > > Severity: critical
> > > Justification: breaks unrelated software
> > >
> > >
> > >   grep -w is completely broken as it does not print hits on separate
> > > lines like it should:
> > >
> > > $ /bin/grep -w p_new *.c
> > > archive.c:p_newarchive.c:p_newarchive.c:p_newarchive.c:p_newarchive.c:p_newarchive.c:p_newarray.c:p_newarray.c:p_newblob-iconv.c:p_newbtree.c:p_newbtree.c:p_newconcatbin.c:p_newfarch.c:p_newfifo.c:p_newint_array.c:p_newisndx.c:p_newisndx.c:p_newlog_limit.c:p_newlog_limit.c:p_newlog_limit.c:p_newmem-fifo-pool.c:p_newmmappedfile.c:p_newpaged-index.c:p_newstats-temporal.c:p_newtst-btree.c:p_newtst-isndx.c:p_newxml.c:p_new
> > >
> > >
> > >   grep though does the right thing:
> > > $ /bin/grep p_new *.c
> > > archive.c:    head = p_new(archive_head, 1);
> > > archive.c:    file = p_new(archive_file, 1);
> > > archive.c:        file->attrs = p_new(archive_file_attr *, 
> > > file->nb_attrs);
> > > [...]
> > >
> > >   This breaks scripts using grep -w and parsing the output very badly.
> > >
> >
> >
> 
> 


--- End Message ---

Reply via email to