From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl9Vc-0007A2-4S for qemu-devel@nongnu.org; Wed, 01 Oct 2008 17:45:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl9Vb-00079b-2l for qemu-devel@nongnu.org; Wed, 01 Oct 2008 17:45:23 -0400 Received: from [199.232.76.173] (port=56597 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl9Va-00079Y-TS for qemu-devel@nongnu.org; Wed, 01 Oct 2008 17:45:22 -0400 Received: from hall.aurel32.net ([88.191.82.174]:55918) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kl9Va-00038S-C0 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 17:45:22 -0400 Received: from volta.aurel32.net ([2002:52e8:2fb:1:21e:8cff:feb0:693b]) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Kl9VY-0002nQ-HK for qemu-devel@nongnu.org; Wed, 01 Oct 2008 23:45:20 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1Kl9VT-00013M-Nl for qemu-devel@nongnu.org; Wed, 01 Oct 2008 23:45:15 +0200 Date: Wed, 1 Oct 2008 23:45:15 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./ Message-ID: <20081001214515.GA31270@volta.aurel32.net> References: <1222873814-32003-1-git-send-email-ryanh@us.ibm.com> <20081001152929.GC31395@us.ibm.com> <761ea48b0810010836l333ff216v6d47b2c93eda8cf3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <761ea48b0810010836l333ff216v6d47b2c93eda8cf3@mail.gmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Oct 01, 2008 at 05:36:29PM +0200, Laurent Desnogues wrote: > On Wed, Oct 1, 2008 at 5:29 PM, Ryan Harper wrote: > > * Andreas Schwab [2008-10-01 10:23]: > >> Ryan Harper writes: > >> > >> > - find . -name "*.[ch]" -print > ./cscope.files > >> > + find . -name "*.[ch]" -print | sed 's,./,,' > ./cscope.files > >> > >> This will also match 'a/'. > > > > Is there a case where the find command we're using would output > > something without './' in the first to characters in each line where > > that case would be an issue? > > Why not using sed 's,^\./,,'? > I applied this version, thanks. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net