From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-27187-garchives=archives.gentoo.org@gentoo.org>)
	id 1IhZs7-0008UL-Os
	for garchives@archives.gentoo.org; Tue, 16 Oct 2007 00:01:20 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9FNoBKl014624;
	Mon, 15 Oct 2007 23:50:11 GMT
Received: from smtp27.orange.fr (smtp27.orange.fr [80.12.242.96])
	by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9FNmFhd012299
	for <gentoo-dev@lists.gentoo.org>; Mon, 15 Oct 2007 23:48:16 GMT
Received: from me-wanadoo.net (localhost [127.0.0.1])
	by mwinf2718.orange.fr (SMTP Server) with ESMTP id C8B351C00085
	for <gentoo-dev@lists.gentoo.org>; Tue, 16 Oct 2007 01:48:15 +0200 (CEST)
Received: from naru.localdomain (APuteaux-755-1-8-114.w90-35.abo.wanadoo.fr [90.35.99.114])
	by mwinf2718.orange.fr (SMTP Server) with ESMTP id C0A201C00082
	for <gentoo-dev@lists.gentoo.org>; Tue, 16 Oct 2007 01:48:15 +0200 (CEST)
X-ME-UUID: 20071015234815789.C0A201C00082@mwinf2718.orange.fr
Received: from [10.42.0.5] (su.perronet.esiee.net [10.42.0.5])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by naru.localdomain (Postfix) with ESMTP id 1BCA3907171
	for <gentoo-dev@lists.gentoo.org>; Tue, 16 Oct 2007 12:09:55 +0200 (CEST)
Subject: Re: [gentoo-dev]  Re: Re: [gentoo-commits] gentoo-x86 commit in
	app-misc/note: ChangeLog note-1.3.3.ebuild
From: Gilles Dartiguelongue <eva@gentoo.org>
To: gentoo-dev@lists.gentoo.org
In-Reply-To:  <ff0q6e$tu0$1@ger.gmane.org>
References:  <E1IhKZ7-000421-Hg@stork.gentoo.org>
	 <20071015074250.GG23990@supernova> <200710150956.05673.bo.andresen@zlin.dk>
	 <1192437335.1277.1.camel@uberlaptop.development.ltl>
	 <20071015084353.GF30883@gentoo.org>
	 <1192439259.1277.9.camel@uberlaptop.development.ltl>
	 <ff0q6e$tu0$1@ger.gmane.org>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-CIWsrwycZ3ljQRDZToFe"
Organization: Gentoo
Date: Tue, 16 Oct 2007 01:48:13 +0200
Message-Id: <1192492093.31537.2.camel@su.perronet.esiee.net>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.12.0 
X-Archives-Salt: 9943c755-5917-4771-8b51-c3c57bf60267
X-Archives-Hash: e5ac288081a27d0813618307e3cc1492


--=-CIWsrwycZ3ljQRDZToFe
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Le lundi 15 octobre 2007 =C3=A0 23:43 +0100, Steve Long a =C3=A9crit :=20
> Roy Marples wrote:
> The unintended globbing is indeed unsafe, in the general case. I'd do thi=
s:=20
>=20
> find "$D" -type f -name '*'"$v"'.*pm' -exec rm {} +
>=20
> The shell will still treat that all as one argument (this method is
> typically used to insert variables into awk commands, or sed ones which
> use ".) The + will make the command execution more efficient for commands
> that take multiple filenames. The one caveat with + is that the {} must
> appear at the end of the command.[3]

I haven't reread the fine mans for a while but iirc, + could lead you to
hit the argument buffer limit of your shell. xargs has --max-args to get
around that and is also way faster than any -exec variant (at least
that's what the bench I did on a PIV2.6Ghz showed me about 4 months ago)

--=20
Gilles Dartiguelongue <eva@gentoo.org>
Gentoo

--=-CIWsrwycZ3ljQRDZToFe
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQBHE/w91fmVwcYIWAYRAsXDAKDJE6AXg4QbBapmvv3ekH1D4jfsgwCgwdMm
F5FhwsoG7OKXLgsWbQRIFKI=
=EPHv
-----END PGP SIGNATURE-----

--=-CIWsrwycZ3ljQRDZToFe--


-- 
gentoo-dev@gentoo.org mailing list