← Commit list

3fe475677

Glenn L McGrath
Glenn L McGrath
2003-09-14
FAILED Duration: 70s

Subject

Preserve substitution flag value within the current line. Fixed the following testcase # cat strings |./busybox sed -n -f test3.sed 1 1 2 c c # cat strings a b c

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/sed.c+1 -1
@@ -902,7 +902,7 @@ static void process_file(FILE * file)
}
#endif
/* we print the pattern_space once, unless we were told to be quiet */
- substituted = do_subst_command(sed_cmd, &pattern_space);
+ substituted |= do_subst_command(sed_cmd, &pattern_space);
#ifdef CONFIG_FEATURE_SED_EMBEDED_NEWLINE
/* undo HACK: escape newlines twice so regex can match them */