![]() |
![]() |
![]() |
|
![]() | |
![]() |
![]() |
![]() |
![]() |
![]() |
Log In | Not a Member? |
Support
![]() |
![]() |
SYNTAX Export [name1 [name2]… | -r | -s] DESCRIPTION The Export command makes one or more variables available to all enclosed scripts and tools. Exported variables apply only to the script or tool in which they are exported and to any enclosed scripts and tools. Variables cannot be exported to enclosing scripts or tools.
Note INPUT None OUTPUT None, unless you omit the name parameter, in which case Export writes to standard output a list of exported variables in the form of Export commands. STATUS
Export can return the following status codes:
PARAMETERS name1 [name2]… Specifies one or more variables to export. If you do not specify this parameter, Export writes to standard output a list of all exported variables in the form of Export commands. Note that if you specify this parameter, you cannot specify either the -r or -s options. OPTIONS -r Reverses the command, causing Export to generate Unexport commands for all exported variables. Note that if you specify this option, you cannot specify the name1 [name2]… parameter or the -s option. -s Writes a list of exported variables only. The corresponding Export commands are not written to standard output. Note that if you specify this option, you cannot specify the name1 [name2]… parameter or the -r option. EXAMPLES The following command line defines the variable {MyIncludes} as the HD:Sources:MyIncludes: directory and makes it available to enclosed scripts and programs.
Set MyIncludes "HD:Sources:MyIncludes:" As noted in the "Description" section, it is useful to make important variables global by setting and exporting them in this manner in one of your UserStartup•name files. SEE ALSO
|