Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cat(1)

chrtbl(8)

date(1)

ed(1)

env(1)

ls(1)

login(1)

mm(1)

nice(1)

nohup(1)

sh(1)

sort(1)

ime(1)

vi(1)

environ(4)

exec(2)

ctime(3)

ctype(3)

cftime(4)

passwd(4)

profile(4)

timezone(4)



  environ(4)                          CLIX                          environ(4)



  NAME

    environ - User environment

  DESCRIPTION

    An array of strings called the ``environment'' is made available by exec
    when a process begins.  By convention, these strings have the form
    ``name=value''.  The following names are used by various commands:

    CFTIME     The default format string to be used by the date command and
               the ascftime() and cftime() functions (see ctime()).  If CFTIME
               is not set or is null, the default format string specified in
               the /lib/cftime/LANGUAGE file (if it exists) is used in its
               place (see cftime()).

    CHRCLASS   A value that corresponds to a file in /lib/chrclass containing
               character classification and conversion information.  This
               information is used by commands (such as cat, ed, sort, and so
               on) to classify characters as alphabetic, printable, uppercase,
               and so on, and to convert characters to upper or lowercase.

               When a program or command begins execution, the tables
               containing this information are initialized based on the value
               of CHRCLASS.  If CHRCLASS is nonexistent, null, set to a value
               for which no file exists in /lib/chrclass, or errors occur
               while reading the file, the ASCII character set is used.
               During execution, a program or command can change the values in
               these tables by calling the setchrclass() function.  For more
               detail, see ctype.

               These tables are created using the chrtbl command.

    HOME       The name of the user's login directory, set by login from the
               password file (see passwd).

    LANGUAGE   A language for which a printable file by that name exists in
               /lib/cftime.  This information is used by commands (such as
               date, ls, sort, and so on) to print date and time information
               in the language specified.

               If LANGUAGE is nonexistent, null, set to a value for which no
               file exists in /lib/cftime, or errors occur while reading the
               file, the last language requested will be used.  (If no
               language has been requested, the language usa_english is
               assumed.)  For a description of the content of files in
               /lib/cftime, see cftime.

    PATH       The sequence of directory prefixes that sh, time, nice, nohup,
               and so on, apply in searching for a file known by an incomplete
               pathname.  The prefixes are separated by colons login sets



  2/94 - Intergraph Corporation                                              1






  environ(4)                          CLIX                          environ(4)



               PATH=:/bin:/usr/bin.
                (For more detail, see the ``Execution'' section of the sh
               manual page.)

    TERM       The kind of terminal for which output is to be prepared.  This
               information is used by commands, such as mm or vi, which may
               exploit special capabilities of that terminal.

    TZ         Time zone information.  The simplest format is xxxNzzz where
               xxx is the standard local time zone abbreviation, N is the
               difference in hours from GMT (Greenwich Mean Time), and zzz is
               the abbreviation for an alternate time zone (usually the
               daylight-saving local time zone), if any; for example,

               TZ="EST5EDT"

               The most complex format allows you to specify the difference in
               hours of the alternate time zone from GMT and the starting day
               and time and ending day and time for using this alternate time
               zone.  For example, in 1985 the complex format corresponding to
               the above simple example is:

               TZ="EST5:00:00EDT4:00:00;118/2:00:00,300/2:00:00"

               When the above complex format is used, it must be surrounded by
               double quotes.  For more details, see ctime() and timezone().

    Further names may be placed in the environment by the export command and
    ``name=value'' arguments in sh, or by exec.  It is unwise to conflict with
    certain shell variables that are frequently exported by .profile files:
    MAIL, PS1, PS2, IFS (see profile).

  NOTES

    References to the cftime(), ctime(), and ctype manual pages refer to
    programming capabilities available beginning with Issue 4.1 of the C
    Programming Language Utilities.

    Administrators should note the following: if you attempt to set the
    current date to one of the dates that the standard and alternate time
    zones change (for example, the date that daylight time is starting or
    ending), and you attempt to set the time to a time in the interval between
    the end of standard time and the beginning of the alternate time (or the
    end of the alternate time and the beginning of standard time), the results
    are unpredictable.

  RELATED INFORMATION

    Commands: cat(1), chrtbl(8), date(1), ed(1), env(1), ls(1), login(1),
    mm(1), nice(1), nohup(1), sh(1), sort(1), ime(1), vi(1)




  2                                              Intergraph Corporation - 2/94






  environ(4)                          CLIX                          environ(4)



    Functions: exec(2), ctime(3), ctype(3)

    Files:  cftime(4),passwd(4), profile(4), timezone(4)



















































  2/94 - Intergraph Corporation                                              3




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