home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v1 / text0007.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  2.6 KB

  1. From: John Quarterman (moderator) <ut-sally!std-unix>
  2.  
  3. Topic: more on getopt (command line arguments)
  4.  
  5. This article will be followed by one more, containing source and man page
  6. for a public domain getopt.  That should about wrap this subject up.  -mod
  7.  
  8. ----------------------------------------------------------------------
  9.  
  10. From: Randy D. Smith <ihnp4!decvax!mcnc!rtp47!smithrd>
  11. Date: Mon, 1 Jul 85 07:58:42 edt
  12. Apparently-To: mcnc!ihnp4!ut-sally!std-unix
  13.  
  14. P1003 definitely intends to address commands and the command
  15. interface (e.g., sh).  That work has been sidetracked in order
  16. to devote our efforts to getting the current core of the draft
  17. (system call stuff) out the door.  I believe everyone on the
  18. committee fully expects that commands/command line will be a
  19. top priority after the draft goes out, is balloted, and the
  20. ballots are resolved.
  21.  
  22. There has been some consensus already on the command line interface,
  23. based on "An Enhanced Getopt" by T. C. Jones and L. A. Kennedy
  24. of AT&T Bell Labs.  As mentioned in previous messages, this should
  25. help us in the future, although history already stuck us with
  26. a variety of interfaces to existing commands.
  27. --
  28.                 Randy D. Smith    (919) 248-6136
  29.                Data General, Research Triangle Park, NC
  30.              <the known world>!mcnc!rti-sel!rtp47!smithrd
  31. <General disclaimer:
  32.     :r jsq's original posting about committee member's opinions
  33.     being their own and not that of the entire committee...
  34. >
  35.  
  36. ------------------------------
  37.  
  38. Date: Wed, 3 Jul 85 11:06:19 edt
  39. From: seismo!ulysses!smb (Steven Bellovin)
  40. To: ut-sally!std-unix
  41. Subject: Re: command line arguments
  42.  
  43. I believe I heard at Usenix that AT&T has put their version of getopt()
  44. into the public domain.  Can anyone confirm this?
  45.  
  46.         --Steve Bellovin
  47.         ulysses!smb
  48.  
  49. ------------------------------
  50.  
  51. Date: Sat, 29 Jun 85 16:55:37 edt
  52. From: ihnp4!utcs!ian (Ian F. Darwin)
  53. To: ut-sally!jsq
  54.  
  55. There is an AT&T standard for command line arguments.
  56. It was published about a year ago (washington??).
  57. It is included in the Sys V interface Definition, page 343
  58. of the Spring 85 edition.
  59.  
  60. There is a routine called `getopt(3)' that parses options
  61. according to this standard. Bell published the `official'
  62. source at UniForum in Dallas; several public-domain versions
  63. (at least one with cleaner coding style!) have appeared on
  64. the net. Send me mail if you don't have a copy, because
  65. *everybody writing C programs should be using getopt()
  66. to parse their command line options*.
  67.  
  68. Thanks
  69.  
  70. Ian Darwin, Toronto
  71. ihnp4!darwin!ian
  72.  
  73. ----------------------------------------------------------------------
  74. -- 
  75.  
  76. John Quarterman, jsq@ut-sally.ARPA, {ihnp4,seismo,ctvax}!ut-sally!jsq
  77.  
  78. Volume-Number: Volume 1, Number 08
  79.  
  80.