Go to: Synopsis. Return value. Related. MEL examples.
putenv string string
putenv is NOT undoable, NOT queryable, and NOT editable.
The first argument is the name of an environment variable and the second argument is the value to be assigned to it. If the environment variable does not exist it is created. Note that commands exec'd via the "system" command will inherit the environment variables set via "putenv".int | Error code |
putenv "MYHOME" `getenv "HOME"`; // Result: 0 // $s=`getenv "MYHOME"`; // Result: /u/userName //