[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sdiff version 2.8.1 - compares the wrong line
From: |
Eli Zaretskii |
Subject: |
Re: sdiff version 2.8.1 - compares the wrong line |
Date: |
Mon, 16 Feb 2004 11:49:54 +0200 |
> From: minimoa <address@hidden>
> Date: Sun, 15 Feb 2004 20:46:08 +0100
>
> sdiff -s (version 2.8.1) does not recognize inserted line in following
> example:
>
> old file:
> epsxe 1.5.2
> esound-devel 0.2.29
> esound 0.2.29
> estic 1.60
>
> new file:
> epsxe 1.5.2
> eric 3.2
> esound-devel 0.2.32
> esound 0.2.32
> estic 1.60
>
> sdiff -s old new gives this output:
> esound-devel 0.2.29 | eric 3.2
> esound 0.2.29 | esound-devel 0.2.32
> estic 1.60 | esound 0.2.32
> > estic 1.60
>
> however, it should say:
> > eric 3.2
> esound-devel 0.2.2 | esound-devel 0.2.32
> esound 0.2.29 | esound 0.2.32
IMHO, it's not a bug: `diff' (which is the comparison engine used by
`sdiff', try "diff -c old new" in your case and you will see the same
``problem'') is not guaranteed to generate a result that is
``correct'' in your sense of the word. It is just guaranteed to
produce a result that represents the differences accurately, that's
all.