Re: [hackers] [sbase][PATCH] ed: Allow newlines in a Substitute Command

From: Rene Kita <mail_AT_rkta.de>
Date: Wed, 15 Nov 2023 08:56:56 +0100

On Tue, Nov 14, 2023 at 07:42:03PM +0100, Roberto E. Vargas Caballero wrote:
> Hi,
>
> On Sun, Nov 05, 2023 at 02:38:20PM +0100, Rene Kita wrote:
> > On Fri, Nov 03, 2023 at 01:32:37PM +0100, Rene Kita wrote:
> > > borked patch
> >
> > Patch is not sufficient, sorry for the noise.
>
[...]
> I think the way to fix this problem is reading the full command before
> executing it, otherwise there are so many traps. I am going to try to
> fix this in th enext days.

I had the same idea. Reading the full command will put the
logic to detect the end of the command in one place. This should give
better code.

Also, you will have to change how addresses for the global command are
collected/remembered. We need to act on the original lines and not on
the lines inserted by a global command.
Received on Wed Nov 15 2023 - 08:56:56 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 15 2023 - 09:36:35 CET