Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jun 2023 20:51:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271791] sed: substitute start/end of line broken with N
Message-ID:  <bug-271791-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 271791
           Summary: sed: substitute start/end of line broken with N
           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' hello '' world | sed -n -e 's/^//' -e '$!N' -e P -e D

Expected output:

hello

world

Actual output:

hello
h
world

--=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-271791-227>