Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Mar 2023 22:40:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 270048] nvi(1) errors when g//!{cmd} modifies the number of lines
Message-ID:  <bug-270048-227-W8eQr02Akx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-270048-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-270048-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270048

--- Comment #1 from Tim Chase <freebsd@tim.thechases.com> ---
Further testing suggests that *any* command that increases the number of li=
nes
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270048-227-W8eQr02Akx>