summaryrefslogtreecommitdiffstats
path: root/misc-utils/whereis.1
diff options
context:
space:
mode:
authorSami Kerola2013-03-16 22:05:24 +0100
committerKarel Zak2013-03-19 16:09:38 +0100
commitccec32a121c717bbb7909d4db4095e67cfcf6e4f (patch)
treeea55f2b89b13d2e5ab50e2cf80970c28cf14363f /misc-utils/whereis.1
parentwhereis: align with howto-usage-function.txt (diff)
downloadkernel-qcow2-util-linux-ccec32a121c717bbb7909d4db4095e67cfcf6e4f.tar.gz
kernel-qcow2-util-linux-ccec32a121c717bbb7909d4db4095e67cfcf6e4f.tar.xz
kernel-qcow2-util-linux-ccec32a121c717bbb7909d4db4095e67cfcf6e4f.zip
whereis: support MANPATH environment variable
The MANPATH has been around long enough that it can be added to whereis default search path. Reference: manpath(1) Addresses: http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/whereis.1')
-rw-r--r--misc-utils/whereis.131
1 files changed, 17 insertions, 14 deletions
diff --git a/misc-utils/whereis.1 b/misc-utils/whereis.1
index 9b33999c4..4ce7a0777 100644
--- a/misc-utils/whereis.1
+++ b/misc-utils/whereis.1
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)whereis.1 from UCB 4.2
-.TH WHEREIS 1 "January 2013" "util-linux" "User Commands"
+.TH WHEREIS 1 "March 2013" "util-linux" "User Commands"
.SH NAME
whereis \- locate the binary, source, and manual page files for a command
.SH SYNOPSIS
@@ -113,21 +113,24 @@ or have no source in
.B $ cd /usr/bin
.br
.B $ whereis \-u \-ms \-M /usr/man/man1 \-S /usr/src \-f *
-
-.SH FILES
+.SH "FILE SEARCH PATHS"
+By default
.B whereis
-contains a basic set of hard-coded paths (see below), but if the
-.B \-B
-option is not specified, it also follows the
+tries to find files from hard-coded paths, which are defined with glob
+patterns. The command attempst to use contents of
.B $PATH
-environment variable (since version 2.21).
-.IP
-.br
-/{bin,sbin,etc}
-.br
-/usr/{lib,\:bin,\:old,\:new,\:local,\:games,\:include,\:etc,\:src,\:man,\:sbin,\:X386,\:TeX,\:g++-include}
-.br
-/usr/local/{X386,\:TeX,\:X11,\:include,\:lib,\:man,\:etc,\:bin,\:games,\:emacs}
+and
+.B $MANPATH
+environment variables as default search path. The easiest way to know
+what paths are in use is to add
+.B \-l
+listing option. Effects of the
+.BR \-B ,
+.BR \-M ,
+and
+.BR \-S
+are display with
+.BR \-l .
.SH "SEE ALSO"
.BR chdir (2)
.SH BUGS