HomeFreeBSD

sed: The change ("c") command should start a new cycle.

Description

sed: The change ("c") command should start a new cycle.

The "c" command should start the next cycle as clarified in POSIX 2024.
This is also consistent with historical and gnu sed behavior.

This patch is from OpenBSD by way of NetBSD with a tweak to the man page
date by me.

Confirmed the test case in the bug now works.

PR: 271817
Obtained from: NetBSD (1.39 uwe), OpenBSD (1.39 millert)
Sponsored by: Netflix

(cherry picked from commit a2d78713171cf138b5ae50d61f82df1af7574c95)

Details

Provenance
Valeriy Ushakov <uwe@netbsd.org>Authored on Dec 17 2024, 10:27 PM
markjCommitted on Fri, Jan 17, 6:48 PM
Parents
rGe6025bc05cda: Fix "vrefact: wrong use count 0" with DRM
Branches
Unknown
Tags
Unknown