— set and
after modifying the environment as
specified on the command line. The option
specifies an environment variable, name
a value of value
The options are as follows:
- Causes env to completely
ignore the environment it inherits.
If no utility
prints out the names and values of the
variables in the environment, with one
pair per line.
doesn't handle commands with equal
(‘=’) signs in their names, for obvious reasons.
utility exits with one of the following
- env completed successfully
and, if utility was specified, it was
invoked and completed successfully too.
- An invalid command line option was passed to
utility was not invoked, or
utility was invoked but failed with exit
- utility was invoked but
failed with this exit status; see its manual page for more
- utility was found but
could not be invoked, or it was invoked but failed with exit status
- utility could not be
found, or it was invoked but failed with exit status 127.
utility is compliant with the
IEEE Std 1003.1-2008
The historic -
option has been deprecated but is
still supported in this implementation.