is an option specifying the initial settings of environment variables to use when executing a process in functions like StartProcess and RunProcess.


  • With the default setting ProcessEnvironment->Inherited, the subprocess will inherit its initial directory from the environment settings of the parent process (the Wolfram Engine) that calls it.
  • The values of environment variables are typically given in an association.


Basic Examples  (1)

On Unix systems like Mac OS and Linux, these inputs run the echo process from a system shell to report the value of the environment variable set by the value of the ProcessEnvironment option:

Introduced in 2014