CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

Gabor Kovesdan gabor at FreeBSD.org
Sun Jun 15 19:16:24 UTC 2008


Doug Barton escribió:
> 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.
Hello Doug,

thanks a lot for you response! I'll look at this issue.

Regards,

-- 
Gabor Kovesdan

EMAIL: gabor at FreeBSD.org
WWW:   http://www.kovesdan.org



More information about the freebsd-hackers mailing list