Commit | Line | Data |
---|---|---|
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 | |
10 | printenv \- print out the environment | |
11 | .SH SYNOPSIS | |
12 | .B printenv | |
13 | [ name ] | |
14 | .SH DESCRIPTION | |
15 | .I Printenv | |
5648c395 | 16 | prints out the values of the variables in the environment. If a |
ae8545ab | 17 | .I name |
5648c395 | 18 | is specified, only its value is printed. |
ae8545ab KM |
19 | .PP |
20 | If a | |
21 | .I name | |
22 | is specified and it is not defined in the environment, | |
23 | .I printenv | |
24 | returns exit status 1, else it returns status 0. | |
25 | .SH SEE ALSO | |
5648c395 | 26 | sh(1), environ(7), csh(1) |