mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
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
This commit is contained in:
parent
f4523562b6
commit
3fe475677a
@ -902,7 +902,7 @@ static void process_file(FILE * file)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* we print the pattern_space once, unless we were told to be quiet */
|
/* 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
|
#ifdef CONFIG_FEATURE_SED_EMBEDED_NEWLINE
|
||||||
/* undo HACK: escape newlines twice so regex can match them */
|
/* undo HACK: escape newlines twice so regex can match them */
|
||||||
|
Loading…
Reference in New Issue
Block a user