Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ env(1) — Interactive 3.2r4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

exec(2)

profile(4)

environ(5)

env(1)  —  

NAME

env − set environment for command execution

SYNOPSIS

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

DESCRIPTION

The env command 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. 

There is an exception to the above if the file name part of the value of $SHELL was rsh before executing env. In this case, the values of $SHELL and $PATH cannot be changed or deleted.  Whether or not the − flag is used, and whether or not new values are given for those environment variables, those variables with their original values will always be part of the new environment.  If there is an attempt, explicit or implicit, to change or delete either of these variables, the message:

SHELL: restricted

or

PATH: restricted

as appropriate, will be written to standard error (both of these messages will be produced whenever the − flag is used). 

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

SEE ALSO

sh(1). 
exec(2), profile(4), environ(5) in the INTERACTIVE SDS Guide and Programmer’s Reference Manual. 

ADDED VALUE

This entry, supplied by INTERACTIVE Systems Corporation, contains enhancements to UNIX System V. 

\*U  —  Version 1.0

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026