diff options
author | Glenn L McGrath | 2003-04-09 07:51:43 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-04-09 07:51:43 +0000 |
commit | 2410386611e104ee4e078b2182e3b9b2f9f3adff (patch) | |
tree | 9a663dfedb235ede01df7efd69163a67ee6f1d97 /editors | |
parent | bd9b32bc0df1039ef1962b558ba258e4bdb1bbfd (diff) | |
download | busybox-2410386611e104ee4e078b2182e3b9b2f9f3adff.zip busybox-2410386611e104ee4e078b2182e3b9b2f9f3adff.tar.gz |
fix substitution when replacing with &, we shouldnt check for an escape charcter. Its already been taken care of _somewhere_ else
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c index db31718..912318c 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -722,9 +722,8 @@ static void print_subst_w_backrefs(const char *line, const char *replace, * 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]); } |