Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

10.0;env (environment) *DM*, revision 1.0, 87/12/23
env (environment) set or display an environment variable
usage:  env variable [value]



DESCRIPTION
     The DM command env sets or displays the value of an environment variable.
     Environment variables are of primary concern to Domainr/OS users; please
     consult the Domain/OS documentation for details about their usage.

     If you invoke env from the keyboard, you may use it only to display
     environment variables, not set them.  To set variables, env must appear
     in one of your startup scripts so that it gets executed before any shells
     are created, because the DM assigns values to environment variables for
     new shells using those in effect for the window that currently contains
     the cursor.  env thus does not have a chance to influence the new shell
     if other shell(s) already exist.  In addition, the env command never
     changes the value of a variable in an existing process.


ARGUMENTS
     variable (required)
                    Specify the name of the variable whose value is to be set
                    or displayed.  Since the DM normally forces arguments to
                    uppercase prior to command scanning, enclose a variable
                    whose name must be lowercase in single quotation marks.

     value (optional)
                    Specify the new value to be assigned to variable.  Since
                    the DM normally forces arguments to uppercase prior to
                    command scanning, enclose a value that must be lowercase
                    in single quotation marks.

                    Default if omitted:  display the current value of variable

EXAMPLES
     env systype    Display the current value for systype for the current
                    shell window.

     env systype 'bsd4.3'
                    Set the systype variable to 'bsd4.3'. This line must
                    appear in a startup script to have any effect.

SEE ALSO
     More information is available.  Type the following at an Aegis shell
     prompt:

     help export    For information about manipulating environment variables
                    from the shell. (export is an Aegis shell command.)

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