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 1IhLcg-0007YI-9A for garchives@archives.gentoo.org; Mon, 15 Oct 2007 08:48:27 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9F8bRs3005801; Mon, 15 Oct 2007 08:37:27 GMT Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9F8ZaKS003574 for ; Mon, 15 Oct 2007 08:35:37 GMT Received: from [10.73.1.31] (uberlaptop.marples.name [10.73.1.31]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.marples.name (Postfix) with ESMTP id 26D53190038 for ; Mon, 15 Oct 2007 09:35:36 +0100 (BST) Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-misc/note: ChangeLog note-1.3.3.ebuild From: Roy Marples To: gentoo-dev@lists.gentoo.org In-Reply-To: <200710150956.05673.bo.andresen@zlin.dk> References: <20071015074250.GG23990@supernova> <200710150956.05673.bo.andresen@zlin.dk> Content-Type: text/plain; charset=utf-8 Organization: Gentoo Date: Mon, 15 Oct 2007 09:35:35 +0100 Message-Id: <1192437335.1277.1.camel@uberlaptop.development.ltl> 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 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l9F8bRtj005801 X-Archives-Salt: 67ae650c-0311-4e6a-9e87-3c4fd22433e8 X-Archives-Hash: 5e61616ed2e274e7fde5a001360c1256 On Mon, 2007-10-15 at 09:56 +0200, Bo =C3=98rsted Andresen wrote: > 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/not= e/note-1.3.3.ebuild?rev=3D1.1&view=3Dmarkup > > > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/not= e/note-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. >=20 > Written like this u certainly can't since the output of the find expres= sion 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 ebui= ld > environment. If they aren't maybe they should be. >=20 find "${D}" -type f -name *${v}.*pm -delete Thanks Roy --=20 gentoo-dev@gentoo.org mailing list