projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f452356
)
Preserve substitution flag value within the current line.
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 14 Sep 2003 07:59:28 +0000
(07:59 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 14 Sep 2003 07:59:28 +0000
(07:59 -0000)
Fixed the following testcase
# cat strings |./busybox sed -n -f test3.sed
1
1
2
c
c
# cat strings
a
b
c
editors/sed.c
patch
|
blob
|
history
diff --git
a/editors/sed.c
b/editors/sed.c
index aa3ce024ec8063fcce3c90f89c0df10b44cc7ac6..2be4ed174924c61f03b4f0e41b5f6a60a2661abc 100644
(file)
--- a/
editors/sed.c
+++ b/
editors/sed.c
@@
-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 */