Re: NXR search for literal string "sizeof(*"

David Holland <[email protected]> Tue, 11 Nov 2014 15:34:11 +0000
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
On Tue, Nov 11, 2014 at 06:08:59PM +0700, Robert Elz wrote:
 >     Date:        Tue, 11 Nov 2014 08:03:03 +0000
 >     From:        David Holland <[email protected]>
 >     Message-ID:  <[email protected]>
 > 
 >   |  >   $ grep -FR 'sizeof(*' /usr/src
 >   | 
 >   | % echo 'sizeofboo' | grep 'sizeof(*'
 >   | sizeofboo
 >   | 
 >   | I think you mean 'sizeof(\*'.
 > 
 > You didn't give the -F which is the gnuish (and stupid) way of turning
 > grep into fgrep (in which * has no special meaning).   Had the original
 > simply used fgrep, that would have been obvious, of course.

Oops. As others have said before me: that'll teach me to post using a
rented brain.

-- 
David A. Holland
[email protected]