PRINTENV(1) UNIX Reference Manual PRINTENV(1)
p
\bpr
\bri
\bin
\bnt
\bte
\ben
\bnv
\bv, e
\ben
\bnv
\bv - print out the environment, set and print environment
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
p
\bpr
\bri
\bin
\bnt
\bte
\ben
\bnv
\bv [_
\bn_
\ba_
\bm_
\be]
e
\ben
\bnv
\bv [-
\b-] [_
\bn_
\ba_
\bm_
\be=_
\bv_
\ba_
\bl_
\bu_
\be ...] [_
\bc_
\bo_
\bm_
\bm_
\ba_
\bn_
\bd]
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
P
\bPr
\bri
\bin
\bnt
\bte
\ben
\bnv
\bv prints out the names and values of the variables in the environ-
ment, with one name/value pair per line. If _
\bn_
\ba_
\bm_
\be is specified, only its
If a _
\bn_
\ba_
\bm_
\be is specified and it is not defined in the environment, p
\bpr
\bri
\bin
\bnt
\bte
\ben
\bnv
\bv
returns exit status 1, else it returns status 0.
E
\bEn
\bnv
\bv executes _
\bc_
\bo_
\bm_
\bm_
\ba_
\bn_
\bd after modifying the environment as specified on the
command line. The option _
\bn_
\ba_
\bm_
\be=_
\bv_
\ba_
\bl_
\bu_
\be specifies an environmental variable,
_
\bn_
\ba_
\bm_
\be, with a value of _
\bv_
\ba_
\bl_
\bu_
\be. The option `-
\b-' causes e
\ben
\bnv
\bv to completely ig-
nore the environment it inherits.
If no command is specified, e
\ben
\bnv
\bv prints out the names and values of the
variables in the environment, with one name/value pair per line.
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
csh(1), sh(1), execvp(3), environ(7)
H
\bHI
\bIS
\bST
\bTO
\bOR
\bRY
\bY
P
\bPr
\bri
\bin
\bnt
\bte
\ben
\bnv
\bv appeared in 3 BSD.
E
\bEn
\bnv
\bv doesn't handle commands with equal (``='') signs in their names, for