Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ut-sally.UUCP Path: utzoo!decvax!genrad!panda!talcott!harvard!seismo!ut-sally!jsq From: jsq@ut-sally.UUCP (John Quarterman) Newsgroups: mod.std.unix Subject: Re: command line arguments Message-ID: <2255@ut-sally.UUCP> Date: Thu, 4-Jul-85 09:37:53 EDT Article-I.D.: ut-sally.2255 Posted: Thu Jul 4 09:37:53 1985 Date-Received: Thu, 4-Jul-85 22:16:17 EDT References: <2210@ut-sally.UUCP> <2226@ut-sally.UUCP>, <2244@ut-sally.UUCP> Organization: U. Texas CS Dept., Austin, Texas Lines: 76 Approved: jsq@ut-sally.UUCP From: John Quarterman (moderator)Topic: more on getopt (command line arguments) This article will be followed by one more, containing source and man page for a public domain getopt. That should about wrap this subject up. -mod ---------------------------------------------------------------------- From: Randy D. Smith Date: Mon, 1 Jul 85 07:58:42 edt Apparently-To: mcnc!ihnp4!ut-sally!std-unix P1003 definitely intends to address commands and the command interface (e.g., sh). That work has been sidetracked in order to devote our efforts to getting the current core of the draft (system call stuff) out the door. I believe everyone on the committee fully expects that commands/command line will be a top priority after the draft goes out, is balloted, and the ballots are resolved. There has been some consensus already on the command line interface, based on "An Enhanced Getopt" by T. C. Jones and L. A. Kennedy of AT&T Bell Labs. As mentioned in previous messages, this should help us in the future, although history already stuck us with a variety of interfaces to existing commands. -- Randy D. Smith (919) 248-6136 Data General, Research Triangle Park, NC !mcnc!rti-sel!rtp47!smithrd ------------------------------ Date: Wed, 3 Jul 85 11:06:19 edt From: seismo!ulysses!smb (Steven Bellovin) To: ut-sally!std-unix Subject: Re: command line arguments I believe I heard at Usenix that AT&T has put their version of getopt() into the public domain. Can anyone confirm this? --Steve Bellovin ulysses!smb ------------------------------ Date: Sat, 29 Jun 85 16:55:37 edt From: ihnp4!utcs!ian (Ian F. Darwin) To: ut-sally!jsq There is an AT&T standard for command line arguments. It was published about a year ago (washington??). It is included in the Sys V interface Definition, page 343 of the Spring 85 edition. There is a routine called `getopt(3)' that parses options according to this standard. Bell published the `official' source at UniForum in Dallas; several public-domain versions (at least one with cleaner coding style!) have appeared on the net. Send me mail if you don't have a copy, because *everybody writing C programs should be using getopt() to parse their command line options*. Thanks Ian Darwin, Toronto ihnp4!darwin!ian ---------------------------------------------------------------------- -- John Quarterman, jsq@ut-sally.ARPA, {ihnp4,seismo,ctvax}!ut-sally!jsq