ENV(1)ENV(1)NAME
env, printenv - set environment for command execution, print environment
SYNOPSIS
env [-i] [-] [ name=value ... ] [ command args ]
printenv [ name ]
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.
If no command is specified, the resulting environment is printed, one
name-value pair per line.
Printenv prints out the names and values of the variables in the
environment, with one name/value pair per line. If name is specified,
only its value is printed. If name is not defined in the environment,
printenv returns exit status 1, else it returns status 0.
OPTIONS-i Invoke command with exactly the environment specified by the
arguments; the inherited environment will be ignored ocmpletely.
- Obsolescent form of -i.
SEE ALSOcsh(1), sh(1), exec(2), profile(4), environ(5)BUGS
Env doesn't handle commands with equal (``='') signs in their names, for
obvious reasons.
Page 1