Rainer Müller <rai...@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.

Reply via email to