You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

NAME

export - export variables to the environment of subsequently executed commands

SYNOPSIS

export [OPTION] [NAME[=VALUE]...]

DESCRIPTION

export sets the export attribute for the shell variables specified by NAMEs, or displays the list of names that are exported in this shell if no NAMEs are given. If a variable named by NAME does not exist, a new variable is created. If a variable name is followed by =VALUE, the value of the variable is set to VALUE.

OPTIONS

-n
Remove the export attribute from the named variables.

NOTES

If -n option is specified and named variable does not exist, a new variable will not be created if NAME is not followed by a '=' character.

SEE ALSO

ask
declare
unset
 

  • No labels