opnsense-src/usr.bin/sed
Valeriy Ushakov a2d7871317 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
2024-12-17 15:34:06 -07:00
..
tests sed: fix commandline-given expression when -e is not used 2024-11-06 21:40:45 -06:00
compile.c usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
defs.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
extern.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
main.c sed: fix commandline-given expression when -e is not used 2024-11-06 21:40:45 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.host Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Additions to targets/pseudo/host-tools 2023-04-27 14:16:49 -07:00
misc.c usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
POSIX usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
process.c sed: The change ("c") command should start a new cycle. 2024-12-17 15:34:06 -07:00
sed.1 sed: The change ("c") command should start a new cycle. 2024-12-17 15:34:06 -07:00