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.
Hello Pierre, $ /bin/grep -w p_new *.c head = p_new(archive_head, 1); file = p_new(archive_file, 1); file->attrs = p_new(archive_file_attr *, file->nb_attrs); $ cat archive.c head = p_new(archive_head, 1); file = p_new(archive_file, 1); file->attrs = p_new(archive_file_attr *, file->nb_attrs); 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