mirror of
https://github.com/openbsd/src.git
synced 2024-12-21 23:18:00 -08:00
The "c" command should start the next cycle as clarified in POSIX
2024. This is also consistent with historical behavior. Prompted by Mohamed Akram with a diff from uwe@netbsd.
This commit is contained in:
parent
6df2f81829
commit
8a7444b3f2
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: process.c,v 1.38 2024/08/28 14:30:26 millert Exp $ */
|
||||
/* $OpenBSD: process.c,v 1.39 2024/12/10 23:49:55 millert Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992 Diomidis Spinellis.
|
||||
@ -124,7 +124,7 @@ redirect:
|
||||
psl = 0;
|
||||
if (cp->a2 == NULL || lastaddr || lastline())
|
||||
(void)fprintf(outfile, "%s", cp->t);
|
||||
break;
|
||||
goto new;
|
||||
case 'd':
|
||||
pd = 1;
|
||||
goto new;
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: sed.1,v 1.63 2022/12/28 13:00:57 jsg Exp $
|
||||
.\" $OpenBSD: sed.1,v 1.64 2024/12/10 23:49:55 millert Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1992, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -32,7 +32,7 @@
|
||||
.\"
|
||||
.\" from: @(#)sed.1 8.2 (Berkeley) 12/30/93
|
||||
.\"
|
||||
.Dd $Mdocdate: December 28 2022 $
|
||||
.Dd $Mdocdate: December 10 2024 $
|
||||
.Dt SED 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -336,7 +336,7 @@ If the label is not specified, branch to the end of the script.
|
||||
.br
|
||||
.Ar text
|
||||
.Xc
|
||||
Delete the pattern space.
|
||||
Delete the pattern space and start the next cycle.
|
||||
With 0 or 1 address or at the end of a 2-address range,
|
||||
.Ar text
|
||||
is written to the standard output.
|
||||
|
Loading…
Reference in New Issue
Block a user