diff options
author | Glenn L McGrath | 2003-03-18 08:37:57 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-03-18 08:37:57 +0000 |
commit | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (patch) | |
tree | 40624208db373d3abf5c89ec3fd09d29890290f3 /editors | |
parent | 2971ef1730db326e20e84ae8882d326f5aa09235 (diff) | |
download | busybox-e01f9662a5bd5d91be4f6b3941b57fff73cd5af1.zip busybox-e01f9662a5bd5d91be4f6b3941b57fff73cd5af1.tar.gz |
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.
Diffstat (limited to 'editors')
-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 7ff81da..8bd627a 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 static int parse_subst_cmd(sed_cmd_t * const sed_cmd, const char *substr) { - int oldidx, cflags = REG_NEWLINE; + int oldidx; + int cflags = 0; char *match; int idx = 0; int j; |