Process.env

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

This also clears the copyEnv flag.

  1. const(const(char[])[char[]]) env [@property getter]
  2. const(char[])[char[]] env [@property setter]
    class Process
    @property
    const(char[])[char[]]
    env
    (
    const(char[])[char[]] env
    )

Parameters

env const(char[])[char[]]

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

Return Value

Type: const(char[])[char[]]

the env set.

Examples

char[][char[]] env;

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

p.env = env;

Meta