From owner-freebsd-ports@FreeBSD.ORG Thu Feb 10 03:24:29 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 124C416A4CE for ; Thu, 10 Feb 2005 03:24:29 +0000 (GMT) Received: from out003.verizon.net (out003pub.verizon.net [206.46.170.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81BC043D49 for ; Thu, 10 Feb 2005 03:24:28 +0000 (GMT) (envelope-from reso3w83@verizon.net) Received: from ringworm.mechee.com ([4.26.84.7]) by out003.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050210032427.PYAX7729.out003.verizon.net@ringworm.mechee.com>; Wed, 9 Feb 2005 21:24:27 -0600 Received: by ringworm.mechee.com (Postfix, from userid 1001) id AF6532CE79A; Wed, 9 Feb 2005 19:20:19 -0800 (PST) From: "Michael C. Shultz" To: Danny Pansters User-Agent: KMail/1.7.2 References: <200502100327.17768.danny@ricin.com> <2147483647.1107981658@[192.168.2.100]> <200502100345.58447.danny@ricin.com> In-Reply-To: <200502100345.58447.danny@ricin.com> MIME-Version: 1.0 Content-Disposition: inline Date: Wed, 9 Feb 2005 19:20:19 -0800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200502091920.19312.reso3w83@verizon.net> X-Authentication-Info: Submitted using SMTP AUTH at out003.verizon.net from [4.26.84.7] at Wed, 9 Feb 2005 21:24:27 -0600 cc: ports@freebsd.org Subject: Re: Small REINPLACE_CMD headache... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2005 03:24:29 -0000 On Wednesday 09 February 2005 06:45 pm, Danny Pansters wrote: > On Thursday 10 February 2005 03:40, Paul Schmehl wrote: > > --On Thursday, February 10, 2005 3:27 AM +0100 Danny Pansters > > > > wrote: > > > I get Syntax error: Unterminated quoted string > > > > > > I wanted to > > > @${REINPLACE_CMD} -e \ > > > "s,\"machine/soundcard.h\",," file > > > > > > It seems to go wrong there, what's the proper way to escape > > > quotes in a s/x/y/ like this? It's included in double quotes > > > (and wrong), I want to change it to a include. > > > > Since you're using commas as the field limiters, wouldn't it be: > > > > @${REINPLACE_CMD} -e \ > > "s,"machine/soundcard.h",," file? > > That was what I initially had. Perhaps my Makefile has a problem > before. Can I get feedback on that anywhere (other than w/ portlint)? > > Thanks, > > Dan ***CORECTION*** Try @${REINPLACE_CMD} -e \ 's|"machine/soundcard.h"||g' file Don't escape the quotes and no comma after g' -Mike