Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!udel!haven!decuac!pa.dec.com!hollie.rdg.dec.com!decuk.uvo.dec.com!shlump.nac.dec.com!engage!ynotme.enet.dec.com!wallace From: wallace@ynotme.enet.dec.com (Ray Wallace) Newsgroups: comp.sys.atari.st Subject: Re: CR/LF issues Message-ID: <1991Feb15.175234.15474@engage.enet.dec.com> Date: 15 Feb 91 17:42:09 GMT Sender: news@engage.enet.dec.com (USENET News System) Organization: Digital Equipment Corporation Lines: 24 In article <4865@ruuinf.cs.ruu.nl>, piet@cs.ruu.nl (Piet van Oostrum) writes... >This brings me to another question: > >I am porting the GNU diff(3) programs and now I come to an intersting >problem: What to do when comparing two files that differ only in the CR? ... > separator. And there is no way to indicate the ABSENCE of the CR. The VMS difference program shows "" (ie: 4 ascii characters) at the end of the lines if one file has them and the other doesn't. >GNU diff has a -a (ASCII) option. I think I will consider the files the >same if -a is given, and different otherwise. But still the above mentioned Most definitly have a switch to disable this feature. The VMS utility does not and it is a real pain. Yes I want to be able to find out if the files have different line terminators, but once I know that I want to see the diff's excluding the terminators (which would be the whole file of course). --- Ray Wallace (INTERNET,UUCP) wallace@oldtmr.enet.dec.com (UUCP) ...!decwrl!oldtmr.enet!wallace (INTERNET) wallace%oldtmr.enet@decwrl.dec.com ---