From owner-freebsd-hackers Fri Mar 14 23:06:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA08517 for hackers-outgoing; Fri, 14 Mar 1997 23:06:24 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA08505 for ; Fri, 14 Mar 1997 23:06:11 -0800 (PST) Received: from rover.village.org (localhost [127.0.0.1]) by rover.village.org (8.8.5/8.6.6) with ESMTP id AAA18281 for ; Sat, 15 Mar 1997 00:06:08 -0700 (MST) Message-Id: <199703150706.AAA18281@rover.village.org> To: hackers@freebsd.org Subject: getopt and EOF vs -1 Date: Sat, 15 Mar 1997 00:06:07 -0700 From: Warner Losh Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk A long time ago, I filed a bug saying that getopt returns -1 rather than EOF. The general concensus at the time was approximately "Wait for lite-2, and then fix it." Lite-2 documents getopt this way now, so I'm in the process of fixing it in our source base when I want something to do that doesn't require much thought or skill. I've just finished usr.sbin and will be moving on to the rest of the tree. I plan on making sure that these things survive a make world and that the system survies after that make world. This will likely take about week or two to accomplish. This places the bulk checkin safely after 2.2R goes out. I plan on doing the commits one module at a time, so there shouldn't be more than about a dozen all told. I'll do one for usr.sbin and children, one for bin and all children, etc. This should update the change logs in the CVSROOT/commitlogs correctly while limiting the amount of mail to a reasonable amount. I thought I'd give fair warning that I'd be doing this in plenty of time for comments before I invest too much into doing this. Comments? Warner