setenv

The setenv procedure sets the value of an environment variable in runenv.

setenv (name, value);
name Required. String that contains the name of the variable to set in runenv.
value Required. String that contains the value of the specified variable.

Because setenv is a procedure, no return value is set.

setenv ("SHELL", "/bin/sh");

In this example, the SHELL environment variable that is stored in runenv is set to /bin/sh.

For more information, please see keepenv.