0

While looking over /var/logs/install.log, I've noticed that whenever I install a pkg, the installer first outputs a bunch of detected environment variables. However the env vars it outputs doesn't exactly match what I see with printenv. Nor does it contain vars I export in my ~/.bash_profile.

I was wondering where it's getting these env vars from and how can I query for the same list via CLI?

More details:

Running Mojave 10.14.4, though I've seen this behavior on High Sierra.

I do not have the following

  • ~/.profile
  • /etc/launchd.conf
  • /.bashrc
  • ~/.MacOSX/environment.plist.

My /etc/profile only invokes /usr/libexec/path_helper -s

Refs I used:

You must log in to answer this question.

Browse other questions tagged .