env(1)
NAME
env − set environment for command execution
SYNOPSIS
env [-] [-i] [name = value] ... [command [arguments ...]]
DESCRIPTION
env obtains the current environment, modifies it according to its arguments, then executes the command with the modified environment. Arguments of the form name=value are merged into the inherited environment before the command is executed. The -i option causes the inherited environment to be ignored completely so that the command is executed with exactly the environment specified by the arguments. The - option is obsolete and has the same effect as the -i option.
If no command is specified, the resulting environment is printed, one name-value pair per line.
RETURN VALUE
If command is invoked, the exit status of env is the exit status of command; otherwise, env exits with one of the following values:
0 env completed successfully.
1-125 env encountered an error.
126 command was found but could not be invoked.
127 command could not be found.
EXTERNAL INFLUENCES
International Code Set Support
Single-byte character code sets are supported.
WARNING
The - option is obsolete. Use -i instead.
SEE ALSO
sh(1), exec(2), profile(4), environ(5).
STANDARDS CONFORMANCE
env: SVID2, XPG2, XPG3, POSIX.2
Hewlett-Packard Company — HP-UX Release 9.0: August 1992