NetBSD Problem Report #27

From gnats  Tue Oct 12 14:47:01 1993
Received: from localhost (jtc@localhost) by sun-lamp.cs.berkeley.edu (8.3/8.3) id OAA03271; Tue, 12 Oct 1993 14:47:01 -0700
Message-Id: <199310122147.OAA03271@sun-lamp.cs.berkeley.edu>
Date: Tue, 12 Oct 1993 14:47:01 -0700
From: jtc@sun-lamp.cs.berkeley.edu
Reply-To: jtc@sun-lamp.cs.berkeley.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: getopt(3) not POSIX.2 compliant
X-Send-Pr-Version: 3.01.5

>Number:         27
>Category:       lib
>Synopsis:       getopt(3) not POSIX.2 compliant
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 12 14:50:24 +0000 1993
>Closed-Date:    Tue Oct 12 15:12:04 +0000 1993
>Last-Modified:  Fri Mar 21 19:04:03 +0000 2014
>Originator:     J.T. Conklin
>Release:        NetBSD-0.9
>Organization:
Winning Strategies, Inc.
>Environment:

System: NetBSD sun-lamp.cs.berkeley.edu 0.9a SUN_LAMP#6 i386


>Description:
	The getopt(3) function is supposed to treat optstrings whose
	first character is a colon specially.  
	  * It is not supposed to print error messages
	  * It is supposed to return colon instead of question mark
	    if an option-argument is missing.
	See POSIX.2 for all the grotty details.

>How-To-Repeat:
	while ((c = getopt (argc, argv, ":abf:o:")) != -1) { ...

>Fix:

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Tue Oct 12 15:12:04 1993
State-Changed-Why:
Updated getopt and its manpage.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.