Re: diff & patch problem with 'No newline'

[ Available lists | Index of freebsd-standards | Month of Apr 2002 | Week of 25 Apr 2002 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Garance A Drosihn <drosih@rpi.edu>
Date
25 Apr 2002 21:17:53
Subject
Re: diff & patch problem with 'No newline'
Message-ID
p05111719b8ee8447f9d3@[128.113.24.47]


[ Hide this part ]
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



Elapsed time: 0.335 seconds