Command: env

Syntax

env <assign> {,<assign> ... }

Description

Declare or redefine an operating system environment variable and give it a value.

Parameters

<word> = <string>

Switches

None

Notes

A null string value will make the variable undefined.

The variable name will be converted to upper case before being conveyed to the operating system, but the name may be accessed in upper and lower case within other commands.

When used within file pathnames, an environment name should be preceded by a $.

Example

env mylib = '/usr/applic'; # Definition.
type $mylib/read.me; # Example usage

See Also

Functions:

envval (string)