3 env \- set environment for command
7 .RI [ name\fB=\fIvalue "] ..."
12 .RI [ name\fB=\fIvalue "] ..."
14 .RI [ argument "...]]"
17 modifies its environment according to the
19 arguments, and executes
21 with the given arguments and the modified environment.
23 If no utility is specified then the modified environment is printed as
25 strings, one per line.
28 is identical to env in every way and is included for backward compatibility
32 Use exactly the environment specified by the arguments; the inherited
33 environment is ignored.
36 Specify all arguments for the utility, i.e. the first of the arguments is
39 the program name. Normally the program name is
45 The path used to find utility. It is as modified by
58 after successfully printing the environment,
65 could not be executed, or
69 could not be found. Appropriate diagnostic messages are printed on standard
73 can be executed then it replaces
75 so the return code is then the return code of
78 When run from the standard shell
80 is only useful with options or without arguments. Otherwise the shell can
83 can do, simply omit the word "env" on the command line.
85 One interesting use of
87 is with #! on the first line of a script to forge a PATH search for an
88 interpreter. For example:
94 This will find the Perl interpreter if it is within the user's PATH. Most
95 UNIX-like systems have
101 Kees J. Bot <kjb@cs.vu.nl>