EXPORT(1)

NAME

export - mark variables for export to child process environments.

SYNOPSIS

export [-aprx] [name[=value] ...]

DESCRIPTION

export is a POSIX special builtin provided by Rush. It marks variables for export to child process environments. Assignment operands set a value while applying the export attribute. Without operands, it prints exported declarations.

OPTIONS

-a
Accept Bash-style indexed-array declarations. This option is available only in Rush's default Bash-compatible mode.
-p
Print reusable exported declarations, optionally restricted to the named variables.
-r
Also apply the readonly attribute.
-x
Apply the export attribute explicitly.
--
End option parsing.

EXIT STATUS

Zero on success, one when a declaration fails, and two for invalid options or, in POSIX mode, invalid identifiers.

SEE ALSO

rush-builtins(7), declare(1), readonly(1), POSIX Shell Command Language.