Skip site navigation (1)Skip section navigation (2)
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:   docs/1417: getopt(3) man page contradiction
Message-ID:  <199607220656.IAA06960@diamant.noc.dfn.de>
Resent-Message-ID: <199607220700.AAA20912@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1417
>Category:       docs
>Synopsis:       getopt(3) man page contradiction
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 22 00:00:00 PDT 1996
>Last-Modified:
>Originator:     Jens Schweikhardt
>Organization:
University of Stuttgart
>Release:        FreeBSD 2.1-STABLE i386
>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)
>Audit-Trail:
>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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607220656.IAA06960>