Go to:
Return value. Related commands. Examples.
Synopsis
putenv <string> <string>
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".
Return value
int
Related commands
env, getenvExamples
putenv "MYHOME" `getenv "HOME"`;
// Result: 0 //
$s=`getenv "MYHOME"`;
// Result: /u/userName //