From owner-freebsd-bugs Mon Jul 22 00:00:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA20933 for bugs-outgoing; Mon, 22 Jul 1996 00:00:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA20912; Mon, 22 Jul 1996 00:00:01 -0700 (PDT) Resent-Date: Mon, 22 Jul 1996 00:00:01 -0700 (PDT) Resent-Message-Id: <199607220700.AAA20912@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, 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" ; 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 ); 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: docs/1417: getopt(3) man page contradiction Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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