Article View: mod.std.unix
Article #117Re: command line arguments
From: John Quarterman
Date: Thu, 04 Jul 1985 13:37
Date: Thu, 04 Jul 1985 13:37
76 lines
3355 bytes
3355 bytes
From: John Quarterman (moderator) <ut-sally!std-unix>
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 <ihnp4!decvax!mcnc!rtp47!smithrd>
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
<the known world>!mcnc!rti-sel!rtp47!smithrd
<General disclaimer:
:r jsq's original posting about committee member's opinions
being their own and not that of the entire committee...
>
------------------------------
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
Technical Details
Message-ID:
<2255@ut-sally.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!decvax!genrad!panda!talcott!harvard!seismo!ut-sally!jsqReferences:
<2210@ut-sally.UUCP> <2226@ut-sally.UUCP>, <2244@ut-sally.UUCP>Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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