[BusyBox-cvs] busybox/editors sed.c,1.137,1.138

Glenn McGrath bug1 at busybox.net
Sun Sep 14 07:59:31 UTC 2003


Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv22146/editors

Modified Files:
	sed.c 
Log Message:
Preserve substitution flag value within the current line.
Fixed the following testcase
# cat strings |./busybox sed -n -f test3.sed
1
1
2
c
c
# cat strings
a
b
c


Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -d -r1.137 -r1.138
--- sed.c	14 Sep 2003 06:01:14 -0000	1.137
+++ sed.c	14 Sep 2003 07:59:28 -0000	1.138
@@ -902,7 +902,7 @@
 				}
 #endif
 					/* we print the pattern_space once, unless we were told to be quiet */
-					substituted = do_subst_command(sed_cmd, &pattern_space);
+					substituted |= do_subst_command(sed_cmd, &pattern_space);
 
 #ifdef CONFIG_FEATURE_SED_EMBEDED_NEWLINE
 					/* undo HACK: escape newlines twice so regex can match them */




More information about the busybox-cvs mailing list