env — set environment for command execution
obtains the current
modifies it according to its arguments,
then executes the command with the modified environment.
Arguments of the form
are merged into the inherited environment before the command is executed.
option causes the inherited environment to be ignored completely
so that the command is executed with exactly the environment
specified by the arguments.
option is obsolete and has the same effect as the
If no command is specified, the resulting environment is printed,
one name-value pair per line.
is invoked, the exit status of
is the exit status of
exits with one of the following values:
encountered an error.
was found but could not be invoked.
could not be found.
determines the language in which messages are displayed.
is not specified in the environment or is set to
the empty string, the value of
is used as a default for each
unspecified or empty variable.
is not specified or is set to the empty string, a default of "C" (see
is used instead of
If any internationalization variable contains an invalid setting,
behaves as if all internationalization variables are set to "C".
International Code Set Support
Single- and multi-byte character code sets are supported.
option is obsolete.
env: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2