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

Robert Elz <[email protected]> Tue, 11 Nov 2014 18:08:59 +0700
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
    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.

kre