386BSD 0.1 development
[unix-history] / usr / othersrc / public / shellutils-1.6 / man / cat1 / env.0
ENV(1L) ENV(1L)
N\bNA\bAM\bME\bE
env - run a program in a modified environment
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
e\ben\bnv\bv [-] [-i] [-u name] [--ignore-environment]
[--unset=name] [name=value]... [command [args...]]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
This manual page documents the GNU version of e\ben\bnv\bv. e\ben\bnv\bv
runs a command with an environment modified as specified
by the command line arguments. Arguments of the form
`variable=value' set the environment variable _\bv_\ba_\br_\bi_\ba_\bb_\bl_\be to
value _\bv_\ba_\bl_\bu_\be. _\bv_\ba_\bl_\bu_\be may be empty (`variable='). Setting a
variable to an empty value is different from unsetting it.
The first remaining argument specifies a program to
invoke; it is searched for according to the specification
of the PATH environment variable. Any arguments following
that are passed as arguments to that program.
If no command name is specified following the environment
specifications, the resulting environment is printed.
This is like specifying a command name of `printenv'.
O\bOP\bPT\bTI\bIO\bON\bNS\bS
-_\bu, --_\bu_\bn_\bs_\be_\bt _\bn_\ba_\bm_\be
Remove variable _\bn_\ba_\bm_\be from the environment, if it
was in the environment.
-, -_\bi, --_\bi_\bg_\bn_\bo_\br_\be-_\be_\bn_\bv_\bi_\br_\bo_\bn_\bm_\be_\bn_\bt
Start with an empty environment, ignoring the
inherited environment.
The long-named options can be introduced with `+' as well
as `--', for compatibility with previous releases. Even-
tually support for `+' will be removed, because it is
incompatible with the POSIX.2 standard.
1