Reuben Thomas wrote:
> > When people install the coreutils through Homebrew, which prefix do the
> > programs have by default? Is it "g", or is it none?
> 
> There seem to be two different ways: either with no prefix (e.g. m4), or
> with `g` prefix (e.g. coreutils)

Indeed, coreutils ([1] line 61) and sed ([2] line 31) are built with
'g' prefix by default. But...

> in both cases to a directory that can be added to PATH.

The programs are also in a libexec/gnubin/ directory, as symlinks, without
the 'g' prefix. See [1] line 80 and [2] line 39.

So, it seems to me that it is simpler to ask the users to put this
libexec/gnubin/ directory in front of their PATH, than to code a workaround
for every program in every GNU package (Gnulib needs GNU 'join' and 'sed' now,
maybe others later, and there are also other packages).

Such info could be added to the Gnulib manual.

What do you think?

Bruno

[1] 
https://github.com/Homebrew/homebrew-core/blob/15a9aa355fb18556949acc845c581ea9834e2ba8/Formula/c/coreutils.rb
[2] 
https://github.com/Homebrew/homebrew-core/blob/15a9aa355fb18556949acc845c581ea9834e2ba8/Formula/g/gnu-sed.rb




Reply via email to