summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley2005-10-30 10:08:13 +0000
committerRob Landley2005-10-30 10:08:13 +0000
commitc63fe9137fbdf83794d1ea5a3e000238816cba94 (patch)
tree02fb6a0d687cb0a629de5e6f5efcde8c96bc60f2
parent7790cd5fad8401af0a65f739f555f6e13456caf9 (diff)
downloadbusybox-c63fe9137fbdf83794d1ea5a3e000238816cba94.zip
busybox-c63fe9137fbdf83794d1ea5a3e000238816cba94.tar.gz
\0 is a synonym for &. Our own "make allbaseconfig" breaks without this.
-rw-r--r--editors/sed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 3b0cebd..ce4c427 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -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 @@ static void do_subst_w_backrefs(const char *line, const char *replace)
/* 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] */