Package: grep;
Message #11 received at 32704 <at> debbugs.gnu.org (full text, mbox):
From: Paul Eggert <eggert <at> cs.ucla.edu> To: Eric Blake <eblake <at> redhat.com>, 21naown <at> gmail.com, 32704 <at> debbugs.gnu.org Subject: Re: bug#32704: Can grep search for a line feed and a null character at the same time? Date: 2018年9月11日 10:14:51 -0700
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 should use NUL separators. This cannot be done for NUL bytes in command-line patterns, though, since command-line arguments cannot contain NUL bytes.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.