env(1) env(1)
NAME
env - set environment for command execution
SYNOPSIS
env [-] [name=value] ... [command args]
DESCRIPTION
env obtains the current environment, modifies it according
to its arguments, then executes command with the modified
environment. Arguments of the form name=value are merged
into the inherited environment before the command is
executed. The - flag option causes the inherited
environment to be ignored completely, so that the command is
executed with exactly the environment specified by the
arguments.
If no command is specified, the resulting environment is
printed, one name-value pair per line.
EXAMPLE
env XYZ=pdq sh
sets the environment name XYZ to the value pdq for the
duration of the command, which here is a new shell, sh.
FILES
/bin/env
SEE ALSO
csh(1), ksh(1), sh(1), exec(2), profile(4), environ(5).
Page 1 (last mod. 1/16/87)