[Bug 271817] sed: range change with N results in no output

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 18 Jun 2023 20:33:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271817

--- Comment #2 from Mohamed Akram <mohd.akram@outlook.com> ---
(In reply to Andrew "RhodiumToad" Gierth from comment #1)

The expected output matches GNU sed. I'm not sure why you mention deletion, I'm
not using any delete command. The first command changes the text in the range
from a to b, and replaces it with x. The second command appends the next line,
and since we're not doing anything fancy with \n in the pattern space, it
should be a no-op. Therefore, the output should be identical to that of the
same script without $!N.

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