Go to the first, previous, next, last section, table of contents.

## Environment variable

There exist several environment variables concerning with an execution of Asir. On UNIX, an environment variable is set from shells, or in rc files of shells. On Windows NT, it can be set from [Control Panel] ->[Environment]. On Windows 95/98, it can be set in ``c:\autoexec.bat'`. Note that the setting takes effect after rebooting the machine on Windows 95/98.

- `ASIR_KEY`
  Asir shall not work unless a `key` for the machine on which Asir is invoked is given. The `key` consists of a string which denotes 3 word hexadecimal number, each of which has 8 hexadecimal digits. In order to run Asir for several machines, several `key`'s can be written together on a same file as follows.

      % cat asir_key
      cf6f236c 61a35091 dddc4529 geisha
      82281685 d1929945 a8bd24ca yorktown
      34b75d30 63f8df93 3e881113 nyanchu

  The text after each `key` is neglected to the end-of-line. This is convenient to comment on the respective `key`. Files containing `key`'s are searched by the following order.
  1. File set to environment `ASIR_KEY`
  2. File ``asir_key'` on the current directory.
  3. Files on the directory specified by environment `ASIR_LIBDIR`. (File ``asir_key'` on ``/usr/local/lib/asir/'`, if environment `ASIR_LIBDIR` is not set.)
- `ASIR_LIBDIR`
  The library directory of Asir, i.e., the directory where , for example, files containing programs written in Asir. If not specified, on UNIX, ``/usr/local/lib/asir'` is used by default. On Windows, ``lib'` in Asir root directory is used by default. This environment will be useful in a case where Asir binaries are installed on a private directory of the user.
- `ASIRLOADPATH`
  This environment specifies directories which contains files to be loaded by Asir command `load()`. Directories are separated by a `:' on UNIX, a ';' on Windows respectively. The search order is from the left to the right. After searching out all directories in `ASIRLOADPATH`, or in case of no specification at all, the library directory will be searched.
- `HOME`
  If Asir is invoked without -norc, ``$HOME/.asirrc'`, if exists, is executed. If `HOME` is not set, nothing is done on UNIX. On Windows, ``.asirrc'` in Asir root directory is executed if it exists.

Go to the first, previous, next, last section, table of contents.