env − Run a program in a modified environment
env [−i] [−u name]... [name=value]... [command [args]...]
env runs a command with the environment modified as specified by the command line. If no command is specified, env prints out the modified environment.
env accepts the following options:
|
−i |
Clears the environment, passing only the values specified to the command. |
−u name
Clears the environment variable name if it exists. The value must not include the '=' character. This option may be repeated.
If the command is invoked, the exit status of env will be the exit status of the command. Otherwise, env will return one of the following values:
0 env completed
successfully.
1−125 An error occurred in env.
127 There was an error running the command specified.
env has no known bugs.
This Perl version of env was written by Matthew Bafford, [email protected].
This program is copyright (c) Matthew Bafford 1999.
This program is free and open software. You may use, modify, distribute, and sell this program (and any modified variants) in any way you wish, provided you do not restrict others from doing the same.