Module Name:    src
Committed By:   uwe
Date:           Sun Mar 17 21:02:55 UTC 2013

Modified Files:
        src/usr.bin/sed: process.c sed.1

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

Apply one line patch I posted in PR #45981 and document this in the
manual page.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/sed/process.c
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/sed/sed.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/sed/process.c
diff -u src/usr.bin/sed/process.c:1.38 src/usr.bin/sed/process.c:1.39
--- src/usr.bin/sed/process.c:1.38	Mon Apr 13 07:29:55 2009
+++ src/usr.bin/sed/process.c	Sun Mar 17 21:02:54 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: process.c,v 1.38 2009/04/13 07:29:55 lukem Exp $	*/
+/*	$NetBSD: process.c,v 1.39 2013/03/17 21:02:54 uwe Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -76,7 +76,7 @@
 #if 0
 static char sccsid[] = "@(#)process.c	8.6 (Berkeley) 4/20/94";
 #else
-__RCSID("$NetBSD: process.c,v 1.38 2009/04/13 07:29:55 lukem Exp $");
+__RCSID("$NetBSD: process.c,v 1.39 2013/03/17 21:02:54 uwe Exp $");
 #endif
 #endif /* not lint */
 
@@ -168,7 +168,7 @@ redirect:
 				psl = 0;
 				if (cp->a2 == NULL || lastaddr)
 					(void)printf("%s", cp->t);
-				break;
+				goto new;
 			case 'd':
 				pd = 1;
 				goto new;

Index: src/usr.bin/sed/sed.1
diff -u src/usr.bin/sed/sed.1:1.29 src/usr.bin/sed/sed.1:1.30
--- src/usr.bin/sed/sed.1:1.29	Thu Oct  4 19:28:36 2012
+++ src/usr.bin/sed/sed.1	Sun Mar 17 21:02:54 2013
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sed.1,v 1.29 2012/10/04 19:28:36 dholland Exp $
+.\"	$NetBSD: sed.1,v 1.30 2013/03/17 21:02:54 uwe Exp $
 .\"
 .\" Copyright (c) 1992, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -290,6 +290,7 @@ Delete the pattern space.
 With 0 or 1 address or at the end of a 2-address range,
 .Em text
 is written to the standard output.
+Start the next cycle.
 .sp
 .It [2addr]d
 Delete the pattern space and start the next cycle.

Reply via email to