Hacker News new | ask | show | jobs
by microtonal 2027 days ago
macOS grep is from FreeBSD, at least as of macOS Mojave (10.14).

Yep, it still is. On Big Sur on M1:

    $ grep --version
    grep (BSD grep) 2.5.1-FreeBSD
1 comments

Yeah, I'm just an idiot. I guess I was just thinking of GNU make.

On the other hand, it looks like (at least on Catalina?) it ships with GNU diffutils, so patch, cmp, diff are all GNU utilities. I'm going to sheepishly pretend like this proves my point somehow :-)