From owner-cvs-all Thu Jun 24 0:32:43 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 9562614A13; Thu, 24 Jun 1999 00:32:38 -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 BAA77828; Thu, 24 Jun 1999 01:32:37 -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 BAA36279; Thu, 24 Jun 1999 01:31:04 -0600 (MDT) Message-Id: <199906240731.BAA36279@harmony.village.org> To: Greg Lehey 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: hm@hcs.de, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Thu, 24 Jun 1999 16:57:47 +0930." <19990624165747.A427@freebie.lemis.com> References: <19990624165747.A427@freebie.lemis.com> <199906240719.BAA36122@harmony.village.org> Date: Thu, 24 Jun 1999 01:31:04 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In message <19990624165747.A427@freebie.lemis.com> Greg Lehey writes: : echo rm -? : touch ./-f : echo rm -? In csh the echo produces an error message from the shell (eg no match), which is likely why BSD 4.4 didn't list '?' in any of its getopt strings. The change for iostat may be wrong because '-?' is documented in the man page... Warner P.S. My patch was bogus, here's a better one. Index: getopt.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/lib/libc/stdlib/getopt.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 getopt.c --- getopt.c 1997/03/11 11:27:48 1.1.1.2 +++ getopt.c 1999/06/24 07:24:10 @@ -85,7 +85,7 @@ return (-1); if (!*place) ++optind; - if (opterr && *ostr != ':') + if (opterr && *ostr != ':' && optopt != BADCH) (void)fprintf(stderr, "%s: illegal option -- %c\n", __progname, optopt); return (BADCH); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message