[Bug 270048] nvi(1) errors when g//!{cmd} modifies the number of lines

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Mar 2023 22:40:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270048

--- Comment #1 from Tim Chase <freebsd@tim.thechases.com> ---
Further testing suggests that *any* command that increases the number of lines
seems to trigger the issue, so

    $ nvi
    :r !jot 100
    :g/^/.!sed G

to doublespace lines has similar error (and messed up results, with *every
other/odd* line getting a blank line, rather than each even line) and even
duplicating lines with

    :g/^/t.

causes the error to trigger.  It just happens that the external calls like
fmt(1) and `sed G` also fail to process every original/source line.

-- 
You are receiving this mail because:
You are the assignee for the bug.