MPE/iX Shell and Utilities Reference Manual, Vol 1

export(1) MPE/iX Shell and Utilities export(1)
NAME
export — mark names for export
SYNOPSIS
export [name[=value] ...]
export –p
DESCRIPTION
export marks each name so that the current shell exports it automatically to the environ-
ment of all commands executed from that shell. Exported variables are thus available in the
environment to all subsequent commands. Several commands (for example, cd(1), date(1),
vi(1)) look at environment variables for configuration or option information.
Variable assignments of the form name=value assign value to name as well as marking name
for export.
Calling export without arguments lists, with appropriate quoting, the names and values of
all variables in the format:
Variable="value"
If you re-input this format to another shell, variables are assigned appropriately but not
exported. The –p option lists variables in a format suitable for re-input to the shell (see the
description of the –p option).
Options
export accepts the following option:
–p lists variables in the form
export name="value"
suitable for re-input to the shell.
DIAGNOSTICS
Possible exit status values:
0 Successful completion.
1 Failure due to invalid command line argument.
Messages
Because this utility is built into the
MPE/iX Shell, see the sh(1) man page for a complete list of
error messages that you may receive when using it.
Commands and Utilities 1-217