This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Wrong/ inconsistent responses from diff


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]