From owner-freebsd-bugs Wed Dec 18 22:00:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA02223 for bugs-outgoing; Wed, 18 Dec 1996 22:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA02217; Wed, 18 Dec 1996 22:00:02 -0800 (PST) Resent-Date: Wed, 18 Dec 1996 22:00:02 -0800 (PST) Resent-Message-Id: <199612190600.WAA02217@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.VAA01969;Wed; (8.8.4/8.8.4);, 18 Dec 1996 21:53:20.-0800 (PST) Message-Id: <199612190553.VAA01969@freefall.freebsd.org> Date: Wed, 18 Dec 1996 21:53:20 -0800 (PST) From: imp@village.org To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: bin/2247: getopt should return -1 rather than EOF Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2247 >Category: bin >Synopsis: getopt should return -1 rather than EOF >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 18 22:00:01 PST 1996 >Last-Modified: >Originator: Warner Losh >Organization: The Village >Release: FreeBSD -current as of Dec 18, 1996 >Environment: n/a >Description: The POSIX standard states that getopt should return -1 when it reaches the end of the args. Earlier versions stated EOF explicitly. Although the constants are the same, we should go through the tree at some point and fix this. >How-To-Repeat: >Fix: Merge lite-2 :-). It does this correctly. >Audit-Trail: >Unformatted: