Are the environment variables of a process running on a modern OS X system accessible to other processes? If so, is this information accessible only to the same user and root?

This answer from Gilles for the same question, except applied to Linux, is exactly the sort of answer I'm looking for here.


There's no difference in how the environment behaves between Linux and OS X, which is a UNIX system.

  • There are multiple Linux specifics in that answer ('/proc', memory map code). I'm not willing to take it on faith that because they're both UNIX-like, OS X will be the same. Was hoping for a more detailed answer. – jacobsa Jan 1 '16 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.