On 2011/07/11 16:28, Ted Unangst wrote: > On Mon, Jul 11, 2011, Landry Breuil wrote: > > On Mon, Jul 11, 2011 at 08:58:37PM +0100, Stuart Henderson wrote: > >> On 2011/07/07 19:20, Ted Unangst wrote: > >> > CVSROOT: /cvs > >> > Module name: src > >> > Changes by: t...@cvs.openbsd.org 2011/07/07 19:20:24 > >> > > >> > Modified files: > >> > usr.bin/grep : grep.1 grep.c grep.h queue.c util.c > >> > > >> > Log message: > >> > add support for -o to only print the match. > >> > reminded this was useful by ajcoutot > >> > > >> > >> this breaks ports/databases/libpqxx > > > > More precisely, this breaks the end of configure : > > > > without grep -o : > > Generating include/pqxx/config-internal-autotools.h: ok > > Generating include/pqxx/config-internal-compiler.h: ok > > Generating include/pqxx/config-internal-libpq.h: ok > > Generating include/pqxx/config-public-autotools.h: ok > > Generating include/pqxx/config-public-compiler.h: ok > > Generating include/pqxx/config-public-libpq.h: ok > > > > with it : > > Generating include/pqxx/config-internal-autotools.h: no items--deleting > > Generating include/pqxx/config-internal-compiler.h: no items--deleting > > Generating include/pqxx/config-internal-libpq.h: no items--deleting > > Generating include/pqxx/config-public-autotools.h: no items--deleting > > Generating include/pqxx/config-public-compiler.h: no items--deleting > > Generating include/pqxx/config-public-libpq.h: no items--deleting > > > > the end of the script does a nice bit of grep : > > > > grep -w -h -F "`grep \"\<${publication}\>\" \"${srcdir}/configitems\" | > > grep \"\<${factor}\>\" | grep -v '^$' | cut -f 1`" include/pqxx/config.h > >>"$CONFIGFILE" > > > > repro'd, fix on the way.
the following changed behaviour: grep "" foo