From owner-cvs-all Mon Jul 2 17:27:56 2001 Delivered-To: cvs-all@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 623BB37B401; Mon, 2 Jul 2001 17:27:49 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id C3D3F3E2F; Mon, 2 Jul 2001 17:27:48 -0700 (PDT) To: Alfred Perlstein Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/mountd mountd.c In-Reply-To: <20010702191342.Y84523@sneakerz.org>; from bright@sneakerz.org on "Mon, 2 Jul 2001 19:13:42 -0500" Date: Mon, 02 Jul 2001 17:27:48 -0700 From: Dima Dorfman Message-Id: <20010703002748.C3D3F3E2F@bazooka.unixfreak.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein writes: > * Dima Dorfman [010702 19:06] wrote: > > Alfred Perlstein writes: > > > * Dima Dorfman [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 > > 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