Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/sed When adding text due to an a, c, or i command, d...
details: https://anonhg.NetBSD.org/src/rev/fd45b0789295
branches: trunk
changeset: 571328:fd45b0789295
user: matt <matt%NetBSD.org@localhost>
date: Wed Nov 17 22:17:54 2004 +0000
description:
When adding text due to an a, c, or i command, don't eat the space(s) at
the beginning of the lines since the addition is supposed to be "verbatim".
Fix a comment for compile_text indicating it's also used for the 'c' command.
diffstat:
usr.bin/sed/compile.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 1ffc03dcf404 -r fd45b0789295 usr.bin/sed/compile.c
--- a/usr.bin/sed/compile.c Wed Nov 17 17:00:00 2004 +0000
+++ b/usr.bin/sed/compile.c Wed Nov 17 22:17:54 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compile.c,v 1.30 2004/07/09 23:43:07 enami Exp $ */
+/* $NetBSD: compile.c,v 1.31 2004/11/17 22:17:54 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -72,7 +72,7 @@
#if 0
static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: compile.c,v 1.30 2004/07/09 23:43:07 enami Exp $");
+__RCSID("$NetBSD: compile.c,v 1.31 2004/11/17 22:17:54 matt Exp $");
#endif
#endif /* not lint */
@@ -666,7 +666,7 @@
}
/*
- * Compile the text following an a or i command.
+ * Compile the text following an a, c, or i command.
*/
static char *
compile_text(void)
@@ -681,7 +681,6 @@
while (cu_fgets(lbuf, sizeof(lbuf))) {
op = s = text + size;
p = lbuf;
- EATSPACE();
for (; *p; p++) {
if (*p == '\\')
p++;
Home |
Main Index |
Thread Index |
Old Index