2016-03-29 23:16:27 +00:00
|
|
|
.Dd 2016-03-30
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt PRINTENV 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 22:25:12 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm printenv
|
2015-01-31 23:23:38 +00:00
|
|
|
.Nd print the environment or values of variables
|
2015-01-30 22:25:12 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Ar var ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-01-31 23:23:38 +00:00
|
|
|
prints the entire environment as key=value pairs if no
|
2015-01-30 22:25:12 +00:00
|
|
|
.Ar var
|
2020-03-01 22:37:31 +00:00
|
|
|
is given.
|
|
|
|
Otherwise,
|
2015-01-30 22:25:12 +00:00
|
|
|
.Nm
|
2015-01-31 23:23:38 +00:00
|
|
|
prints only the value of each
|
|
|
|
.Ar var
|
|
|
|
one per line in the order specified.
|
2018-11-20 22:33:13 +00:00
|
|
|
.Sh EXIT STATUS
|
2016-03-29 23:16:27 +00:00
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It 0
|
|
|
|
Successful completion.
|
|
|
|
.It 1
|
|
|
|
One or more queried variables were not found.
|
|
|
|
.It > 1
|
|
|
|
An error occurred.
|
|
|
|
.El
|
2015-01-30 22:25:12 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr env 1
|