get user's home

Joshua Root jmr at macports.org
Fri Aug 4 14:05:27 UTC 2017


On 2017-8-4 22:19 , db wrote:
> How can I get the user's home, the flesh and blood bot's?
> 
> set home            $::env(HOME)
> 
> righteously returns /opt/local/var/macports/home/

Should be in $user_home (if it could be determined, which is not 
guaranteed). But why do you need it? The user installing the port is not 
necessarily the one that will use it.

- Josh


More information about the macports-dev mailing list