[BusyBox-cvs] busybox/editors sed.c,1.124,1.125

Glenn McGrath bug1 at busybox.net
Wed Apr 9 07:51:48 UTC 2003


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

Modified Files:
	sed.c 
Log Message:
fix substitution when replacing with &, we shouldnt check for an escape charcter. Its already been taken care of _somewhere_ else


Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- sed.c	9 Apr 2003 01:43:54 -0000	1.124
+++ sed.c	9 Apr 2003 07:51:43 -0000	1.125
@@ -722,9 +722,8 @@
 		 * fortunately, regmatch[0] contains the indicies to the whole matched
 		 * expression (kinda seems like it was designed for just such a
 		 * purpose...) */
-		else if (replace[i] == '&' && replace[i - 1] != '\\') {
+		else if (replace[i] == '&') {
 			int j;
-
 			for (j = regmatch[0].rm_so; j < regmatch[0].rm_eo; j++)
 				pipeputc(line[j]);
 		}



More information about the busybox-cvs mailing list