=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/which/which.1,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- src/usr.bin/which/which.1 2009/03/21 18:07:41 1.19 +++ src/usr.bin/which/which.1 2010/09/03 11:09:29 1.20 @@ -1,4 +1,4 @@ -.\" $OpenBSD: which.1,v 1.19 2009/03/21 18:07:41 sobrado Exp $ +.\" $OpenBSD: which.1,v 1.20 2010/09/03 11:09:29 jmc Exp $ .\" .\" Copyright (c) 1980, 1991 Regents of the University of California. .\" All rights reserved. @@ -29,7 +29,7 @@ .\" .\" from: @(#)which.1 6.3 (Berkeley) 4/23/91 .\" -.Dd $Mdocdate: March 21 2009 $ +.Dd $Mdocdate: September 3 2010 $ .Dt WHICH 1 .Os .Sh NAME @@ -50,21 +50,6 @@ flag is given, .Nm will return a list of all matches instead of just the first match. -.Pp -The -.Nm -utility exits with one of the following values: -.Pp -.Bl -tag -width 4n -compact -.It 0 -All names were successfully resolved. -.It 1 -Some names were resolved but not all. -.It 2 -No names were resolved. -.It \-1 -A system error occurred. -.El .Sh ENVIRONMENT The following environment variables affect the execution of .Nm which : @@ -77,6 +62,21 @@ or relative pathname, .Nm will fail. +.El +.Sh EXIT STATUS +The +.Nm +utility exits with one of the following values: +.Pp +.Bl -tag -width Ds -offset indent -compact +.It 0 +All names were successfully resolved. +.It 1 +Some names were resolved but not all. +.It 2 +No names were resolved. +.It \-1 +A system error occurred. .El .Sh DIAGNOSTICS A diagnostic is given if an executable file with the argument