bug#32704: Can grep search for a line feed and a null character at the same time?

2018-09-11 Thread 21naown
Hello, I found someone who asked the same question on “Stack Overflow”, still unanswered, but this person did not ask it on the mailing list. Here are the details of the question which are nearly similar to my case: https://stackoverflow.com/questions/50295772/can-grep-search-for-a-line-feed-

bug#32704: Can grep search for a line feed and a null character at the same time?

2018-09-11 Thread Eric Blake
On 9/11/18 11:25 AM, 21na...@gmail.com wrote: Hello, I found someone who asked the same question on “Stack Overflow”, still unanswered, but this person did not ask it on the mailing list. Here are the details of the question which are nearly similar to my case: https://stackoverflow.com/ques

bug#32704: Can grep search for a line feed and a null character at the same time?

2018-09-11 Thread Paul Eggert
On 9/11/18 10:03 AM, Eric Blake wrote: maybe we really do have a bug - when -z is in effect, I'd expect NUL, rather than newline, to be the byte that separates separate patterns in the pattern argument You're right, I think it's a bug that grep -zf FILE uses newline separators in FILE. It sho

bug#32704: Can grep search for a line feed and a null character at the same time?

2018-09-11 Thread Eric Blake
On 9/11/18 12:14 PM, Paul Eggert wrote: On 9/11/18 10:03 AM, Eric Blake wrote: maybe we really do have a bug - when -z is in effect, I'd expect NUL, rather than newline, to be the byte that separates separate patterns in the pattern argument You're right, I think it's a bug that grep -zf FILE