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: Fri, 15 Apr 2011 00:20:19 +0200

On 14 April 2011 20:54, Antonio Diaz Diaz <address@hidden> wrote:
> I have just released ed-1.6-rc2[1]. I think it fixes all the bugs reported
> until now.
> [1] http://download-mirror.savannah.gnu.org/releases/ed/
>
> The problems related to NUL characters seem to be caused by a stupid typo in
> regex.c:

Yes, that seems to work fine.
The 'l' output is also identical to old ed, as concerns the position
of line breaks when printing control characters
and you can now search/replace nuls OK by typing them into the command
as control-V control-@

A notice a couple of differences in the 'l' command:

1) They differ in that GNU ed prints a $ after the last char of each
line whereas old ed doesn't (and the manual says nothing about this
except that it "prints the lines unambiguously".

2) Both the manual pages for GNU ed and for old ed's manuals say that
'l' paginates the output if it's longer than a screenful:
GNU ed: "If invoked from a terminal, ed pauses at the end of each page
until a newline is entered."
old ed: "If a single line fills more than one screen (as might be the
case when viewing a binary file, for instance), a ``--More--'' prompt
is printed on the last line.  ed waits until the RETURN key is pressed
before displaying the next screen."
but neither of them actually does so!

but I don't know if these matter or not.

I've published the reason I was examining the code and behviour so
closely: translating it into Lua:
http://github.com/martinwguy/lua-ed

Thanks for your work.

    M



reply via email to

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