Date: Mon, 02 Jul 2001 17:27:48 -0700 From: Dima Dorfman <dima@unixfreak.org> To: Alfred Perlstein <bright@sneakerz.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/mountd mountd.c Message-ID: <20010703002748.C3D3F3E2F@bazooka.unixfreak.org> In-Reply-To: <20010702191342.Y84523@sneakerz.org>; from bright@sneakerz.org on "Mon, 2 Jul 2001 19:13:42 -0500"
next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein <bright@sneakerz.org> writes:
> * Dima Dorfman <dima@unixfreak.org> [010702 19:06] wrote:
> > Alfred Perlstein <bright@sneakerz.org> writes:
> > > * Dima Dorfman <dd@FreeBSD.org> [010702 18:56] wrote:
> > > > dd 2001/07/02 16:56:01 PDT
> > > >
> > > > Modified files:
> > > > sbin/mountd mountd.c
> > > > Log:
> > > > Correct handling of continuation lines. Instead of treating the
> > > > backslash as nothing, treat it like a space so that adjacent lines
> > > > aren't glued together.
> > >
> > > So now how does one use a backslash when one doesn't want a space?
> >
> > Where would you want to use a backslash? AFAIK there are no
> > parameters in exports(5) where a backslash would be valid. If you're
> > talking about using it in the middle of a word and at the end of the
> > line, like this:
> >
> > /usr -alldirs -netw\
> > ork=fish host1 host2
> >
> > then this commit puts you out of luck. However, I honestly don't see
> > why somebody would want to do that. The new sematic is much more
> > intuitive and in line with most (every?) other file format that
> > supports continuation lines. I think it's what most people would
> > expect when they use a backslash at the end of a line.
>
> #include <stdio.h>
>
> int main()
> {
>
> printf("foo\
> bar\n");
> return 1;
> }
>
> It doesn't matter much, but I wanted to see if you realized that.
Right, but cpp doesn't collapse all whitespace to begin with; mountd
does. Prior to this commit, this:
/usr/src \
/usr/ports somehost
would result in "/usr/src/usr/ports somehost", which is clearly wrong.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010703002748.C3D3F3E2F>
