From owner-freebsd-ports@FreeBSD.ORG Thu Feb 10 02:41:00 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 1DCE316A4CE for ; Thu, 10 Feb 2005 02:41:00 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC41F43D31 for ; Thu, 10 Feb 2005 02:40:59 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from [192.168.2.100] (utdvpn084051.utdallas.edu [129.110.84.51]) by smtp1.utdallas.edu (Postfix) with ESMTP id 69125388DAA; Wed, 9 Feb 2005 20:40:59 -0600 (CST) Date: Wed, 09 Feb 2005 20:40:58 -0600 From: Paul Schmehl To: danny@ricin.com, ports@freebsd.org Message-ID: <2147483647.1107981658@[192.168.2.100]> In-Reply-To: <200502100327.17768.danny@ricin.com> References: <200502100327.17768.danny@ricin.com> X-Mailer: Mulberry/3.0.3 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Small REINPLACE_CMD headache... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2005 02:41:00 -0000 --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? Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu