summaryrefslogtreecommitdiff
path: root/util/sbase/which.1
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/which.1')
-rw-r--r--util/sbase/which.144
1 files changed, 44 insertions, 0 deletions
diff --git a/util/sbase/which.1 b/util/sbase/which.1
new file mode 100644
index 00000000..9ba4b224
--- /dev/null
+++ b/util/sbase/which.1
@@ -0,0 +1,44 @@
+.Dd October 8, 2015
+.Dt WHICH 1
+.Os sbase
+.Sh NAME
+.Nm which
+.Nd locate programs in the path
+.Sh SYNOPSIS
+.Nm
+.Op Fl a
+.Ar name ...
+.Sh DESCRIPTION
+.Nm
+looks for each
+.Ar name
+in the
+.Ev PATH
+directories, stopping at the first match and printing
+the full path to stdout.
+.Sh OPTIONS
+.Bl -tag -width Ds
+.It Fl a
+Don't stop at the first match and search all
+.Ev PATH
+directories.
+.El
+.Sh EXIT STATUS
+.Bl -tag -width Ds
+.It 0
+Each
+.Ar name
+was found.
+.It 1
+At least one
+.Ar name
+was not found.
+.It 2
+No
+.Ar name
+was found.
+.It 3
+An error occurred.
+.El
+.Sh SEE ALSO
+.Xr environ 7