Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sed remove extra increment; fixes: echo o | sed -e '...



details:   https://anonhg.NetBSD.org/src/rev/2a3c82695121
branches:  trunk
changeset: 960223:2a3c82695121
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 11 22:31:19 2021 +0000

description:
remove extra increment; fixes: echo o | sed -e 's/o/\a/'

diffstat:

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

diffs (26 lines):

diff -r 6596870c97db -r 2a3c82695121 usr.bin/sed/compile.c
--- a/usr.bin/sed/compile.c     Thu Mar 11 22:28:30 2021 +0000
+++ b/usr.bin/sed/compile.c     Thu Mar 11 22:31:19 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compile.c,v 1.48 2019/10/05 20:23:55 christos Exp $    */
+/*     $NetBSD: compile.c,v 1.49 2021/03/11 22:31:19 christos Exp $    */
 
 /*-
  * Copyright (c) 1992 Diomidis Spinellis.
@@ -38,7 +38,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: compile.c,v 1.48 2019/10/05 20:23:55 christos Exp $");
+__RCSID("$NetBSD: compile.c,v 1.49 2021/03/11 22:31:19 christos Exp $");
 #ifdef __FBSDID
 __FBSDID("$FreeBSD: head/usr.bin/sed/compile.c 259132 2013-12-09 18:57:20Z eadler $");
 #endif
@@ -531,7 +531,6 @@
                break;
        case 'a':
                *sp = '\a';
-               p++;
                break;
 #if 0
        // No, \b RE



Home | Main Index | Thread Index | Old Index