From owner-cvs-all Thu Jun 24 23:55: 1 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 34B9214BE0; Thu, 24 Jun 1999 23:54:55 -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 AAA81042; Fri, 25 Jun 1999 00:54:53 -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 AAA42025; Fri, 25 Jun 1999 00:53:31 -0600 (MDT) Message-Id: <199906250653.AAA42025@harmony.village.org> To: Dag-Erling Smorgrav 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: Bruce Evans , hm@hcs.de, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org In-reply-to: Your message of "24 Jun 1999 10:08:00 +0200." References: <199906240726.RAA29454@godzilla.zeta.org.au> <199906240732.BAA36302@harmony.village.org> Date: Fri, 25 Jun 1999 00:53:31 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In message Dag-Erling Smorgrav writes: : > : getopt actually says that "-?" is an illegal option. : > Where? I can only find the '?' mentioned as the character that is : > returned when an option not listed in the option string. : : http://www.opengroup.org/onlinepubs/007908799/xsh/getopt.html I guess I was unclear. This page, as well as our man pages, say that getopt returns '?' when it encounters a bad option. Neither this web page, nor our man page, state that it is illegal to have '?' in the options string, nor do they say that -? is illegal. This is splitting a very fine hair, I'll grant... They both are silent about the issue. I personally think encouraging -? is dangerous given its potential danger, as others have pointed out, in the face of files that match the shell expresssion -? (or put as a regular expression ^-.$). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message