xref: /386bsd/usr/share/man/cat1/printenv.0 (revision a2142627)
1PRINTENV(1)                 386BSD Reference Manual                PRINTENV(1)
2
3NNAAMMEE
4     pprriinntteennvv, eennvv - print out the environment, set and print environment
5
6SSYYNNOOPPSSIISS
7     pprriinntteennvv [_n_a_m_e]
8     eennvv [--] [_n_a_m_e=_v_a_l_u_e ...] [_c_o_m_m_a_n_d]
9
10DDEESSCCRRIIPPTTIIOONN
11     PPrriinntteennvv prints out the names and values of the variables in the
12     environment, with one name/value pair per line.  If _n_a_m_e is specified,
13     only its value is printed.
14
15     If a _n_a_m_e is specified and it is not defined in the environment, pprriinntteennvv
16     returns exit status 1, else it returns status 0.
17
18     EEnnvv executes _c_o_m_m_a_n_d after modifying the environment as specified on the
19     command line.  The option _n_a_m_e=_v_a_l_u_e specifies an environmental variable,
20     _n_a_m_e, with a value of _v_a_l_u_e. The option `--' causes eennvv to completely
21     ignore the environment it inherits.
22
23     If no command is specified, eennvv prints out the names and values of the
24     variables in the environment, with one name/value pair per line.
25
26SSEEEE AALLSSOO
27     csh(1),  sh(1),  execvp(3),  environ(7)
28
29HHIISSTTOORRYY
30     The pprriinntteennvv command appeared in 3.0BSD.
31
32BBUUGGSS
33     EEnnvv doesn't handle commands with equal (``='') signs in their names, for
34     obvious reasons.
35
363rd Berkeley Distribution        July 28, 1991                               1
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67