GNU bug report logs - #20638
BUG: standard & extended RE's don't find NUL's :-(

Previous Next

Package: grep;

Reported by: "L. A. Walsh" <gnu <at> tlinx.org>

Date: Sun, 24 May 2015 00:06:02 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "L. A. Walsh" <gnu <at> tlinx.org>
To: bug-grep <at> gnu.org
Subject: BUG: standard & extended RE's don't find NUL's :-(
Date: Sat, 23 May 2015 17:04:50 -0700
the standard & extended RE's don't find find NUL's:

>  dd if=/dev/zero of=zeros bs=4k count=1
>  command grep -Pq '\000\000' zeros && echo "badness"
badness
>  command grep -Eq '\000\000' zeros && echo "badness"
>  command grep -Gq '\000\000' zeros && echo "badness"
>  command grep -q '\000\000' zeros && echo "badness"
>  rpm -q grep
grep-2.20-2.4.1.x86_64







This bug report was last modified 9 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.