Table of Contents

Bash - Export (Builtin command)

About

The supplied names (variable or function) are marked for automatic export to the environment of subsequently executed commands.

They are made available to all other command execution (script, …). You can see them with the env command.

When declaring a variable, you can also export it with the x option

Syntax

export [-fn] [name[=word]] ...
export -p

Return value

export returns an exit status of 0 unless:

Documentation / Reference