install with -s
[unix-history] / usr / src / usr.bin / printenv / printenv.1
CommitLineData
ae8545ab
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
b7c664c7 5.\" @(#)printenv.1 6.1 (Berkeley) %G%
ae8545ab 6.\"
b7c664c7 7.TH PRINTENV 1 ""
ae8545ab
KM
8.UC
9.SH NAME
10printenv \- print out the environment
11.SH SYNOPSIS
12.B printenv
13[ name ]
14.SH DESCRIPTION
15.I Printenv
5648c395 16prints out the values of the variables in the environment. If a
ae8545ab 17.I name
5648c395 18is specified, only its value is printed.
ae8545ab
KM
19.PP
20If a
21.I name
22is specified and it is not defined in the environment,
23.I printenv
24returns exit status 1, else it returns status 0.
25.SH SEE ALSO
5648c395 26sh(1), environ(7), csh(1)