From owner-freebsd-arch Thu Apr 25 21:18: 0 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 11F9F37B417; Thu, 25 Apr 2002 21:17:48 -0700 (PDT) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g3Q4Hjn5531326; Fri, 26 Apr 2002 00:17:45 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20020426000849.C43192@espresso.q9media.com> References: <20020425210035.A43192@espresso.q9media.com> <20020425.202217.82927028.imp@village.org> <20020426000849.C43192@espresso.q9media.com> Date: Fri, 26 Apr 2002 00:17:44 -0400 To: Mike Barcroft , "M. Warner Losh" From: Garance A Drosihn Subject: Re: diff & patch problem with 'No newline' Cc: arch@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 12:08 AM -0400 4/26/02, Mike Barcroft wrote: >M. Warner Losh writes: > > There's lots of software (well, OK, subversion) that > > depends on the old, historical behavior. The historical > > behavior of diff has been to include the "this file > > doesn't end with a newline" message, not what FreeBSD > > hacked it to do. > >Perhaps the people working on Subversion still have time >to fix that design before too many people start using it. >Solaris 2.5.1, for instance, returns "Warning: missing >newline at end of file" on stderr for this condition. They probably will fix it, by writing their own diff and their own patch. The same way other packages fix it, by requiring that the user install gnu-diff & gnu-patch. I am still wondering who it is that is better off given the standard behavior than this particular non-standard behavior. Not "better off" in the sense that "it is better to follow standards", but "better off" in the sense that it is easier to get their work done, and the sun shines brighter, and beer tastes better -- all because the standard does not allow patch+diff to handle this simple case of a file which is missing the last newline character. but that's enough from me for tonight... -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message