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 auto-
matically to the environment 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 confi-
guration 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.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0.
export is a special built-in command of the Bourne Shell and
1
export(1) MPE/iX Shell and Utilities export(1)
______________________________________________________________________
KornShell on UNIX systems.
NOTE
This is a special built-in command of the shell.
MPE/iX NOTES
For information on how the current MPE/iX implementation may
affect the operation of this utility, see Appendix A, MPE/iX
Implementation Considerations.
SEE ALSO
cd(1), date(1), set(1), sh(1), typeset(1), vi(1)
2