From Schweikhardt@RUS.Uni-Stuttgart.DE  Sun Jul 21 23:58:57 1996
Received: from noc.belwue.de (root@noc.BelWue.DE [129.143.2.1])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA20851
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 21 Jul 1996 23:58:55 -0700 (PDT)
Received: from rubin.noc.dfn.de (rubin.noc.dfn.de [193.174.247.201]) by noc.belwue.de with SMTP id IAA09676
  (8.6.13/IDA-1.6 for <FreeBSD-gnats-submit@freebsd.org>); Mon, 22 Jul 1996 08:58:44 +0200
Received: from diamant.noc.dfn.de by rubin.noc.dfn.de (4.1/BelWue-2.0SUN)
	id AA25849; Mon, 22 Jul 96 08:58:43 +0200
Received: by diamant.noc.dfn.de (SMI-8.6/SVR4/BelWue-1.0.3)
	id IAA06960; Mon, 22 Jul 1996 08:56:32 +0200
Message-Id: <199607220656.IAA06960@diamant.noc.dfn.de>
Date: Mon, 22 Jul 1996 08:56:31 +0200 (MET DST)
From: Schweikhardt@RUS.Uni-Stuttgart.DE (Jens Schweikhardt)
To: FreeBSD-gnats-submit@freebsd.org
Subject: getopt(3) man page contradiction

>Number:         1417
>Category:       docs
>Synopsis:       getopt(3) man page contradiction
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 22 00:00:00 PDT 1996
>Closed-Date:    Wed Aug 21 12:48:59 PDT 1996
>Last-Modified:  Wed Aug 21 12:49:40 PDT 1996
>Originator:     Jens Schweikhardt
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
University of Stuttgart
>Environment:

	Any

>Description:

	The man page for getopt(3) says under DESCRIPTION

     The getopt() function returns an EOF when ...
     a non-recognized option is encountered.

    Under DIAGNOSTICS however,

     If the getopt() function encounters a character not found in the string
     optarg ... it ... returns `?' ....

>How-To-Repeat:

	man 3 getopt

>Fix:
	
	The actual behaviour seems to be the one described under DIAGNOSTICS.

	Jens
--
SIGSIG -- signature too long (core dumped)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Wed Aug 21 12:48:59 PDT 1996 
State-Changed-Why:  
getopt(3) was updated to be consistent in how it describes 
its return values. 
>Unformatted:
To: FreeBSD-gnats-submit@freebsd.org
Subject: getopt(3) man page contradiction
From: schweikh@noc.dfn.de
Reply-To: schweikh@noc.dfn.de
X-send-pr-version: 3.2


