Amiga Unix — 68040 · 68060

Manual pages › General commands (1)

env-original(1)

set environment for command execution

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

With the coreutil package (with the extra set), see env(1) instead.

NAME

env - set environment for command execution

SYNOPSIS

env [-] [ name=value ] ...  [ command args ]

DESCRIPTION

env obtains the current environment, modifies it according to its arguments, then executes the command with the modified environment. Arguments of the form name=value are merged into the inherited environment before the command is executed. The - flag causes the inherited environment to be ignored completely, so that the command is executed with exactly the environment specified by the arguments.

If no command is specified, the resulting environment is printed, one name-value pair per line.

SEE ALSO

sh(1).
exec(2) in the Programmer's Reference Manual.
profile(4), environ(5) in the System Administrator's  Refer-
ence Manual.