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:
Clears the environment, passing only the values specifed to the command.
- -u name
Clears the environment variable name if it exists.
The working of env is not influenced by any environment variables.
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 occured 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, firstname.lastname@example.org.
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.