summaryrefslogtreecommitdiffstats
path: root/usr.bin/which/which.1
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-01-28 17:35:56 +0000
committerasami <asami@FreeBSD.org>1995-01-28 17:35:56 +0000
commitafd6259b6034dbc8f916327de82df8d2336f1f8d (patch)
tree7d4d4eaf851a99123a5ad53b6d1b0648a3fc3672 /usr.bin/which/which.1
parent8b380261fb87a0cf7a9e3b0ec5003a1300c89699 (diff)
downloadFreeBSD-src-afd6259b6034dbc8f916327de82df8d2336f1f8d.zip
FreeBSD-src-afd6259b6034dbc8f916327de82df8d2336f1f8d.tar.gz
Add a `-s' flag for `silent' processing. Make the script return 0 for
success and 1 for failure. Describe the options in manpage.
Diffstat (limited to 'usr.bin/which/which.1')
-rw-r--r--usr.bin/which/which.112
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/which/which.1 b/usr.bin/which/which.1
index 757ae1e..234fe47 100644
--- a/usr.bin/which/which.1
+++ b/usr.bin/which/which.1
@@ -27,7 +27,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
.\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id$
+.\" $Id: which.1,v 1.1 1995/01/26 21:49:48 jkh Exp $
.Dd January 26, 1995
.Dt WHICH 1
.Os FreeBSD
@@ -36,12 +36,22 @@
.Nd "locate a program file in the user's path"
.Sh SYNOPSIS
.Nm which
+.Op Fl as
.Op Ar command
.Ar ...
.Sh DESCRIPTION
.Nm Which
takes a list of command names and searches the path for each executable
file that would be run had these commands actually been invoked.
+.Pp
+The following options are available:
+.Bl -tag -width indent
+.It Fl a
+List all instances of executables found (instead of just the first one
+of each).
+.It Fl s
+No output, just return 0 if any of the executables are found, or 1 if
+none are found.
.Sh HISTORY
The
.Nm
OpenPOWER on IntegriCloud