Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

setenv

Set the value of an environment variable.

Syntax

  • getenv(env_name, env_value)

Input argument

  • env_name - a string: environment variable name.
  • env_value - a string: environment variable value.

Description

setenv set the value of an environment variable.

Example

setenv('MY_ENV_VAR', 'funvalue')
getenv('MY_ENV_VAR')
setenv('MY_ENV_VAR', '')
getenv('MY_ENV_VAR')

See also

getenv, searchenv.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET