Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hpda.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!hpda!bd From: bd@hpda.UUCP (Bob Desinger) Newsgroups: net.wanted.sources Subject: Re: Getopt Source needed Message-ID: <1244@hpda.UUCP> Date: Sun, 1-Dec-85 17:21:37 EST Article-I.D.: hpda.1244 Posted: Sun Dec 1 17:21:37 1985 Date-Received: Tue, 10-Dec-85 06:21:36 EST References: <2258@ncrcae.UUCP> Reply-To: bd@hpda.UUCP (Bob Desinger) Distribution: net.sources Organization: Hewlett-Packard Co., Cupertino, CA Lines: 23 Keywords: getopt Summary: Beware the AT&T Toolchest's getopt, you BSD'ers. We got a version of getopt (free, I hear) from the AT&T Toolchest. I think we got what we paid for. It didn't even compile under our 4.2BSD system. The code uses strchr() and strrchr() with no #ifdef INDEX or any other courtesies like that. It also has an "#ident" directive, which the '4th Generation Make' documentation says is an obsolete cpp directive. (It's obsolete if you're using the *new* make, which you can buy from the AT&T Toolchest. The old make/cpp never heard of it. Perhaps it's an 8th-edition development.) Also, the makefile refers to a non- existent program, evidently a cat-like program that tests getopt. Sorta frustrating on all sides. This is not the kind of Unix support I would have expected from AT&T, nor the kind of coding quality I expected from the industry's largest Unix vendor. Bob Desinger ucbvax!hpda!bd PS: Check your mod.sources archives for a better getopt. There are two rival versions that have floated around, but I'm not sure which is superior.