This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: <crlf> vs <lf> and use of diff
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: cygwin at cygwin dot com,cbfalconer at worldnet dot att dot net
- Date: Fri, 18 Oct 2002 22:16:12 -0400
- Subject: Re: <crlf> vs <lf> and use of diff
- References: <3DB0B48A.CCCE6B8A@yahoo.com>
On Fri, 18 Oct 2002, CBFalconer wrote:
> I have some makefiles used with DJGPP which perform regression and
> portability tests on my software. They check things by doing a
> run and then executing "diff -q" between the captured run and a
> saved version.
>
> They don't work. The saved versions have <crlf> line endings, and
> the newly created files have <lf> endings. I thought that diff
> ignored these differences as long as the files were not binary (no
> <nul>s). The -a option makes no difference. I don't want to
> revise the saved files because that would foul their utility
> elsewhere.
diff --help
--strip-trailing-cr Strip trailing carriage return on input.
Pierre
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/