Re:The Source History of Cat
by yesenadam on Monday November 12, 2018 @10:33PM
(#18438302)
Using OS X 10.4.11 here, the grep file is dated Jan 2006, the end of the grep man pages says "2002/01/22".
Other man pages: ed says 1993, sed says BSD 2004, cat says 3rd Berkeley Distribution 1995.
[ Parent
| on HN ]
Interesting. What does `type grep` say? Is it possible that it's /usr/local/bin/grep from homebrew/macports/…, and that /usr/bin/grep is BSD grep?
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)
It does seem to be the original grep for this machine (it's a Mac Mini) - it has the same Jan 2006 date as most of the files in /usr/bin, and nothing has an earlier date. There's no other file called grep elsewhere.