delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/10/17:01:03

Sender: richdawe AT bigfoot DOT com
Message-ID: <37600960.264A046D@bigfoot.com>
Date: Thu, 10 Jun 1999 19:52:16 +0100
From: Richard Dawe <richdawe AT bigfoot DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: output from diff --binary
References: <199906091612 DOT LAA13076 AT darwin DOT sfbr DOT org>
Reply-To: djgpp AT delorie DOT com

Hello.

Jeff Williams wrote:
<snip>
> It seems that the output produced by the `--binary' switch
> lacks a terminal \n.  Can others confirm this behavior?  (Interestingly,
> I do not see the problem if I redirect the output from the scripts.)

I also have seen this behaviour when comparing two directory trees:

diff -s --binary -r dir1 dir2

IIRC. It only seems to do a linefeed, no carriage return on lines like "x
and y are identical", so you get staggered lines:

x and y are identical
                     a and b are identical
...etc...

I haven't tried '--binary' without these switches. The output is OK after
redirection.

This is from diff from diffutils 2.7.1 - here's the file info:

-rwxrwxr-x   1 root     dosusers   134656 Oct 19  1996
/mnt/dose/djgpp/bin/diff.exe*

HTH in diagnosing the problem.

-- 
==========================================================================
       Rich Dawe - 4th-year MSci Physicist @ Bristol University, UK
         richdawe AT bigfoot DOT com, http://www.bigfoot.com/~richdawe/
==========================================================================

- Raw text -


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