16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

expand<br />

Related Information<br />

pr, unexpand<br />

export — Set a variable for export<br />

Format<br />

Description<br />

Option<br />

Usage Note<br />

Localization<br />

Exit Values<br />

Portability<br />

export [ name [=value] ...]<br />

export –p<br />

export marks each variable name so that the current shell makes it automatically<br />

available to the environment of all commands run from that shell. Exported<br />

variables are thus available in the environment to all subsequent commands.<br />

Several commands (for example, cd, date and vi) look at environment variables for<br />

configuration or option information.<br />

Variable assignments of the form name=value assign value to name as well as<br />

marking name for export. The name can contain only the underscore and<br />

alphanumeric characters from the portable character set.<br />

Calling export without arguments lists, with appropriate quoting, the names and<br />

values of all variables in the format Variable=″value″. If you reinput this format to<br />

another shell, variables are assigned appropriately but not exported. The –p option<br />

lists variables in a format suitable for reinput to the shell (see the description of the<br />

–p option).<br />

–p Lists variables in a form that is suitable for reinput to the shell:<br />

export name="value"<br />

export is a special built-in shell command.<br />

export uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to incorrect command-line argument<br />

2 Failure, usually due to incorrect an incorrect command-line argument, that<br />

results in a usage message<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide.<br />

264 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!