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
Yes, that looks like a bug. Historic vi behaves as expected.
- todd
(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