delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/06/14:27:08

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: Sun, 6 Mar 2005 11:26:55 -0800
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Bug diff 2.8.7: Separate dir
Message-ID: <20050306192655.GB332@efn.org>
References: <20050306014821 DOT 3C2D721016A AT warserver DOT warande DOT net> <Pine DOT GSO DOT 4 DOT 61 DOT 0503052147330 DOT 14305 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.61.0503052147330.14305@slinky.cs.nyu.edu>
User-Agent: Mutt/1.4.1i
Organization: bs"d
X-IsSubscribed: yes

On Sat, Mar 05, 2005 at 09:52:16PM -0500, Igor Pechtchanski wrote:
> On Sun, 6 Mar 2005, Arend-Jan Westhoff wrote:
> > 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. :-)

This part does sound like a bug.  Perhaps this diff optimization
should be suppressed, since in cases like this, ./a and .\a have
effectively different content.

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