GNU Which - Everything you never wanted in a which
Which is a utility that prints out the full path of the executables that bash would execute when the passed program names would have been entered on the shell prompt. It does this by using the exact same algorithm as bash. Tildes and a dot in the PATH are now expanded to the full path by default. Options allow to rather print '~/*' or './*' and/or to print all executables that match any directory in PATH.
Which is a utility that prints out the full path of the executables that bash would execute when the passed program names would have been entered on the shell prompt. It does this by using the exact same algorithm as bash. Tildes and a dot in the PATH are now expanded to the full path by default. Options allow to rather print '~/*' or './*' and/or to print all executables that match any directory in PATH.
To install gwhich, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install gwhich
To see what files were installed by gwhich, run:
port contents gwhich
To later upgrade gwhich, run:
sudo port selfupdate && sudo port upgrade gwhich
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.