Process.env

Set the process' environment variables from the associative array received by the method.

This also clears the copyEnv flag.

  1. istring[istring] env()
  2. istring[istring] env(istring[istring] env)
    class Process

Parameters

env istring[istring]

associative array of strings containing the environment variables for the process. The variable name should be the key used for each entry.

Return Value

the env set.

Examples

istring[istring] env;

env["MYVAR1"] = "first";
env["MYVAR2"] = "second";

p.env = env;

Meta