delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/23/15:40:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Rolf Campbell <rcampbell-cygwin AT dragonwaveinc DOT com>
Subject: Re: Wrong/ inconsistent responses from diff
Date: Mon, 23 Aug 2010 15:40:02 -0400
Lines: 23
Message-ID: <i4uiqj$8h6$1@dough.gmane.org>
References: <4C727E51 DOT 2060103 AT bonhard DOT uklinux DOT net>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
In-Reply-To: <4C727E51.2060103@bonhard.uklinux.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On 2010-08-23 09:57, Fergus wrote:
> Somehow diff identifies differences in two identical binary files. In
> the following example two duplicate files are located (i) in my home
> directory (/m/home/user) and (ii) at the root of a different drive (D:).
>
[snip]
> ~> diff -s INTERVAL.pdf /d/INTERVAL.pdf
> Files INTERVAL.pdf and /d/INTERVAL.pdf differ
> ~> diff -s ./INTERVAL.pdf /d/INTERVAL.pdf
> Files ./INTERVAL.pdf and /d/INTERVAL.pdf differ
> ~> diff -s ~/INTERVAL.pdf /d/INTERVAL.pdf
> Files /home/user/INTERVAL.pdf and /d/INTERVAL.pdf differ
> ~> diff -s /home/user/INTERVAL.pdf /d/INTERVAL.pdf
> Files /home/user/INTERVAL.pdf and /d/INTERVAL.pdf differ
> ~> diff -s /m/home/user/INTERVAL.pdf /d/INTERVAL.pdf
> Files /m/home/user/INTERVAL.pdf and /d/INTERVAL.pdf are identical
>
> Using XP Pro SP3. This happens with the current cygwin1.dll and the
> snapshot dated 20100822.
>
> Fergus

Try using "diff --binary"


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

- Raw text -


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