Date: Mon, 1 Nov 2004 21:55:39 +0200 From: Giorgos Keramidas <keramida@freebsd.org> To: Jilles Tjoelker <jilles@stack.nl> Cc: freebsd-current@freebsd.org Subject: Re: exports typo Message-ID: <20041101195539.GB2127@gothmog.gr> In-Reply-To: <20041101183035.GC22427@stack.nl> References: <000901c4bfdc$6d1c2d50$0200000a@redline> <20041101164117.M14827@mp2.macomnet.net> <20041101135250.GA41645@orion.daedalusnetworks.priv> <20041101183035.GC22427@stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-11-01 19:30, Jilles Tjoelker <jilles@stack.nl> wrote: > On Mon, Nov 01, 2004 at 03:52:51PM +0200, Giorgos Keramidas wrote: > > > > A minor buglet still remains, IMHO: > > > > - vsystem("echo '# Note that BSD's export syntax is \"host-centric\" vs. Sun\'s \"FS-centric\" one.' >> /etc/exports"); > > + vsystem("echo '# Note that BSD\'s export syntax is \"host-centric\" vs. Sun\'s \"FS-centric\" one.' >> /etc/exports"); > > In /bin/sh, the backslash is not special in single quotes. Try this (not > tested either): > > > - vsystem("echo '# Note that BSD's export syntax is \"host-centric\" vs. Sun\'s \"FS-centric\" one.' >> /etc/exports"); > > + vsystem("echo '# Note that BSD'"'"'s export syntax is \"host-centric\" vs. Sun'"'"'s \"FS-centric\" one.' >> /etc/exports"); This, or the bash-like syntax of: vsystem("echo '# Note that BSD'\\''s export syntax...' >> /etc/exports"); Good catch, Jilles :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041101195539.GB2127>