Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ set(1F) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

env(1)

sh(1)

set(1F)             (Form and Menu Language Interpreter)            set(1F)

NAME
     set, unset - set and unset local or global environment variables

SYNOPSIS
     set [-l variable[=value]] ...
     set [-e variable[=value]] ...
     set [-ffile variable[=value]] ...

     unset -l variable ...
     unset -ffile variable ...

DESCRIPTION
     The set command sets variable in the environment or adds
     variable=value to file. If variable is not equated it to a value, set
     expects the value to be on stdin. The unset command removes variable.
     The FMLI predefined read-only variables (such as ARG1), may not be set
     or unset.

     FMLI inherits the Reliant UNIX environment when invoked:

     -l       Sets or unsets the specified variable in the local environ-
              ment. Variables set with -l will not be inherited by
              processes invoked from FMLI.

     -e       Sets the specified variable in the Reliant UNIX environment.
              Variables set with -e will be inherited by any processes
              started from FMLI. These variables cannot be unset.

     -ffile   Sets or unsets the specified variable in the global environ-
              ment. The argument file is the name or pathname of a file
              containing lines of the form variable=value. file will be
              created if it does not already exist. No space intervenes
              between -f and file.

     At least one of the above options must be used for each variable being
     set or unset. If you set a variable with the -ffilename option, you
     must thereafter include filename in references to that variable. For
     example, ${(file)VARIABLE}.

EXAMPLES
     Storing a selection made in a menu is done like this:

          name=Selection 2
          action=`set -l SELECTION=2`close











Page 1                       Reliant UNIX 5.44                Printed 11/98

set(1F)             (Form and Menu Language Interpreter)            set(1F)

NOTES
     Variables set to be available to the Reliant UNIX environment (those
     set using the -e option) can only be set for the current FMLI process
     and the processes it calls.

     When using the -f option (unless file is unique to the process) other
     users of FMLI on the same machine are able to expand these variables,
     depending on the read/write permissions on file.

     A variable set in one frame may be referenced or unset in any other
     frame. This includes local variables.

SEE ALSO
     env(1), sh(1).








































Page 2                       Reliant UNIX 5.44                Printed 11/98

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