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. > > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]