exports typo

Giorgos Keramidas keramida at freebsd.org
Mon Nov 1 11:55:48 PST 2004


On 2004-11-01 19:30, Jilles Tjoelker <jilles at 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 :-)



More information about the freebsd-current mailing list