From 6f3ecc442aa29fa760ffc75ed09efb4c8df337aa Mon Sep 17 00:00:00 2001 From: aaron <> Date: Thu, 27 May 1999 13:09:09 +0000 Subject: [PATCH] getopt(3) does not return -1 when encountering unrecognized options --- src/lib/libc/stdlib/getopt.3 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3 index 1697f58e..57d2c366 100644 --- a/src/lib/libc/stdlib/getopt.3 +++ b/src/lib/libc/stdlib/getopt.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: getopt.3,v 1.7 1999/05/23 14:11:03 aaron Exp $ +.\" $OpenBSD: getopt.3,v 1.8 1999/05/27 13:09:09 aaron Exp $ .\" .Dd April 19, 1994 .Dt GETOPT 3 @@ -121,8 +121,7 @@ The .Fn getopt function returns \-1 -when the argument list is exhausted, or a non-recognized -option is encountered. +when the argument list is exhausted. The interpretation of options in the argument list may be cancelled by the option .Ql --