Re: exports typo

From: Giorgos Keramidas <keramida_at_freebsd.org>
Date: Mon, 1 Nov 2004 21:55:39 +0200
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 :-)
Received on Mon Nov 01 2004 - 18:55:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:20 UTC