diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-18 08:37:57 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-18 08:37:57 +0000 |
commit | 40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (patch) | |
tree | 40624208db373d3abf5c89ec3fd09d29890290f3 | |
parent | 96449df52d0b63203b1a93e53be7654020f701d9 (diff) | |
download | busybox-w32-40758c00616c3b2c85d83eb4afdeb04b1f65c9f1.tar.gz busybox-w32-40758c00616c3b2c85d83eb4afdeb04b1f65c9f1.tar.bz2 busybox-w32-40758c00616c3b2c85d83eb4afdeb04b1f65c9f1.zip |
Match newlines, this fixes matching of ^ or $ when there is a '\n' in the pattern being matched. This fixes cases when the N command is used.
git-svn-id: svn://busybox.net/trunk/busybox@6750 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | editors/sed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c index 7ff81da79..8bd627a9c 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -212,7 +212,8 @@ static int get_address(char *delimiter, char *my_str, int *linenum, regex_t **re | |||
212 | 212 | ||
213 | static int parse_subst_cmd(sed_cmd_t * const sed_cmd, const char *substr) | 213 | static int parse_subst_cmd(sed_cmd_t * const sed_cmd, const char *substr) |
214 | { | 214 | { |
215 | int oldidx, cflags = REG_NEWLINE; | 215 | int oldidx; |
216 | int cflags = 0; | ||
216 | char *match; | 217 | char *match; |
217 | int idx = 0; | 218 | int idx = 0; |
218 | int j; | 219 | int j; |