Date: Thu, 07 Feb 2013 11:41:27 +0100 From: Armin Pirkovitsch <sperber@freebsd.org> To: <mexas@bristol.ac.uk> Cc: avilla@freebsd.org, lists@eitanadler.com, bapt@freebsd.org, freebsd-ports@freebsd.org Subject: Re: [CFT+BRAINSTORM] One =?UTF-8?Q?USE=5F=20to=20rule=20them=20al?= =?UTF-8?Q?l?= Message-ID: <a306de1b05db855666fed025458a3a7f@frozen-zone.org> In-Reply-To: <201302071036.r17AagEa054065@mech-cluster241.men.bris.ac.uk> References: <201302071036.r17AagEa054065@mech-cluster241.men.bris.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-02-07 11:36, Anton Shterenlikht wrote: > Date: Thu, 7 Feb 2013 10:52:01 +0100 > From: Baptiste Daroussin <bapt@FreeBSD.org> > To: Alberto Villa <avilla@freebsd.org> > Subject: Re: [CFT+BRAINSTORM] One USE_ to rule them all > > On Thu, Feb 07, 2013 at 09:54:59AM +0100, Alberto Villa wrote: > > On Thursday 07 February 2013 06:32:54 Armin Pirkovitsch wrote: > > > # find /usr/ports -name Makefile | xargs grep -R FEATURES | wc > -l > > > 82 > > > # find /usr/ports -name Makefile | xargs grep -R USES | wc -l > > > 20 > > >=20 > > > Sounds to me like there are less false positives for USES. > >=20 > > Add -w and USES wins: > > $ find /usr/ports -name Makefile | xargs grep -Rw FEATURES | wc -l > > 37 > > $ find /usr/ports -name Makefile | xargs grep -Rw USES | wc -l > > 0 > > Is "-R" really needed in this case? > I think there is no recursion as you > already found all files. Anyway, > I get the same answers with no "-R". You are of course right - i just copied the grep and forgot to remove "-R" - when you give grep a specific file (which happens in this case) "-R" has no effect. Armin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a306de1b05db855666fed025458a3a7f>