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 ) id 1IhL0R-0006Y0-Mr for garchives@archives.gentoo.org; Mon, 15 Oct 2007 08:08:56 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9F7vvew018992; Mon, 15 Oct 2007 07:57:57 GMT Received: from cicero3.cybercity.dk (cicero3.cybercity.dk [212.242.43.248]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9F7u7iS016707 for ; Mon, 15 Oct 2007 07:56:07 GMT Received: from user2.cybercity.dk (user2.cybercity.dk [212.242.41.35]) by cicero3.cybercity.dk (Postfix) with ESMTP id 3719D2619B1; Mon, 15 Oct 2007 09:56:06 +0200 (CEST) Received: from BA (port78.ds1-abs.adsl.cybercity.dk [212.242.227.17]) by user2.cybercity.dk (Postfix) with SMTP id 5718C2866B3; Mon, 15 Oct 2007 09:56:06 +0200 (CEST) Received: by BA (sSMTP sendmail emulation); Mon, 15 Oct 2007 09:56:06 +0200 From: Bo =?iso-8859-1?q?=D8rsted_Andresen?= To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-misc/note: ChangeLog note-1.3.3.ebuild Date: Mon, 15 Oct 2007 09:56:02 +0200 User-Agent: KMail/1.9.7 References: <20071015074250.GG23990@supernova> In-Reply-To: <20071015074250.GG23990@supernova> Cc: opfer@gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1413066.gLZ9yrSoZp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200710150956.05673.bo.andresen@zlin.dk> X-Archives-Salt: b745d318-3aad-480d-8a5a-ebbbdf77a1b3 X-Archives-Hash: 3cdd5812d7bac57b6f8daede2a6de05c --nextPart1413066.gLZ9yrSoZp Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 15 October 2007 09:42:50 Donnie Berkholz wrote: > On 07:40 Mon 15 Oct , Christian Faulhammer (opfer) wrote: > > 1.1 app-misc/note/note-1.3.3.ebuild > > > > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/note/no= te-1.3.3.ebuild?rev=3D1.1&view=3Dmarkup > > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/note/no= te-1.3.3.ebuild?rev=3D1.1&content-type=3Dtext/plain > > > > for v in mysql text dbm general; do > > if ! use ${v}; then > > for u in `find "${D}" -type f -name *${v}.*pm`; do > > rm ${u} > > Looks like 'u' could have spaces in it, since it's based on D. Written like this u certainly can't since the output of the find expression= is subjected to word splitting before u gets set. Hence this will fail if ${D} contains spaces even if ${u} gets quoted. The best way to solve this is to = use find ... -print0 | xargs -0 rm. Unfortunately that solution means using GNU extensions that I'm not sure are guaranteed to be available in the ebuild environment. If they aren't maybe they should be. =2D-=20 Bo Andresen --nextPart1413066.gLZ9yrSoZp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBHEx0V8/kKEzmwNNoRAqpmAJwOrLC8PWN4eRxLSXnlgXw6VmAwmACcDsrO HQFeLiEtPOmluFB99BBxio4= =zha4 -----END PGP SIGNATURE----- --nextPart1413066.gLZ9yrSoZp-- -- gentoo-dev@gentoo.org mailing list