Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2023 22:27:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271817] sed: range change with N results in no output
Message-ID:  <bug-271817-227-m4zjnZkv6N@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271817-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271817-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=3D271817

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

Per the spec:

> The sed utility shall then apply in sequence all commands whose addresses=
 select that pattern space, until a command starts the next cycle or quits.

For the c command:

> Delete the pattern space. With a 0 or 1 address or at the end of a 2-addr=
ess range, place text on the output and start the next cycle.

So, once the c command is executed, the next cycle is started and N is not
executed.

--=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-271817-227-m4zjnZkv6N>