$ uname -v Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 $ grep --version grep (GNU grep) 2.5.1
I found a comment claiming that prior to 10.8 (2012, Mountain Lion) it used GNU grep, but nothing I'd feel comfortable citing.
$ type grep grep is hashed (/usr/bin/grep)
$ uname -v Darwin Kernel Version 13.4.0: Mon Jan 11 18:17:34 PST 2016; root:xnu-2422.115.15~1/RELEASE_X86_64 $ grep --version grep (BSD grep) 2.5.1-FreeBSD