Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!topaz!nike!ucbcad!ucbvax!decvax!bellcore!petrus!purtill From: purtill@petrus.UUCP (Mark Purtill) Newsgroups: net.lang.c Subject: Re: Question on getopt() Message-ID: <240@petrus.UUCP> Date: Fri, 25-Jul-86 17:55:38 EDT Article-I.D.: petrus.240 Posted: Fri Jul 25 17:55:38 1986 Date-Received: Sat, 26-Jul-86 05:13:47 EDT References: <14935@ucbvax.BERKELEY.EDU> <1078@ttrdc.UUCP> Organization: Bell Communications Research, Inc Lines: 23 In article <1078@ttrdc.UUCP>, levy@ttrdc.UUCP (Daniel R. Levy) writes: > In article <14935@ucbvax.BERKELEY.EDU>, kos@ernie.Berkeley.EDU (Joshua Kosman) writes: > >Anybody know an easy way to intercept, suppress or otherwise get rid of the > >error message that getopt() issues when user supplies an illegal flag? ... > GETOPT(3C) UNIX System V GETOPT(3C) ... > included in optstring. This error message may be disabled > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > by setting opterr to a non-zero value. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ... > Please, read the man page. ... Not that the man page we have here (seems to be BSB 4.3) does not have the sentence marked with ^^^^s for a very good reason: its not true. Under 4.3 you can't suppress the messages except by rewriting getopt. Why did you(dan) assume someone from Berkeley was using sys V? mark purtill (201) 829-5127 ^.-.^ Arpa: purtill@bellcore.com 435 south st 2H-307 ((")) Uucp: ihnp4!bellcore!purtill morristown nj 07960