From owner-cvs-all@FreeBSD.ORG Thu Nov 4 08:31:28 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A90816A4CE; Thu, 4 Nov 2004 08:31:28 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34AC443D41; Thu, 4 Nov 2004 08:31:22 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a041.otenet.gr [212.205.215.41]) iA48VJHO032060; Thu, 4 Nov 2004 10:31:20 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id iA48VIh1036923; Thu, 4 Nov 2004 10:31:18 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id iA48VIVn036922; Thu, 4 Nov 2004 10:31:18 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 4 Nov 2004 10:31:18 +0200 From: Giorgos Keramidas To: "David O'Brien" Message-ID: <20041104083118.GA36569@gothmog.gr> References: <200411011632.iA1GWA8q030777@repoman.freebsd.org> <20041101170748.GA81210@wombat.fafoe.narf.at> <20041103124033.GA34455@orion.daedalusnetworks.priv> <20041104012919.GA18156@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041104012919.GA18156@dragon.nuxi.com> cc: cvs-src@freebsd.org cc: Stefan Farfeleder cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.sbin/sysinstall config.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2004 08:31:28 -0000 On 2004-11-03 17:29, David O'Brien wrote: > On Wed, Nov 03, 2004 at 02:40:33PM +0200, Giorgos Keramidas wrote: > > I've discovered after submitting the change David committed that \' is > > not enough to quote single quotes in strings quoted with single quotes > > too. The correct quoting would be something like: > > > > vsystem("echo '# Note that BSD'\''s export syntax is \"host-centric\" vs. Sun'\''s \"FS-centric\" one.' >> /etc/exports"); > > This isn't a fix either -- what is '\'' supose to do? Using \' to quote a single quote does not work in 'quoted material'. It does work outside 'quoted material' though: $ echo "Sun's Solaris" Sun's Solaris $ echo 'Sun'\''s Solaris' Sun's Solaris