Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2002 00:17:44 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Mike Barcroft <mike@FreeBSD.ORG>, "M. Warner Losh" <imp@village.org>
Cc:        arch@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG
Subject:   Re: diff & patch problem with 'No newline'
Message-ID:  <p05111719b8ee8447f9d3@[128.113.24.47]>
In-Reply-To: <20020426000849.C43192@espresso.q9media.com>
References:  <p05101422b88ba26bec5e@[128.113.24.47]> <p05111715b8ee4710a108@[128.113.24.47]> <20020425210035.A43192@espresso.q9media.com> <20020425.202217.82927028.imp@village.org> <20020426000849.C43192@espresso.q9media.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:08 AM -0400 4/26/02, Mike Barcroft wrote:
>M. Warner Losh <imp@village.org> 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-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111719b8ee8447f9d3>