Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2008 23:52:25 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Gabor Kovesdan <gabor@FreeBSD.org>
Cc:        Diomidis Spinellis <dds@aueb.gr>, hackers@FreeBSD.org, current@FreeBSD.org, "Sean C. Farley" <scf@FreeBSD.org>, Max Khon <fjoe@samodelkin.net>
Subject:   Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]
Message-ID:  <4854BC29.3060507@FreeBSD.org>
In-Reply-To: <485453F2.60507@FreeBSD.org>
References:  <485453F2.60507@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I use the following construct in portmaster, where pdb=/var/db/pkg, 
origin is set to the origin of a given port, and ro_opd is usually 
empty, but can be another origin directory or the same one. To 
guarantee that you should get some kind of results you can test with 
origin=devel/gettext.

egrep -l "DEPORIGIN:($origin|$ro_opd)$" $pdb/*/+CONTENTS

Obviously this works in portmaster with the gnu grep, but if ro_opd is 
unset with the bsd grep I get:

egrep: empty (sub)expression

If I set ro_opd to something, it works.


hth,

Doug

-- 

     This .signature sanitized for your protection




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4854BC29.3060507>