From owner-cvs-all Thu Jun 24 0:21:36 1999 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 4E61914A13; Thu, 24 Jun 1999 00:21:31 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id BAA77795; Thu, 24 Jun 1999 01:21:30 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id BAA36122; Thu, 24 Jun 1999 01:19:57 -0600 (MDT) Message-Id: <199906240719.BAA36122@harmony.village.org> To: hm@hcs.de Subject: Re: cvs commit: src/usr.sbin/i4b/isdnd main.c src/usr.sbin/i4b/isdndebug main.c src/usr.sbin/i4b/isdndecode main.c src/usr.s Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Thu, 24 Jun 1999 08:48:24 +0200." References: Date: Thu, 24 Jun 1999 01:19:57 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In message Hellmuth Michaelis writes: : Including '?' in the getopt options string is intentional, because - last : time i checked - using "programname -?" produces an output, where getopt : says that "-?" is an invalid option. This is IMHO false in that "-?" is : a valid option to display the usage string(s). I'm not sure I agree with that completely. '?' is never used in BSD 4.4-lite sources (as far as I recall), but the 4.4-lite files also compared against EOF rather than -1. '?' is a special character to getopt. Users of getopt have no way of knowing if the user typed '?' or some other character, since getopt maps unknown characters to '?'. Since '?' is a special character, I don't have a problem adding it to the list of characters that are treated specially. Right now ':' is treated specially in getopt's error reporting. This is a deviation form the documentation, so there is precidence for treating ? specially. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message