← Commit list

e01f9662a

Glenn L McGrath
Glenn L McGrath
2003-03-18
SUCCESS Duration: 53s

Subject

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.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/sed.c+2 -1
@@ -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;