--- Begin Message ---
Subject: |
[PATCH] grep: no match for the empty string included in multiple patterns |
Date: |
Fri, 11 Apr 2014 23:05:43 +0900 |
When the empty string is included in multiple, should match all lines.
However, `grep -F' and grep with regex isn't match.
$ printf 'foo\n\n' >pat
$ cat pat
foo
$ echo abc | env LANG=C grep -f pat
abc <<== expected
$ echo abc | env LANG=C grep -Ff pat
$ <<== unexpected
$ printf '\(\)\\1x\n\n' >pat
$ cat pat
\(\)\1x
$ echo match | env LANG=C grep -f pat
$ <<== unexpected
Norihiro
patch.txt
Description: Text document
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#17240: [PATCH] grep: no match for the empty string included in multiple patterns |
Date: |
Fri, 11 Apr 2014 13:25:18 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Thanks for catching that bug and for the fix. I found some ways to
simplify it, and to fix a glitch with CRLF handling that I discovered
while reviewing it, and installed your patch along with the attached two
fixup patches.
0001-grep-cleanup-for-empty-string-fix.patch
Description: Text document
0002-grep-cleanup-for-HAS_DOS_FILE_CONTENTS-issue.patch
Description: Text document
--- End Message ---