|
|
1.1 ! root 1: .\" Copyright (c) 1983 Regents of the University of California. ! 2: .\" All rights reserved. The Berkeley software License Agreement ! 3: .\" specifies the terms and conditions for redistribution. ! 4: .\" ! 5: .\" @(#)environ.7 6.4 (Berkeley) 10/14/87 ! 6: .\" ! 7: .TH ENVIRON 7 "October 14, 1987" ! 8: .UC 5 ! 9: .SH NAME ! 10: environ \- user environment ! 11: .SH SYNOPSIS ! 12: .B extern char **environ; ! 13: .SH DESCRIPTION ! 14: An array of strings called the ! 15: .I environment ! 16: is made available by ! 17: .IR execve (2) ! 18: when a process begins. By convention these strings have the form ! 19: ``\fIname=value\fP''. The following names are used by various commands: ! 20: .TP "\w'TERMPATH 'u" ! 21: EXINIT ! 22: A startup list of commands read by ! 23: .IR ex (1), ! 24: .IR edit (1), ! 25: and ! 26: .IR vi (1). ! 27: .TP ! 28: HOME ! 29: A user's login directory, set by ! 30: .IR login (1) ! 31: from the password file ! 32: .IR passwd (5). ! 33: .TP ! 34: PATH ! 35: The sequence of directories, separated by colons, searched by ! 36: .IR csh (1), ! 37: .IR sh (1), ! 38: .IR system (3), ! 39: .IR execvp (3), ! 40: etc, when looking for an executable file. ! 41: PATH is set to ``:/usr/ucb:/bin:/usr/bin'' initially by ! 42: .IR login (1). ! 43: .TP ! 44: PRINTER ! 45: The name of the default printer to be used by ! 46: .IR lpr (1), ! 47: .IR lpq (1), ! 48: and ! 49: .IR lprm (1). ! 50: .TP ! 51: SHELL ! 52: The full pathname of the user's login shell. ! 53: .TP ! 54: TERM ! 55: The kind of terminal for which output is to be prepared. ! 56: This information is used by commands, such as ! 57: .IR nroff (1) ! 58: or ! 59: .IR plot (1G), ! 60: which may exploit special terminal capabilities. See ! 61: .I /etc/termcap ! 62: .RI ( termcap (5)) ! 63: for a list of terminal types. ! 64: .TP ! 65: TERMCAP ! 66: The string describing the terminal in TERM, or, if ! 67: it begins with a '/', the name of the termcap file. ! 68: See TERMPATH below, ! 69: .IR termcap (5), ! 70: and ! 71: .IR termcap (3X). ! 72: .TP ! 73: TERMPATH ! 74: A sequence of pathnames of termcap files, separated by colons or spaces, ! 75: which are searched for terminal descriptions in the order listed. Having ! 76: no TERMPATH is equivalent to a TERMPATH of ``$HOME/.termcap:/etc/termcap''. ! 77: TERMPATH is ignored if TERMCAP contains a full pathname. ! 78: .TP ! 79: USER ! 80: The login name of the user. ! 81: .PP ! 82: Further names may be placed in the environment by the ! 83: .I export ! 84: command and ! 85: .IR name = value ! 86: arguments in ! 87: .IR sh (1), ! 88: or by the ! 89: .I setenv ! 90: command if you use ! 91: .IR csh (1). ! 92: It is unwise to change certain ! 93: .IR sh (1) ! 94: variables that are frequently exported by ! 95: .I .profile ! 96: files, such as MAIL, PS1, PS2, and IFS, ! 97: unless you know what you are doing. ! 98: .SH SEE ALSO ! 99: csh(1), ex(1), login(1), sh(1), execve(2), execle(3), ! 100: system(3), termcap(3), termcap(5)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.