Date: Thu, 24 Jun 1999 01:31:04 -0600 From: Warner Losh <imp@harmony.village.org> To: Greg Lehey <grog@lemis.com> Cc: hm@hcs.de, cvs-committers@FreeBSD.org, cvs-all@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: <199906240731.BAA36279@harmony.village.org> In-Reply-To: Your message of "Thu, 24 Jun 1999 16:57:47 %2B0930." <19990624165747.A427@freebie.lemis.com> References: <19990624165747.A427@freebie.lemis.com> <m10x3JA-0000fPC@hcswork.hcs.de> <199906240719.BAA36122@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906240731.BAA36279>