env, printenv - set environment for command execution, print environment
env [-i] [-] [ name=value ... ] [ command args ]
printenv [ name ]
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.
-i Invoke command with exactly the environment specified by the
arguments; the inherited environment will be ignored ocmpletely.
- Obsolescent form of -i.
csh(1), sh(1), exec(2), profile(4), environ(5)
Env doesn't handle commands with equal (``='') signs in their names, for
PPPPaaaaggggeeee 1111 [ Back ]