Reference: export
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:58:44Z

#

| Chapter 4 The Bourne Shell and Korn Shell |

## export

    export [variables]
    export [name=[value]]...

Pass (export) the value of one or more shell `variables`, giving global meaning to the variables (which are local by default). For example, a variable defined in one shell script must be exported if its value will be used in other programs called by the script. If no `variables` are given, export lists the variables exported by the current shell. The second form is the Korn shell version, which is similar to the first form except that you can set a variable `name` to a `value` before exporting it.

### Example

In the Bourne shell, you would type:

>     TERM=vt100
>     export TERM

In the Korn shell, you could type this instead:

>     export TERM=vt100

Reference: exit |  | Reference: false