summaryrefslogtreecommitdiff
path: root/util/sbase/printenv.1
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/printenv.1')
-rw-r--r--util/sbase/printenv.130
1 files changed, 30 insertions, 0 deletions
diff --git a/util/sbase/printenv.1 b/util/sbase/printenv.1
new file mode 100644
index 00000000..24c410be
--- /dev/null
+++ b/util/sbase/printenv.1
@@ -0,0 +1,30 @@
+.Dd March 30, 2016
+.Dt PRINTENV 1
+.Os sbase
+.Sh NAME
+.Nm printenv
+.Nd print the environment or values of variables
+.Sh SYNOPSIS
+.Nm
+.Op Ar var ...
+.Sh DESCRIPTION
+.Nm
+prints the entire environment as key=value pairs if no
+.Ar var
+is given.
+Otherwise,
+.Nm
+prints only the value of each
+.Ar var
+one per line in the order specified.
+.Sh EXIT STATUS
+.Bl -tag -width Ds
+.It 0
+Successful completion.
+.It 1
+One or more queried variables were not found.
+.It > 1
+An error occurred.
+.El
+.Sh SEE ALSO
+.Xr env 1