Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

EXPORT

9.0;env (environment) *DM*, revision 9.0, 85/03/04
ENV (ENVIRONMENT) -- Set or display an environment variable.
usage:  ENV variable [value]


FORMAT

  ENV variable [value]


  The  DM  command  ENV  sets  or displays the value of an environment variable.
  Environment variables are  of  primary  concern  to  DOMAIN/IX  users;  please
  consult the DOMAIN/IX 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.  This is 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 will NEVER change the
  value of a variable in an existing process.

  For details about manipulating environment variables from the Shell, type HELP
  EXPORT.


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 which must  be  lowercase
                     in single quotation marks.

                     Default if omitted:  display the current value of
                                          'variable'.


EXAMPLES

  Command: env SYSTYPE              Display the current value for SYSTYPE
                                     for the current Shell window.

  Command: env SYSTYPE 'bsd4.2'     Set the SYSTYPE variable to 'bsd4.2'.
                                     This line must appear in a startup
                                     script to have any effect.


RELATED TOPICS

  More information is available.  Type:

  - HELP EXPORT
   for information about manipulating environment variables from the Shell.

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