Re: [dev] [sbase] [PATCH 1/2] grep: Remove newlines before matching a line

2014-11-02 Thread Dimitris Papastamos
On Sun, Nov 02, 2014 at 03:08:12AM +, Michael Forney wrote: > Otherwise, a pattern with a '$' anchor will never match and POSIX says that > > "By default, an input line shall be selected if any pattern ... matches any >part of the line excluding the terminating " Both patches applied, t

[dev] [sbase] [PATCH 1/2] grep: Remove newlines before matching a line

2014-11-01 Thread Michael Forney
Otherwise, a pattern with a '$' anchor will never match and POSIX says that "By default, an input line shall be selected if any pattern ... matches any part of the line excluding the terminating " --- grep.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/grep.c b/