Date: Thu, 4 Nov 2004 10:31:18 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: "David O'Brien" <obrien@freebsd.org> Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.sbin/sysinstall config.c Message-ID: <20041104083118.GA36569@gothmog.gr> In-Reply-To: <20041104012919.GA18156@dragon.nuxi.com> References: <200411011632.iA1GWA8q030777@repoman.freebsd.org> <20041101170748.GA81210@wombat.fafoe.narf.at> <20041103124033.GA34455@orion.daedalusnetworks.priv> <20041104012919.GA18156@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-11-03 17:29, David O'Brien <obrien@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041104083118.GA36569>