cvs commit: src/usr.sbin/sysinstall config.c

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Nov 4 00:31:28 PST 2004


On 2004-11-03 17:29, David O'Brien <obrien at 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


More information about the cvs-src mailing list