Your bug report #22655: grep-2.21 (and git master): --null-data and ranges work in an odd way (-P works fine) which was filed against the grep package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 22655@debbugs.gnu.org. -- 22655: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22655 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems