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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 18 Jun 2023 20:22:10 UTC

Andrew "RhodiumToad" Gierth <andrew@tao11.riddles.org.uk> changed:

           What    |Removed                     |Added
                 CC|                            |andrew@tao11.riddles.org.uk

--- Comment #1 from Andrew "RhodiumToad" Gierth <andrew@tao11.riddles.org.uk> ---
I see no way to justify your "expected" output from the specification. (I also
can't justify the actual output, but it deviates less from the spec than your
"expected" output.)

In particular, the line "b" is read using N and deleted without ever being seen
by the /a/,/b/c  command, and therefore the replacement "x" should never be
emitted. My reading of the spec is that the "b", "d", "f" lines should be
output, but I see no reading of the spec that allows the output of "c" and "e".

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