Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 18 Oct 2002 21:59:03 -0400 (EDT)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: cbfalconer@worldnet.att.net
cc: cygwin@cygwin.com
Subject: Re: <crlf> vs <lf> and use of diff
In-Reply-To: <3DB0B48A.CCCE6B8A@yahoo.com>
Message-ID: <Pine.GSO.4.44.0210182157480.6818-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

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.  The tests are run by a .bat file, and want to also
> be runnable by a shell script.
>
> 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.
>
> I am using diff 2.8 on DJGPP, diff 2.8.1 on Cygwin.  Is this a
> porting bug or a GNU bug or neither, and is there a workaround.
>
> I also thought that I had read somewhere that the cygwin libraries
> generated <crlf> output lines, but it is obviously not so.
>
> Yes, I have read the FAQ and the UG.  Maybe I missed something.

Chuck,
mount the directory with DJPP makefiles in text mode.  Then the newly
produced files will have crlf line endings.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
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/

