Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ env(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

environ(M)

exec(S)

profile(M)

sh(C)


 env(C)                        06 January 1993                         env(C)


 Name

    env - set environment for command execution

 Syntax

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

 Description

    The env command obtains the current ``environment'', modifies it accord-
    ing to its arguments, then executes the command with the modified
    environment.  Arguments of the form name 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 environment is printed, one name-value
    pair per line.

 See also

    environ(M), exec(S), profile(M), sh(C)

 Notes

    The old printenv command was replaced in System V by the env command.
    The current printenv is a link to env.

 Standards conformance

    env is conformant with:

    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


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