env

NAME

env - set environment for command invocation

SYNOPSIS

env [-i|-l usr|-w user] [-u name] ...
	[--] [-] [name=value]... [command]

DESCRIPTION

The env(1) utility invokes the command after first modifying the environment as specified by the name=value operands. If env(1) is invoked without arguments, it writes the current environment to standard output. If it is invoked with out a command argument, it writes to standard output the environment set by the other operands.

OPTIONS

-
Ignore the inherited environment.
-c user
Replace the current environment with the standard cron(1) login environment for the specified user.
-i
Ignore the current environment and replace it with an empty environment.
-l user
Replace the current environment with the standard Interix login environment for the specified user.
-u name
Unset the specified variable.
-w user
Replace the current environment with the standard Windows login environment for the specified user.

DIAGNOSTICS

The env(1) utility exits 0 on success, and >0 if an error occurs. It exits with 126 if the command could be found but not invoked, and 127 if command could not be found.

SEE ALSO

ksh(1)

sh(1)