Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ environ(7) — UTek 4.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1csh)

ex(1)

ld(1)

login(1)

sh(1sh)

execve(2)

getenv(3c)

termcap(3t)

termcap(5t)



ENVIRON(7)              COMMAND REFERENCE              ENVIRON(7)



NAME
     environ - user environment

SYNOPSIS
     extern char **environ;

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

     PATH    The sequence of directory prefixes that sh, time,
             nice(1), etc., apply in searching for a file known
             by an incomplete pathname.  The prefixes are
             separated by ``:''.  The command login(1)sets
             PATH=:/bin:/usr/bin

     LIBPATH The sequence of directory names that are used by ld
             to resolve libraries named by the -l flag.  If not
             specified, ld will use a default value of
             "/usr /usr/lib /usr/local/lib".  The directories in
             LIBPATH are separated by colons and/or whitespace.

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

     TERM    The kind of terminal for which output is to be
             prepared.  This information is used by commands like
             nroff which may exploit special terminal
             capabilities.  See /etc/termcap (termcap(5t)) for a
             list of terminal types.

     SHELL   The filename of the user's login shell.

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

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

     USER    The login name of the user.

     MAIL    The pathname of the user's incoming mail drop.

     Further names may be placed in the environment by the export
     command and name=value arguments in sh(1sh), or by the
     setenv command if you use csh(1csh).  Arguments may also be
     placed in the environment at the point of an execve(2).  It
     is unwise to conflict with certain sh(1sh) variables that
     are frequently exported by .profile files: MAIL, PS1, PS2,



Printed 3/13/89                                                 1





ENVIRON(7)              COMMAND REFERENCE              ENVIRON(7)



     IFS.

SEE ALSO
     csh(1csh), ex(1), ld(1), login(1), sh(1sh), execve(2),
     getenv(3c), termcap(3t), and termcap(5t).


















































Printed 3/13/89                                                 2





































































%%index%%
na:312,78;
sy:390,318;
de:708,2777;3869,17;
se:3886,347;
%%index%%000000000090

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