X-Recipient: archive-cygwin@delorie.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@cygwin.com
From: Rolf Campbell <rcampbell-cygwin@dragonwaveinc.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.2060103@bonhard.uklinux.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

