From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl3kk-0002w2-6t for qemu-devel@nongnu.org; Wed, 01 Oct 2008 11:36:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl3ki-0002uE-9c for qemu-devel@nongnu.org; Wed, 01 Oct 2008 11:36:37 -0400 Received: from [199.232.76.173] (port=39016 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl3ki-0002u3-5n for qemu-devel@nongnu.org; Wed, 01 Oct 2008 11:36:36 -0400 Received: from rv-out-0708.google.com ([209.85.198.244]:19524) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kl3kh-0002tc-Tp for qemu-devel@nongnu.org; Wed, 01 Oct 2008 11:36:36 -0400 Received: by rv-out-0708.google.com with SMTP id f25so559575rvb.22 for ; Wed, 01 Oct 2008 08:36:29 -0700 (PDT) Message-ID: <761ea48b0810010836l333ff216v6d47b2c93eda8cf3@mail.gmail.com> Date: Wed, 1 Oct 2008 17:36:29 +0200 From: "Laurent Desnogues" Subject: Re: [Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./ In-Reply-To: <20081001152929.GC31395@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1222873814-32003-1-git-send-email-ryanh@us.ibm.com> <20081001152929.GC31395@us.ibm.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 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,^\./,,'? Laurent