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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Jun 2023 11:41:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271817

            Bug ID: 271817
           Summary: sed: range change with N results in no output
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: mohd.akram@outlook.com

To reproduce:

printf '%s\n' a b c d e f | sed '
/a/,/b/c\
x
$!N
'

Expected output:

x
c
d
e
f

Actual output:

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