Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/sed The change ("c") command should start a new cycle.



details:   https://anonhg.NetBSD.org/src/rev/992508bd19ec
branches:  trunk
changeset: 785526:992508bd19ec
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Mar 17 21:02:54 2013 +0000

description:
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.

diffstat:

 usr.bin/sed/process.c |  6 +++---
 usr.bin/sed/sed.1     |  3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 4b625338819b -r 992508bd19ec usr.bin/sed/process.c
--- a/usr.bin/sed/process.c     Sun Mar 17 18:46:10 2013 +0000
+++ b/usr.bin/sed/process.c     Sun Mar 17 21:02:54 2013 +0000
@@ -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 @@
                                psl = 0;
                                if (cp->a2 == NULL || lastaddr)
                                        (void)printf("%s", cp->t);
-                               break;
+                               goto new;
                        case 'd':
                                pd = 1;
                                goto new;
diff -r 4b625338819b -r 992508bd19ec usr.bin/sed/sed.1
--- a/usr.bin/sed/sed.1 Sun Mar 17 18:46:10 2013 +0000
+++ b/usr.bin/sed/sed.1 Sun Mar 17 21:02:54 2013 +0000
@@ -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 @@
 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.



Home | Main Index | Thread Index | Old Index