3 env \- set environment for command
7 .RI [ name\fB=\fIvalue "] ..."
12 modifies its environment according to the
14 arguments, and executes
16 with the given arguments and the modified environment.
18 If no utility is specified then the modified environment is printed as
20 strings, one per line.
24 Use exactly the environment specified by the arguments; the inherited
25 environment is ignored.
28 Specify all arguments for the utility, i.e. the first of the arguments is
31 the program name. Normally the program name is
37 The path used to find utility. It is as modified by
50 after successfully printing the environment,
57 could not be executed, or
61 could not be found. Appropriate diagnostic messages are printed on standard
65 can be executed then it replaces
67 so the return code is then the return code of
70 When run from the standard shell
72 is only useful with options or without arguments. Otherwise the shell can
75 can do, simply omit the word "env" on the command line.
77 One interesting use of
79 is with #! on the first line of a script to forge a PATH search for an
80 interpreter. For example:
86 This will find the Perl interpreter if it is within the user's PATH. Most
87 UNIX-like systems have
93 Kees J. Bot <kjb@cs.vu.nl>