Re: vi/nvi: in the context of a :g the :t command improperly identifies the current line

2023-07-13 Thread Tim Chase
On 2023-07-13 13:28, Todd C. Miller wrote: > Yes, that looks like a bug. Historic vi behaves as expected. A peculiar observation: if I merely add a space after the "-" :g/^pattern/1t- becoming :g/^pattern/1t-{space} it seems to work as expected. Perhaps something in the parsing of the t

Re: vi/nvi: in the context of a :g the :t command improperly identifies the current line

2023-07-13 Thread Todd C . Miller
Yes, that looks like a bug. Historic vi behaves as expected. - todd

vi/nvi: in the context of a :g the :t command improperly identifies the current line

2023-07-13 Thread Tim Chase
(tested on 7.3-RELEASE on amd64 and i386, FWIW, but I suspect the issue is cross-arch, since it also happens in nvi(1) on FreeBSD) With the following file: $ cat < test.txt blank line above pattern line one pattern line two EOF The aim was to copy that first blank line before each of