bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug Related to GNU diff


From: Stepan Kasal
Subject: Re: Bug Related to GNU diff
Date: Tue, 17 Jun 2003 09:23:38 +0200
User-agent: Mutt/1.2.5.1i

Hello,
        re this:

On Tue, Jun 17, 2003 at 10:59:42AM +0530, Kesavan S. wrote:
> I tried in Solaris OS. [...]
> one.txt contents:             two.txt contents:
> Line 1                        Line 1
> Line 2                        Line 2
> Line 3                        Line 4
> Line 4                        Line 4
> Line 5                        Line 5
> 
> I used the command as follows:
> 'diff -e one.txt two.txt'
> 
> The original output shud be :
> d3 1
> a3 1
> 
> But the utility results in the following:
> d3 1
> 
> a4 1
> Line 4
> 
> So, I feel the above result is WRONG!!

I get these on my GNU/Linux:
$ diff --version
diff - GNU diffutils version 2.7
$ diff -e one.txt two.txt
3c
Line 4
.

> Is this reported already?? If yes, is there any solution available??
> Awaiting reply.

Which version of GNU diff do you use?  Perhaps the problem is that you
use the diff supplied with the Solaris.
In that case I'd suggest using the GNU version; it's available from
www.sunfreeware.com, from a supplement CD-ROM you probably have in your
Solaris box, or directly from ftp://ftp.gnu.org/gnu/diffutils

HTH,
        Stepan Kasal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]