Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!henry
From: henry@utzoo.UUCP (Henry Spencer)
Newsgroups: hacknews
Subject: getopt(3) bug fix
Message-ID: <4187@utzoo.UUCP>
Date: Tue, 7-Aug-84 16:23:50 EDT
Article-I.D.: utzoo.4187
Posted: Tue Aug  7 16:23:50 1984
Date-Received: Tue, 7-Aug-84 16:23:50 EDT
Organization: U of Toronto Zoology
Lines: 9

Fixed a subtle bug in getopt(3):  it did not check for the case of an
argument-wanting option appearing at the very end of the argument list.
This is definitely an error, and now produces a message.  The old code
actually gave back a NULL optarg.  Getopt(1) has been compiled to pick
up the fix.  This probably isn't a sufficiently serious problem to
warrant global recompilations.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry