b59f9e1562
Add version 1.20.0, remove deprecated 1.16.x & 1.17.x versions and mark 1.18.x as deprecated. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
30 lines
710 B
Diff
30 lines
710 B
Diff
--- busybox-1.20.0/editors/sed.c
|
|
+++ busybox-1.20.0-sed/editors/sed.c
|
|
@@ -743,7 +743,7 @@ static int do_subst_command(sed_cmd_t *s
|
|
*/
|
|
if (!G.regmatch[0].rm_so && !G.regmatch[0].rm_eo && match_count) {
|
|
pipe_putc(*line++);
|
|
- continue;
|
|
+ goto next;
|
|
}
|
|
|
|
match_count++;
|
|
@@ -755,7 +755,7 @@ static int do_subst_command(sed_cmd_t *s
|
|
) {
|
|
for (i = 0; i < G.regmatch[0].rm_eo; i++)
|
|
pipe_putc(*line++);
|
|
- continue;
|
|
+ goto next;
|
|
}
|
|
|
|
/* print everything before the match */
|
|
@@ -773,7 +773,7 @@ static int do_subst_command(sed_cmd_t *s
|
|
/* if we're not doing this globally, get out now */
|
|
if (sed_cmd->which_match != 0)
|
|
break;
|
|
-
|
|
+ next:
|
|
if (*line == '\0')
|
|
break;
|
|
|