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

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

Re: inserting a single dot line: patch --ed seems to generate incorrect


From: Stepan Kasal
Subject: Re: inserting a single dot line: patch --ed seems to generate incorrect results (unlike ed)
Date: Mon, 19 Jul 2004 11:46:25 +0200
User-agent: Mutt/1.4.1i

Hello all,

On Mon 2004-06-28 Tobias Reif wrote:
>   $ diff --ed old new > diff.ed
>   $ cat diff.ed
>   1a
>   ..
>   .
>   s/.//
>   a
>   .
>   $
> 
> (the last two lines seem unnecessary, btw)

well, this result is quite logical, as each line which contais just a dot
is replaced by
        ..
        .
        s/.//
        a

Anyway, you are right and we can optimized this out.
The appropriate patch to diffutils-2.8.7 is attached to this mail.

Paul, will you accept it?

Stepan

Attachment: diffutils-2.8.7-ed-optimize.patch
Description: Text document


reply via email to

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