When I run
launchctl getenv PATH
in the terminal, I always get an empty string as a response. I tried using
sudo launchctl getenv PATH
since with sudo
, the system environment is queried, but I still get an empty string. Am I missing something ? Shouldn't that return my PATH or at least, the system PATH ? Something like
/usr/bin:/bin:/usr/sbin:/sbin
I have looked at many answers here and they all seem to imply that the original command should return a path and not nothing.