delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/05/21:52:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 5 Mar 2005 21:52:16 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Arend-Jan Westhoff <jpmcyafvmhsl AT spammotel DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Bug diff 2.8.7: Separate dir
In-Reply-To: <20050306014821.3C2D721016A@warserver.warande.net>
Message-ID: <Pine.GSO.4.61.0503052147330.14305@slinky.cs.nyu.edu>
References: <20050306014821 DOT 3C2D721016A AT warserver DOT warande DOT net>
MIME-Version: 1.0

On Sun, 6 Mar 2005, Arend-Jan Westhoff wrote:

> Thanks for the explanation. However I don't quite understand this is
> what one would want.

I'll let someone else address most of your points except one:

> It also seems inconsequent if what you say is truely correct and what is
> intended that when I use my file 'a' from my original example and do the
> following:
> 	copy a b
> that then:
> 	diff ./a .\b
> says that the files are completely different, whereas:
> 	diff ./a .\a
> says they are completely equal, while files a and b are character for
> character identical!

diff has an optimization that compares the arguments' inodes, and reports
identity for the files with the same inode.  No matter which slash you
use, they both resolve to the same file (only the metadata may be
different), so the inode is the same.  The inodes for "a" and "b" aren't
the same, so diff goes ahead and does the comparison (which reports the
differences in line endings).  Try "ln a c" and compare "a" with "c" using
your syntax. :-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019