[3ae31e9] | 1 | Newsgroups: mod.std.unix
|
---|
| 2 | Subject: public domain AT&T getopt source
|
---|
| 3 | Date: 3 Nov 85 19:34:15 GMT
|
---|
| 4 |
|
---|
| 5 | Here's something you've all been waiting for: the AT&T public domain
|
---|
| 6 | source for getopt(3). It is the code which was given out at the 1985
|
---|
| 7 | UNIFORUM conference in Dallas. I obtained it by electronic mail
|
---|
| 8 | directly from AT&T. The people there assure me that it is indeed
|
---|
| 9 | in the public domain.
|
---|
| 10 |
|
---|
| 11 | There is no manual page. That is because the one they gave out at
|
---|
| 12 | UNIFORUM was slightly different from the current System V Release 2
|
---|
| 13 | manual page. The difference apparently involved a note about the
|
---|
| 14 | famous rules 5 and 6, recommending using white space between an option
|
---|
| 15 | and its first argument, and not grouping options that have arguments.
|
---|
| 16 | Getopt itself is currently lenient about both of these things. White
|
---|
| 17 | space is allowed, but not mandatory, and the last option in a group can
|
---|
| 18 | have an argument. That particular version of the man page evidently
|
---|
| 19 | has no official existence, and my source at AT&T did not send a copy.
|
---|
| 20 | The current SVR2 man page reflects the actual behavor of this getopt.
|
---|
| 21 | However, I am not about to post a copy of anything licensed by AT&T.
|
---|
| 22 |
|
---|
| 23 | I will submit this source to Berkeley as a bug fix.
|
---|
| 24 |
|
---|
| 25 | I, personally, make no claims or guarantees of any kind about the
|
---|
| 26 | following source. I did compile it to get some confidence that
|
---|
| 27 | it arrived whole, but beyond that you're on your own.
|
---|