Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (1) — Plan9 3rd Edition (Vita Nuova)

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acme(1)

sh(1)

env(2)

ENV(1)

NAME

env, getenv, setenv − environment routines

SYNOPSIS

­env

­getenv ­varname

­setenv ­varname [ ­value ]

DESCRIPTION

The env command prints out the current process’s environment as a list of variables and their current values. 

The getenv command prints out the current value of the variable whose name is given as the argument ­varname .  If the variable is not set, a blank line is output. 

The setenv command sets the value of the variable whose name is given as the argument ­varname to ­value when the latter is provided on the command line. If no second argument is given the effect is to unset the variable. In both cases, if the variable is set originally, that value will be replaced by the new one. 

SOURCE

­/appl/cmd/env.b
­/appl/cmd/getenv.b
­/appl/cmd/setenv.b

SEE ALSO

acme(1), sh(1), env(2)

BUGS

­Env does not understand that environment variables as stored by sh(1) are lists.

Plan 9  —  June 29, 2000

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