Set the value of an environment variable.
setenv [ name value ]
name |
The variable for which you want to set the value. |
value |
The value for the variable. |
This command sets the value of an environment variable when you include name and value, or lists all environment variables when you do not include any parameters.
setenv is similar to export, except that export requires the equal sign to set a value, while setenv does not.
This command has no effect on the environment of any currently running process. This command does not change or show the environment variables of the debugger or of the current process. It only affects the environment variables that will be used when a new process is created.
You can set and unset environment variables for processes created in the future to set up an environment different from the environment of the debugger and from the shell that invoked the debugger. When set, the environment variables apply to all new processes you debug.
There is no command to return environment variables to their initial state.
To print all environment variables, use printenv, setenv, or export.
To print a single environment variable, use printenv.
To unset an environment variable, use unsetenv.
(idb) printenv TOOLDIRECTORY Error: Environment variable 'TOOLDIRECTORY' was not found in the environment. (idb) setenv TOOLDIRECTORY /home/user/examples/tools (idb) printenv TOOLDIRECTORY TOOLDIRECTORY=/home/user/examples/tools
Copyright © 2001-2011, Intel Corporation. All rights reserved.