svn commit: trunk/busybox/editors
landley at busybox.net
landley at busybox.net
Sun Oct 30 10:08:16 UTC 2005
Author: landley
Date: 2005-10-30 02:08:13 -0800 (Sun, 30 Oct 2005)
New Revision: 12076
Log:
\0 is a synonym for &. Our own "make allbaseconfig" breaks without this.
Modified:
trunk/busybox/editors/sed.c
Changeset:
Modified: trunk/busybox/editors/sed.c
===================================================================
--- trunk/busybox/editors/sed.c 2005-10-30 04:33:48 UTC (rev 12075)
+++ trunk/busybox/editors/sed.c 2005-10-30 10:08:13 UTC (rev 12076)
@@ -53,7 +53,7 @@
- commands: (p)rint, (d)elete, (s)ubstitue (with g & I flags)
- edit commands: (a)ppend, (i)nsert, (c)hange
- file commands: (r)ead
- - backreferences in substitution expressions (\1, \2...\9)
+ - backreferences in substitution expressions (\0, \1, \2...\9)
- grouped commands: {cmd1;cmd2}
- transliteration (y/source-chars/dest-chars/)
- pattern space hold space storing / swapping (g, h, x)
@@ -600,7 +600,7 @@
/* go through the replacement string */
for (i = 0; replace[i]; i++) {
/* if we find a backreference (\1, \2, etc.) print the backref'ed * text */
- if (replace[i] == '\\' && replace[i+1]>'0' && replace[i+1]<='9') {
+ if (replace[i] == '\\' && replace[i+1]>='0' && replace[i+1]<='9') {
int backref=replace[++i]-'0';
/* print out the text held in regmatch[backref] */
More information about the busybox-cvs
mailing list