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 Subject: Re: Wrong/ inconsistent responses from diff Date: Mon, 23 Aug 2010 15:40:02 -0400 Lines: 23 Message-ID: References: <4C727E51 DOT 2060103 AT bonhard DOT uklinux DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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