Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 1999 00:53:31 -0600
From:      Warner Losh <imp@harmony.village.org>
To:        Dag-Erling Smorgrav <des@flood.ping.uio.no>
Cc:        Bruce Evans <bde@zeta.org.au>, hm@hcs.de, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
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 
Message-ID:  <199906250653.AAA42025@harmony.village.org>
In-Reply-To: Your message of "24 Jun 1999 10:08:00 %2B0200." <xzp674ef2cf.fsf@flood.ping.uio.no> 
References:  <xzp674ef2cf.fsf@flood.ping.uio.no>  <199906240726.RAA29454@godzilla.zeta.org.au> <199906240732.BAA36302@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <xzp674ef2cf.fsf@flood.ping.uio.no> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906250653.AAA42025>