bug-ed
[Top][All Lists]
Advanced

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

Re: [Bug-ed] Two more buglets


From: Martin Guy
Subject: Re: [Bug-ed] Two more buglets
Date: Tue, 12 Apr 2011 17:33:52 +0200

On 12 April 2011 17:18, Antonio Diaz Diaz <address@hidden> wrote:
> Martin Guy wrote:
> BTW, ed-0.2 man page already said in 1994 that "ed is a line-oriented text
> editor", so I am not sure how many binary editing capabilities should ed
> have. (just my 2 cents).

Agreed.
I'g guess that POSIX compliance is the first priority, with undefined
behaviour aiming to mimic V7 ed.
That way we have the best shot at being able to run existing ed scripts.

>> "list"ing a line containing control characters may overflow the
>> specified line length.  For example, if the line width is the default
>> of 72 characters, a control characters after the 71st gets printed in
>> the 72-75th spaces followed by a \
>
> This bug was present in ed-0.2. I'll double-check that it can be fixed
> without breaking any other thing.

V7 ed seems to do exactly the same thing, which suggests leaving it so
that the same testsuite can be used for both.
In the end, it always sets line length to (window_width - 8), maybe to
leave space for the trailing \ and some overflow.

> I can do it now if nobody objects.

it's a funny turn of events that, in the beginning, it was the troff
typesetting system that kept Unix alive as a marketable product.
Now it's Unix that keeps troff alive for the sole reason of the man pages :D

    M



reply via email to

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