Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

environment(1)

ex(1)

ksh(1)

login(1)

sh(1)

execve(2)

system(3)

termcap(3X)

termcap(5)

systype(1)

ENVIRON(7)                           BSD                            ENVIRON(7)



NAME
     environ - user environment variables

SYNOPSIS
     extern char **environ;

DESCRIPTION
     The execve(2) call makes an array of strings called the "environment"
     available when a process begins. By convention, these strings have the
     form name=value.

VARIABLE NAMES
     The following names are used by various commands:

     PATH           The sequence of directory prefixes that sh(1), time(1),
                    nice(1), etc., apply in searching for a file known by an
                    incomplete path name.  The prefixes are separated by
                    colons (:).  login(1) sets
                    PATH=:/usr/ucb:/bin:/usr/bin:/usr/apollo/bin.

     HOME           Name of the user's login directory, set by login(1) from
                    the password file passwd(5).

     SHELL          The filename of the user's login shell.

     TERM           The kind of terminal for which output is to be prepared.
                    This information is used by commands, such as vi(1),
                    nroff(1), or plot(1G), which may exploit special terminal
                    capabilities.  See /etc/termcap (termcap(5)) for a list of
                    terminal types.

     TERMCAP        The string describing the terminal in TERM, or the name of
                    the termcap file, see termcap(5),termcap(3X).

     EXINIT         A startup list of commands read by ex(1), edit(1), and
                    vi(1).

     USER           The login name of the user.

     PRINTER        The name of the default printer to be used by lpr(1),
                    lpq(1), and lprm(1).

     PROJECT        Project associated with login name.

     ORGANIZATION   Organization associated with login name.

     NODEID         Hexadecimal ID of current node, for example, 2blf.

     NODETYPE       Model number of the workstation on which the process is
                    running, for example, dn3000.

     SYSTYPE        Version of the Domain/OS environment currently set as
                    systype, for example, bsd4.3.

     TZ             Time zone information.  The format is XXXNZZZ where XXX is
                    standard local time zone abbreviation, N is the difference
                    in hours from Greenwich Mean Time, and ZZZ is the
                    abbreviation for the daylight-saving local time zone, if
                    any; for example, EST5EDT.

     APOLLO_STATUS  Prints additional Apollo status information anytime
                    perror() is called.

     Additional names may be placed in the environment by the export command
     and the name=value arguments in sh(1) and ksh(1), or by the setenv
     command in csh(1).  Arguments may also be placed in the environment at
     the point of an execve(2).

NOTES
     It is unwise to use the names MAIL, PS1, PS2, IFS.  They conflict with
     certain sh(1) variables that are frequently exported by .profile files.

     When you log in, the Display Manager looks for a ~/.environ file, and
     uses it to set the environment and the SYSTYPE variable.  If this file
     doesn't exist, the node defaults are used. The /etc/environ file
     establishes the default environment and SYSTYPE variable for the node.

SEE ALSO
     csh(1), environment(1), ex(1), ksh(1), login(1), sh(1), execve(2),
     system(3), termcap(3X), termcap(5), systype(1);
     Managing BSD System Software;
     Using Your BSD Environment.

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