[macports-ports] branch master updated: grep: add new variant to install as ggrep

George Plymale II georgedp at orbitalimpact.com
Fri Jun 29 21:52:19 UTC 2018

Rainer Müller <raimue at macports.org> writes:

> Just to add to the previous discussion, /usr/bin/grep used to be
> GNU grep on older versions of macOS. That is probably the reason why it
> does not implement the g* prefix like the other ports for GNU tools yet.

Oh, okay. Thanks for clearing that up; this situation makes more sense now.

> The grep port will only be installed if the grep binary is not available
> in PATH. On macOS, it is available at /usr/bin/grep, so the grep port is
> not needed. If the grep port is installed, ${prefix}/bin/grep will
> always be used as it comes first in PATH. This dependency declaration
> also allows the use of ${prefix}/bin/grep in trace mode as opposed to
> forcing /usr/bin/grep.

Okay, yes this makes sense too. I guess it further explains why grep was
not set up to use the g* prefix.

More information about the macports-dev mailing list