MPE/iX Shell and Utilities Reference Manual, Vol 1

env(1) MPE/iX Shell and Utilities env(1)
NAME
env — display environment, set environment for process
SYNOPSIS
env [–i][variable=value ...] [command argument ...]
env [][variable=value ...] [command argument ...]
DESCRIPTION
If you call env with no arguments, it displays the environment that it received from its parent
(presumably the shell).
Arguments of the form
variable=value
let you add new variables or change the value of existing variables of the environment.
If you specify command, env calls command with the arguments that appear on the command
line, passing the accumulated environment to this command. The command is executed
directly as a program found in the search
PATH
, and is not interpreted by a shell.
Options
env accepts the following options:
–i does not use the environment inherited by env.
obsolescent version of –i.
EXAMPLES
Compare the output of the following two examples which illustrate the use of env:
env foo=bar env
env -i foo=bar env
ENVIRONMENT VARIABLES
PATH
contains a list of directories to search when attempting to find command.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to any of the following
— insufficient memory
— name is too long.
Commands and Utilities 1-207