accessing $argv0 from Portfile?

Rainer Müller raimue at macports.org
Wed Aug 16 18:26:41 UTC 2023


On 15.08.23 15:01, René J.V. Bertin wrote:
> Is there a way to get the path to MacPort's tclsh interpreter from within a Portfile, other than by using a `glob` to find it in $prefix/libexec/macports/bin ?
> 
> (not to do anything naughty, just to run a Tcl test/benchmark.)

You can use ${prefix}/bin/port-tclsh.

Rainer


More information about the macports-dev mailing list