Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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