home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume31 / cmdline / part01 < prev    next >
SHell self-extracting ARchive  |  1992-07-27  |  68.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 62 72 61 64 | 40 68 63 78 31 2e 73 73 |om: brad|@hcx1.ss|
|00000030| 64 2e 63 73 64 2e 68 61 | 72 72 69 73 2e 63 6f 6d |d.csd.ha|rris.com|
|00000040| 20 28 42 72 61 64 20 41 | 70 70 6c 65 74 6f 6e 29 | (Brad A|ppleton)|
|00000050| 0a 53 75 62 6a 65 63 74 | 3a 20 20 76 33 31 69 30 |.Subject|: v31i0|
|00000060| 34 38 3a 20 20 63 6d 64 | 6c 69 6e 65 20 2d 20 43 |48: cmd|line - C|
|00000070| 2b 2b 20 4c 69 62 72 61 | 72 79 20 66 6f 72 20 70 |++ Libra|ry for p|
|00000080| 61 72 73 69 6e 67 20 63 | 6f 6d 6d 61 6e 64 2d 6c |arsing c|ommand-l|
|00000090| 69 6e 65 20 61 72 67 75 | 6d 65 6e 74 73 2c 20 50 |ine argu|ments, P|
|000000a0| 61 72 74 30 31 2f 30 37 | 0a 4d 65 73 73 61 67 65 |art01/07|.Message|
|000000b0| 2d 49 44 3a 20 3c 31 39 | 39 32 4a 75 6c 32 37 2e |-ID: <19|92Jul27.|
|000000c0| 30 32 30 31 33 34 2e 32 | 38 39 36 35 40 73 70 61 |020134.2|8965@spa|
|000000d0| 72 6b 79 2e 69 6d 64 2e | 73 74 65 72 6c 69 6e 67 |rky.imd.|sterling|
|000000e0| 2e 63 6f 6d 3e 0a 58 2d | 4d 64 34 2d 53 69 67 6e |.com>.X-|Md4-Sign|
|000000f0| 61 74 75 72 65 3a 20 61 | 37 36 39 37 63 38 62 33 |ature: a|7697c8b3|
|00000100| 30 30 33 38 34 35 38 31 | 31 31 62 33 36 30 64 39 |00384581|11b360d9|
|00000110| 30 61 63 34 31 30 61 0a | 44 61 74 65 3a 20 4d 6f |0ac410a.|Date: Mo|
|00000120| 6e 2c 20 32 37 20 4a 75 | 6c 20 31 39 39 32 20 30 |n, 27 Ju|l 1992 0|
|00000130| 32 3a 30 31 3a 33 34 20 | 47 4d 54 0a 41 70 70 72 |2:01:34 |GMT.Appr|
|00000140| 6f 76 65 64 3a 20 6b 65 | 6e 74 40 73 70 61 72 6b |oved: ke|nt@spark|
|00000150| 79 2e 69 6d 64 2e 73 74 | 65 72 6c 69 6e 67 2e 63 |y.imd.st|erling.c|
|00000160| 6f 6d 0a 0a 53 75 62 6d | 69 74 74 65 64 2d 62 79 |om..Subm|itted-by|
|00000170| 3a 20 62 72 61 64 40 68 | 63 78 31 2e 73 73 64 2e |: brad@h|cx1.ssd.|
|00000180| 63 73 64 2e 68 61 72 72 | 69 73 2e 63 6f 6d 20 28 |csd.harr|is.com (|
|00000190| 42 72 61 64 20 41 70 70 | 6c 65 74 6f 6e 29 0a 50 |Brad App|leton).P|
|000001a0| 6f 73 74 69 6e 67 2d 6e | 75 6d 62 65 72 3a 20 56 |osting-n|umber: V|
|000001b0| 6f 6c 75 6d 65 20 33 31 | 2c 20 49 73 73 75 65 20 |olume 31|, Issue |
|000001c0| 34 38 0a 41 72 63 68 69 | 76 65 2d 6e 61 6d 65 3a |48.Archi|ve-name:|
|000001d0| 20 63 6d 64 6c 69 6e 65 | 2f 70 61 72 74 30 31 0a | cmdline|/part01.|
|000001e0| 45 6e 76 69 72 6f 6e 6d | 65 6e 74 3a 20 43 2b 2b |Environm|ent: C++|
|000001f0| 0a 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |..#! /bi|n/sh.# T|
|00000200| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|00000210| 72 63 68 69 76 65 2e 20 | 20 52 65 6d 6f 76 65 20 |rchive. | Remove |
|00000220| 61 6e 79 74 68 69 6e 67 | 20 62 65 66 6f 72 65 20 |anything| before |
|00000230| 74 68 69 73 20 6c 69 6e | 65 2c 20 74 68 65 6e 20 |this lin|e, then |
|00000240| 75 6e 70 61 63 6b 0a 23 | 20 69 74 20 62 79 20 73 |unpack.#| it by s|
|00000250| 61 76 69 6e 67 20 69 74 | 20 69 6e 74 6f 20 61 20 |aving it| into a |
|00000260| 66 69 6c 65 20 61 6e 64 | 20 74 79 70 69 6e 67 20 |file and| typing |
|00000270| 22 73 68 20 66 69 6c 65 | 22 2e 20 20 54 6f 20 6f |"sh file|". To o|
|00000280| 76 65 72 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |verwrite| existin|
|00000290| 67 0a 23 20 66 69 6c 65 | 73 2c 20 74 79 70 65 20 |g.# file|s, type |
|000002a0| 22 73 68 20 66 69 6c 65 | 20 2d 63 22 2e 20 20 59 |"sh file| -c". Y|
|000002b0| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 66 65 65 64 |ou can a|lso feed|
|000002c0| 20 74 68 69 73 20 61 73 | 20 73 74 61 6e 64 61 72 | this as| standar|
|000002d0| 64 20 69 6e 70 75 74 20 | 76 69 61 0a 23 20 75 6e |d input |via.# un|
|000002e0| 73 68 61 72 2c 20 6f 72 | 20 62 79 20 74 79 70 69 |shar, or| by typi|
|000002f0| 6e 67 20 22 73 68 20 3c | 66 69 6c 65 22 2c 20 65 |ng "sh <|file", e|
|00000300| 2e 67 2e 2e 20 20 49 66 | 20 74 68 69 73 20 61 72 |.g.. If| this ar|
|00000310| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|00000320| 65 2c 20 79 6f 75 0a 23 | 20 77 69 6c 6c 20 73 65 |e, you.#| will se|
|00000330| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|00000340| 6d 65 73 73 61 67 65 20 | 61 74 20 74 68 65 20 65 |message |at the e|
|00000350| 6e 64 3a 0a 23 09 09 22 | 45 6e 64 20 6f 66 20 61 |nd:.#.."|End of a|
|00000360| 72 63 68 69 76 65 20 31 | 20 28 6f 66 20 37 29 2e |rchive 1| (of 7).|
|00000370| 22 0a 23 20 43 6f 6e 74 | 65 6e 74 73 3a 20 20 4d |".# Cont|ents: M|
|00000380| 41 4e 49 46 45 53 54 20 | 4d 61 6b 65 66 69 6c 65 |ANIFEST |Makefile|
|00000390| 20 52 45 41 44 4d 45 20 | 64 6f 63 20 64 6f 63 2f | README |doc doc/|
|000003a0| 4d 61 6b 65 66 69 6c 65 | 20 64 6f 63 2f 62 75 67 |Makefile| doc/bug|
|000003b0| 73 2e 6d 61 6e 0a 23 20 | 20 20 64 6f 63 2f 63 61 |s.man.# | doc/ca|
|000003c0| 76 65 61 74 73 2e 6d 61 | 6e 20 64 6f 63 2f 65 6e |veats.ma|n doc/en|
|000003d0| 76 69 72 6f 6e 2e 6d 61 | 6e 20 64 6f 63 2f 65 78 |viron.ma|n doc/ex|
|000003e0| 61 6d 70 6c 65 2e 6d 61 | 6e 20 64 6f 63 2f 66 69 |ample.ma|n doc/fi|
|000003f0| 6c 65 73 2e 6d 61 6e 0a | 23 20 20 20 64 6f 63 2f |les.man.|# doc/|
|00000400| 6d 61 63 72 6f 73 2e 6d | 61 6e 20 73 72 63 20 73 |macros.m|an src s|
|00000410| 72 63 2f 4d 61 6b 65 66 | 69 6c 65 20 73 72 63 2f |rc/Makef|ile src/|
|00000420| 63 6d 64 20 73 72 63 2f | 63 6d 64 2f 4d 61 6b 65 |cmd src/|cmd/Make|
|00000430| 66 69 6c 65 0a 23 20 20 | 20 73 72 63 2f 63 6d 64 |file.# | src/cmd|
|00000440| 2f 63 6d 64 70 61 72 73 | 65 2e 68 20 73 72 63 2f |/cmdpars|e.h src/|
|00000450| 63 6d 64 2f 63 6d 64 70 | 61 72 73 65 2e 74 63 6c |cmd/cmdp|arse.tcl|
|00000460| 20 73 72 63 2f 63 6d 64 | 2f 66 73 6d 2e 68 0a 23 | src/cmd|/fsm.h.#|
|00000470| 20 20 20 73 72 63 2f 63 | 6d 64 2f 6d 61 69 6e 2e | src/c|md/main.|
|00000480| 63 20 73 72 63 2f 63 6d | 64 2f 71 75 6f 74 65 64 |c src/cm|d/quoted|
|00000490| 2e 68 20 73 72 63 2f 63 | 6d 64 2f 73 68 65 6c 6c |.h src/c|md/shell|
|000004a0| 5f 61 72 67 2e 63 0a 23 | 20 20 20 73 72 63 2f 63 |_arg.c.#| src/c|
|000004b0| 6d 64 2f 73 68 65 6c 6c | 5f 61 72 67 2e 68 20 73 |md/shell|_arg.h s|
|000004c0| 72 63 2f 63 6d 64 2f 73 | 79 6e 74 61 78 2e 68 20 |rc/cmd/s|yntax.h |
|000004d0| 73 72 63 2f 6c 69 62 20 | 73 72 63 2f 6c 69 62 2f |src/lib |src/lib/|
|000004e0| 4d 61 6b 65 66 69 6c 65 | 0a 23 20 20 20 73 72 63 |Makefile|.# src|
|000004f0| 2f 6c 69 62 2f 61 72 67 | 6c 69 73 74 2e 68 20 73 |/lib/arg|list.h s|
|00000500| 72 63 2f 6c 69 62 2f 65 | 78 69 74 73 2e 68 20 73 |rc/lib/e|xits.h s|
|00000510| 72 63 2f 6c 69 62 2f 66 | 69 66 6f 6c 69 73 74 2e |rc/lib/f|ifolist.|
|00000520| 63 0a 23 20 20 20 73 72 | 63 2f 6c 69 62 2f 70 61 |c.# sr|c/lib/pa|
|00000530| 74 63 68 6c 65 76 65 6c | 2e 63 20 73 72 63 2f 6c |tchlevel|.c src/l|
|00000540| 69 62 2f 73 74 61 74 65 | 73 2e 68 0a 23 20 57 72 |ib/state|s.h.# Wr|
|00000550| 61 70 70 65 64 20 62 79 | 20 62 72 61 64 40 68 63 |apped by| brad@hc|
|00000560| 78 31 20 6f 6e 20 4d 6f | 6e 20 4a 75 6c 20 32 30 |x1 on Mo|n Jul 20|
|00000570| 20 31 30 3a 34 31 3a 32 | 35 20 31 39 39 32 0a 50 | 10:41:2|5 1992.P|
|00000580| 41 54 48 3d 2f 62 69 6e | 3a 2f 75 73 72 2f 62 69 |ATH=/bin|:/usr/bi|
|00000590| 6e 3a 2f 75 73 72 2f 75 | 63 62 20 3b 20 65 78 70 |n:/usr/u|cb ; exp|
|000005a0| 6f 72 74 20 50 41 54 48 | 0a 69 66 20 74 65 73 74 |ort PATH|.if test|
|000005b0| 20 2d 66 20 27 4d 41 4e | 49 46 45 53 54 27 20 2d | -f 'MAN|IFEST' -|
|000005c0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000005d0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000005e0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000005f0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000600| 66 69 6c 65 20 5c 22 27 | 4d 41 4e 49 46 45 53 54 |file \"'|MANIFEST|
|00000610| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00000620| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00000630| 22 27 4d 41 4e 49 46 45 | 53 54 27 5c 22 20 5c 28 |"'MANIFE|ST'\" \(|
|00000640| 33 39 37 39 20 63 68 61 | 72 61 63 74 65 72 73 5c |3979 cha|racters\|
|00000650| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00000660| 27 4d 41 4e 49 46 45 53 | 54 27 20 3c 3c 27 45 4e |'MANIFES|T' <<'EN|
|00000670| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 20 20 20 46 |D_OF_FIL|E'.X F|
|00000680| 69 6c 65 20 4e 61 6d 65 | 09 09 41 72 63 68 69 76 |ile Name|..Archiv|
|00000690| 65 20 23 09 44 65 73 63 | 72 69 70 74 69 6f 6e 0a |e #.Desc|ription.|
|000006a0| 58 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X-------|--------|
|000006b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 20 43 |--------|----.X C|
|000006e0| 6f 6e 66 69 67 2e 6d 6b | 20 20 20 20 20 20 20 20 |onfig.mk| |
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 32 09 4d 61 6b 65 | | 2.Make|
|00000700| 20 66 6c 61 67 73 20 66 | 6f 72 20 74 68 65 20 70 | flags f|or the p|
|00000710| 72 6f 64 75 63 74 0a 58 | 20 4d 41 4e 49 46 45 53 |roduct.X| MANIFES|
|00000720| 54 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |T | |
|00000730| 20 20 20 20 31 09 54 68 | 69 73 20 73 68 69 70 70 | 1.Th|is shipp|
|00000740| 69 6e 67 20 6c 69 73 74 | 0a 58 20 4d 61 6b 65 66 |ing list|.X Makef|
|00000750| 69 6c 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ile | |
|00000760| 20 20 20 20 20 20 31 09 | 4d 61 6b 65 66 69 6c 65 | 1.|Makefile|
|00000770| 20 66 6f 72 20 74 68 65 | 20 70 72 6f 64 75 63 74 | for the| product|
|00000780| 0a 58 20 4f 76 65 72 76 | 69 65 77 20 20 20 20 20 |.X Overv|iew |
|00000790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 33 09 | | 3.|
|000007a0| 41 20 62 72 69 65 66 20 | 6f 76 65 72 76 69 65 77 |A brief |overview|
|000007b0| 20 6f 66 20 74 68 65 20 | 70 72 6f 64 75 63 74 0a | of the |product.|
|000007c0| 58 20 52 45 41 44 4d 45 | 20 20 20 20 20 20 20 20 |X README| |
|000007d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 52 | | 1.R|
|000007e0| 65 61 64 20 74 68 69 73 | 20 66 69 6c 65 20 66 69 |ead this| file fi|
|000007f0| 72 73 74 0a 58 20 64 6f | 63 20 20 20 20 20 20 20 |rst.X do|c |
|00000800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000810| 20 31 09 44 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e | 1.Docum|entation|
|00000820| 20 64 69 72 65 63 74 6f | 72 79 0a 58 20 64 6f 63 | directo|ry.X doc|
|00000830| 2f 4d 61 6b 65 66 69 6c | 65 20 20 20 20 20 20 20 |/Makefil|e |
|00000840| 20 20 20 20 20 20 20 20 | 31 09 4d 61 6b 65 66 69 | |1.Makefi|
|00000850| 6c 65 20 66 6f 72 20 74 | 68 65 20 64 6f 63 75 6d |le for t|he docum|
|00000860| 65 6e 74 61 74 69 6f 6e | 0a 58 20 64 6f 63 2f 62 |entation|.X doc/b|
|00000870| 75 67 73 2e 6d 61 6e 20 | 20 20 20 20 20 20 20 20 |ugs.man | |
|00000880| 20 20 20 20 20 20 31 09 | 64 6f 63 75 6d 65 6e 74 | 1.|document|
|00000890| 73 20 6b 6e 6f 77 6e 20 | 62 75 67 73 0a 58 20 64 |s known |bugs.X d|
|000008a0| 6f 63 2f 63 61 76 65 61 | 74 73 2e 6d 61 6e 20 20 |oc/cavea|ts.man |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 31 09 64 6f 63 75 | | 1.docu|
|000008c0| 6d 65 6e 74 73 20 6b 6e | 6f 77 6e 20 70 65 63 75 |ments kn|own pecu|
|000008d0| 6c 69 61 72 69 74 69 65 | 73 0a 58 20 64 6f 63 2f |liaritie|s.X doc/|
|000008e0| 63 6c 61 73 73 65 73 2e | 6d 61 6e 20 20 20 20 20 |classes.|man |
|000008f0| 20 20 20 20 20 20 20 34 | 09 64 6f 63 75 6d 65 6e | 4|.documen|
|00000900| 74 73 20 74 68 65 20 62 | 61 73 69 63 73 20 6f 66 |ts the b|asics of|
|00000910| 20 74 68 65 20 6d 6f 73 | 74 20 63 6f 6d 6d 6f 6e | the mos|t common|
|00000920| 20 63 6c 61 73 73 65 73 | 0a 58 20 64 6f 63 2f 63 | classes|.X doc/c|
|00000930| 6d 64 61 72 67 73 2e 6d | 61 6e 33 20 20 20 20 20 |mdargs.m|an3 |
|00000940| 20 20 20 20 20 20 32 09 | 64 6f 63 75 6d 65 6e 74 | 2.|document|
|00000950| 73 20 3c 63 6d 64 61 72 | 67 73 2e 68 3e 0a 58 20 |s <cmdar|gs.h>.X |
|00000960| 64 6f 63 2f 63 6d 64 6c | 69 6e 65 2e 6d 61 6e 33 |doc/cmdl|ine.man3|
|00000970| 20 20 20 20 20 20 20 20 | 20 20 20 32 09 64 6f 63 | | 2.doc|
|00000980| 75 6d 65 6e 74 73 20 3c | 63 6d 64 6c 69 6e 65 2e |uments <|cmdline.|
|00000990| 68 3e 0a 58 20 64 6f 63 | 2f 63 6d 64 70 61 72 73 |h>.X doc|/cmdpars|
|000009a0| 65 2e 6d 61 6e 31 20 20 | 20 20 20 20 20 20 20 20 |e.man1 | |
|000009b0| 35 09 64 6f 63 75 6d 65 | 6e 74 73 20 63 6d 64 70 |5.docume|nts cmdp|
|000009c0| 61 72 73 65 28 31 29 0a | 58 20 64 6f 63 2f 65 6e |arse(1).|X doc/en|
|000009d0| 76 69 72 6f 6e 2e 6d 61 | 6e 20 20 20 20 20 20 20 |viron.ma|n |
|000009e0| 20 20 20 20 20 31 09 64 | 6f 63 75 6d 65 6e 74 73 | 1.d|ocuments|
|000009f0| 20 74 68 65 20 75 73 65 | 20 6f 66 20 65 6e 76 69 | the use| of envi|
|00000a00| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|00000a10| 73 0a 58 20 64 6f 63 2f | 65 78 61 6d 70 6c 65 2e |s.X doc/|example.|
|00000a20| 6d 61 6e 20 20 20 20 20 | 20 20 20 20 20 20 20 31 |man | 1|
|00000a30| 09 64 6f 63 75 6d 65 6e | 74 73 20 65 78 61 6d 70 |.documen|ts examp|
|00000a40| 6c 65 20 75 73 65 20 6f | 66 20 43 6d 64 4c 69 6e |le use o|f CmdLin|
|00000a50| 65 28 33 43 2b 2b 29 0a | 58 20 64 6f 63 2f 66 69 |e(3C++).|X doc/fi|
|00000a60| 6c 65 73 2e 6d 61 6e 20 | 20 20 20 20 20 20 20 20 |les.man | |
|00000a70| 20 20 20 20 20 31 09 64 | 6f 63 75 6d 65 6e 74 73 | 1.d|ocuments|
|00000a80| 20 66 69 6c 65 73 20 75 | 73 65 64 20 62 79 20 43 | files u|sed by C|
|00000a90| 6d 64 4c 69 6e 65 28 33 | 43 2b 2b 29 0a 58 20 64 |mdLine(3|C++).X d|
|00000aa0| 6f 63 2f 6d 61 63 72 6f | 73 2e 6d 61 6e 20 20 20 |oc/macro|s.man |
|00000ab0| 20 20 20 20 20 20 20 20 | 20 20 31 09 73 6f 6d 65 | | 1.some|
|00000ac0| 20 63 6f 6d 6d 6f 6e 20 | 28 6e 7c 74 29 72 6f 66 | common |(n|t)rof|
|00000ad0| 66 20 6d 61 63 72 6f 73 | 0a 58 20 64 6f 63 2f 70 |f macros|.X doc/p|
|00000ae0| 61 72 73 69 6e 67 2e 6d | 61 6e 20 20 20 20 20 20 |arsing.m|an |
|00000af0| 20 20 20 20 20 20 32 09 | 64 6f 63 75 6d 65 6e 74 | 2.|document|
|00000b00| 73 20 70 61 72 73 69 6e | 67 20 62 65 68 61 76 69 |s parsin|g behavi|
|00000b10| 6f 72 0a 58 20 73 72 63 | 20 20 20 20 20 20 20 20 |or.X src| |
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b30| 31 09 53 6f 75 72 63 65 | 20 63 6f 64 65 20 64 69 |1.Source| code di|
|00000b40| 72 65 63 74 6f 72 79 0a | 58 20 73 72 63 2f 4d 61 |rectory.|X src/Ma|
|00000b50| 6b 65 66 69 6c 65 20 20 | 20 20 20 20 20 20 20 20 |kefile | |
|00000b60| 20 20 20 20 20 31 09 4d | 61 6b 65 66 69 6c 65 20 | 1.M|akefile |
|00000b70| 66 6f 72 20 74 68 65 20 | 73 6f 75 72 63 65 20 64 |for the |source d|
|00000b80| 69 72 65 63 74 6f 72 69 | 65 73 0a 58 20 73 72 63 |irectori|es.X src|
|00000b90| 2f 63 6d 64 20 20 20 20 | 20 20 20 20 20 20 20 20 |/cmd | |
|00000ba0| 20 20 20 20 20 20 20 20 | 31 09 63 6d 64 70 61 72 | |1.cmdpar|
|00000bb0| 73 65 20 70 72 6f 67 72 | 61 6d 20 73 75 62 64 69 |se progr|am subdi|
|00000bc0| 72 65 63 74 6f 72 79 0a | 58 20 73 72 63 2f 63 6d |rectory.|X src/cm|
|00000bd0| 64 2f 4d 61 6b 65 66 69 | 6c 65 20 20 20 20 20 20 |d/Makefi|le |
|00000be0| 20 20 20 20 20 31 09 4d | 61 6b 65 66 69 6c 65 20 | 1.M|akefile |
|00000bf0| 66 6f 72 20 74 68 65 20 | 70 72 6f 67 72 61 6d 0a |for the |program.|
|00000c00| 58 20 73 72 63 2f 63 6d | 64 2f 61 72 67 74 79 70 |X src/cm|d/argtyp|
|00000c10| 65 73 2e 63 20 20 20 20 | 20 20 20 20 20 32 09 69 |es.c | 2.i|
|00000c20| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00000c30| 20 73 68 65 6c 6c 2d 73 | 63 72 69 70 74 20 61 72 | shell-s|cript ar|
|00000c40| 67 75 6d 65 6e 74 73 0a | 58 20 73 72 63 2f 63 6d |guments.|X src/cm|
|00000c50| 64 2f 61 72 67 74 79 70 | 65 73 2e 68 20 20 20 20 |d/argtyp|es.h |
|00000c60| 20 20 20 20 20 32 09 64 | 65 66 69 6e 69 74 69 6f | 2.d|efinitio|
|00000c70| 6e 20 6f 66 20 73 68 65 | 6c 6c 2d 73 63 72 69 70 |n of she|ll-scrip|
|00000c80| 74 20 61 72 67 75 6d 65 | 6e 74 73 0a 58 20 73 72 |t argume|nts.X sr|
|00000c90| 63 2f 63 6d 64 2f 63 6d | 64 70 61 72 73 65 2e 63 |c/cmd/cm|dparse.c|
|00000ca0| 20 20 20 20 20 20 20 20 | 20 36 09 74 68 65 20 67 | | 6.the g|
|00000cb0| 75 74 73 20 6f 66 20 74 | 68 65 20 63 6d 64 70 61 |uts of t|he cmdpa|
|00000cc0| 72 73 65 20 70 72 6f 67 | 72 61 6d 0a 58 20 73 72 |rse prog|ram.X sr|
|00000cd0| 63 2f 63 6d 64 2f 63 6d | 64 70 61 72 73 65 2e 68 |c/cmd/cm|dparse.h|
|00000ce0| 20 20 20 20 20 20 20 20 | 20 31 09 74 68 65 20 73 | | 1.the s|
|00000cf0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 6f 66 20 |pecifica|tion of |
|00000d00| 74 68 65 20 63 6d 64 70 | 61 72 73 65 20 70 72 6f |the cmdp|arse pro|
|00000d10| 67 72 61 6d 0a 58 20 73 | 72 63 2f 63 6d 64 2f 63 |gram.X s|rc/cmd/c|
|00000d20| 6d 64 70 61 72 73 65 2e | 70 6c 20 20 20 20 20 20 |mdparse.|pl |
|00000d30| 20 20 32 09 63 6d 64 70 | 61 72 73 65 20 66 6f 72 | 2.cmdp|arse for|
|00000d40| 20 50 65 72 6c 20 70 72 | 6f 67 72 61 6d 6d 65 72 | Perl pr|ogrammer|
|00000d50| 73 0a 58 20 73 72 63 2f | 63 6d 64 2f 63 6d 64 70 |s.X src/|cmd/cmdp|
|00000d60| 61 72 73 65 2e 74 63 6c | 20 20 20 20 20 20 20 31 |arse.tcl| 1|
|00000d70| 09 63 6d 64 70 61 72 73 | 65 20 66 6f 72 20 54 63 |.cmdpars|e for Tc|
|00000d80| 6c 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 0a 58 20 |l progra|mmers.X |
|00000d90| 73 72 63 2f 63 6d 64 2f | 66 73 6d 2e 63 20 20 20 |src/cmd/|fsm.c |
|00000da0| 20 20 20 20 20 20 20 20 | 20 20 20 32 09 66 69 6e | | 2.fin|
|00000db0| 69 74 65 2d 73 74 61 74 | 65 2d 6d 61 63 68 69 6e |ite-stat|e-machin|
|00000dc0| 65 20 66 6f 72 20 70 61 | 72 73 69 6e 67 20 61 72 |e for pa|rsing ar|
|00000dd0| 67 2d 73 79 6e 74 61 78 | 0a 58 20 73 72 63 2f 63 |g-syntax|.X src/c|
|00000de0| 6d 64 2f 66 73 6d 2e 68 | 20 20 20 20 20 20 20 20 |md/fsm.h| |
|00000df0| 20 20 20 20 20 20 31 09 | 66 69 6e 69 74 65 2d 73 | 1.|finite-s|
|00000e00| 74 61 74 65 2d 6d 61 63 | 68 69 6e 65 20 73 70 65 |tate-mac|hine spe|
|00000e10| 63 69 66 69 63 61 74 69 | 6f 6e 0a 58 20 73 72 63 |cificati|on.X src|
|00000e20| 2f 63 6d 64 2f 6d 61 69 | 6e 2e 63 20 20 20 20 20 |/cmd/mai|n.c |
|00000e30| 20 20 20 20 20 20 20 20 | 31 09 6d 61 69 6e 20 70 | |1.main p|
|00000e40| 72 6f 67 72 61 6d 20 66 | 6f 72 20 63 6d 64 70 61 |rogram f|or cmdpa|
|00000e50| 72 73 65 28 31 29 0a 58 | 20 73 72 63 2f 63 6d 64 |rse(1).X| src/cmd|
|00000e60| 2f 71 75 6f 74 65 64 2e | 63 20 20 20 20 20 20 20 |/quoted.|c |
|00000e70| 20 20 20 20 32 09 69 6d | 70 6c 65 6d 65 6e 74 61 | 2.im|plementa|
|00000e80| 74 69 6f 6e 20 6f 66 20 | 71 75 6f 74 65 64 2d 73 |tion of |quoted-s|
|00000e90| 74 72 69 6e 67 73 0a 58 | 20 73 72 63 2f 63 6d 64 |trings.X| src/cmd|
|00000ea0| 2f 71 75 6f 74 65 64 2e | 68 20 20 20 20 20 20 20 |/quoted.|h |
|00000eb0| 20 20 20 20 31 09 64 65 | 66 69 6e 69 74 69 6f 6e | 1.de|finition|
|00000ec0| 20 6f 66 20 61 20 71 75 | 6f 74 65 64 2d 73 74 72 | of a qu|oted-str|
|00000ed0| 69 6e 67 20 63 6c 61 73 | 73 0a 58 20 73 72 63 2f |ing clas|s.X src/|
|00000ee0| 63 6d 64 2f 73 68 65 6c | 6c 5f 61 72 67 2e 63 20 |cmd/shel|l_arg.c |
|00000ef0| 20 20 20 20 20 20 20 31 | 09 69 6d 70 6c 65 6d 65 | 1|.impleme|
|00000f00| 6e 74 61 74 69 6f 6e 20 | 6f 66 20 61 6e 20 61 62 |ntation |of an ab|
|00000f10| 73 74 72 61 63 74 20 73 | 68 65 6c 6c 2d 73 63 72 |stract s|hell-scr|
|00000f20| 69 70 74 20 61 72 67 0a | 58 20 73 72 63 2f 63 6d |ipt arg.|X src/cm|
|00000f30| 64 2f 73 68 65 6c 6c 5f | 61 72 67 2e 68 20 20 20 |d/shell_|arg.h |
|00000f40| 20 20 20 20 20 31 09 64 | 65 66 69 6e 69 74 69 6f | 1.d|efinitio|
|00000f50| 6e 20 6f 66 20 61 6e 20 | 61 62 73 74 72 61 63 74 |n of an |abstract|
|00000f60| 20 73 68 65 6c 6c 2d 73 | 63 72 69 70 74 20 61 72 | shell-s|cript ar|
|00000f70| 67 75 6d 65 6e 74 0a 58 | 20 73 72 63 2f 63 6d 64 |gument.X| src/cmd|
|00000f80| 2f 73 68 65 6c 6c 73 2e | 63 20 20 20 20 20 20 20 |/shells.|c |
|00000f90| 20 20 20 20 34 09 69 6d | 70 6c 65 6d 65 6e 74 61 | 4.im|plementa|
|00000fa0| 74 69 6f 6e 20 6f 66 20 | 63 6f 6d 6d 61 6e 64 2d |tion of |command-|
|00000fb0| 69 6e 74 65 72 70 72 65 | 74 65 72 73 0a 58 20 73 |interpre|ters.X s|
|00000fc0| 72 63 2f 63 6d 64 2f 73 | 68 65 6c 6c 73 2e 68 20 |rc/cmd/s|hells.h |
|00000fd0| 20 20 20 20 20 20 20 20 | 20 20 34 09 64 65 66 69 | | 4.defi|
|00000fe0| 6e 69 74 69 6f 6e 73 20 | 6f 66 20 76 61 72 69 6f |nitions |of vario|
|00000ff0| 75 73 20 63 6f 6d 6d 61 | 6e 64 2d 69 6e 74 65 72 |us comma|nd-inter|
|00001000| 70 72 65 74 65 72 73 0a | 58 20 73 72 63 2f 63 6d |preters.|X src/cm|
|00001010| 64 2f 73 79 6e 74 61 78 | 2e 63 20 20 20 20 20 20 |d/syntax|.c |
|00001020| 20 20 20 20 20 34 09 69 | 6d 70 6c 65 6d 65 6e 74 | 4.i|mplement|
|00001030| 61 74 69 6f 6e 20 6f 66 | 20 61 6e 20 61 72 67 75 |ation of| an argu|
|00001040| 6d 65 6e 74 2d 73 79 6e | 74 61 78 20 6f 62 6a 65 |ment-syn|tax obje|
|00001050| 63 74 0a 58 20 73 72 63 | 2f 63 6d 64 2f 73 79 6e |ct.X src|/cmd/syn|
|00001060| 74 61 78 2e 68 20 20 20 | 20 20 20 20 20 20 20 20 |tax.h | |
|00001070| 31 09 64 65 66 69 6e 69 | 74 69 6f 6e 20 6f 66 20 |1.defini|tion of |
|00001080| 61 6e 20 61 72 67 75 6d | 65 6e 74 2d 73 79 6e 74 |an argum|ent-synt|
|00001090| 61 78 20 6f 62 6a 65 63 | 74 0a 58 20 73 72 63 2f |ax objec|t.X src/|
|000010a0| 6c 69 62 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |lib | |
|000010b0| 20 20 20 20 20 20 20 31 | 09 43 6d 64 4c 69 6e 65 | 1|.CmdLine|
|000010c0| 20 6c 69 62 72 61 72 79 | 20 64 69 72 65 63 74 6f | library| directo|
|000010d0| 72 79 0a 58 20 73 72 63 | 2f 6c 69 62 2f 4d 61 6b |ry.X src|/lib/Mak|
|000010e0| 65 66 69 6c 65 20 20 20 | 20 20 20 20 20 20 20 20 |efile | |
|000010f0| 31 09 4d 61 6b 65 66 69 | 6c 65 20 66 6f 72 20 74 |1.Makefi|le for t|
|00001100| 68 65 20 6c 69 62 72 61 | 72 79 0a 58 20 73 72 63 |he libra|ry.X src|
|00001110| 2f 6c 69 62 2f 61 72 67 | 69 74 65 72 2e 63 20 20 |/lib/arg|iter.c |
|00001120| 20 20 20 20 20 20 20 20 | 32 09 63 6f 6d 6d 61 6e | |2.comman|
|00001130| 64 20 6c 69 6e 65 20 61 | 72 67 75 6d 65 6e 74 20 |d line a|rgument |
|00001140| 69 74 65 72 61 74 6f 72 | 20 69 6d 70 6c 65 6d 65 |iterator| impleme|
|00001150| 6e 74 61 74 69 6f 6e 0a | 58 20 73 72 63 2f 6c 69 |ntation.|X src/li|
|00001160| 62 2f 61 72 67 6c 69 73 | 74 2e 68 20 20 20 20 20 |b/arglis|t.h |
|00001170| 20 20 20 20 20 31 09 63 | 6f 6d 6d 61 6e 64 20 61 | 1.c|ommand a|
|00001180| 72 67 75 6d 65 6e 74 20 | 6c 69 73 74 20 74 79 70 |rgument |list typ|
|00001190| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 0a 58 20 |e defini|tions.X |
|000011a0| 73 72 63 2f 6c 69 62 2f | 63 6d 64 61 72 67 2e 63 |src/lib/|cmdarg.c|
|000011b0| 20 20 20 20 20 20 20 20 | 20 20 20 33 09 69 6d 70 | | 3.imp|
|000011c0| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 6f 66 20 62 |lementat|ion of b|
|000011d0| 61 73 65 20 63 6c 61 73 | 73 20 43 6d 64 41 72 67 |ase clas|s CmdArg|
|000011e0| 0a 58 20 73 72 63 2f 6c | 69 62 2f 63 6d 64 61 72 |.X src/l|ib/cmdar|
|000011f0| 67 73 2e 63 20 20 20 20 | 20 20 20 20 20 20 35 09 |gs.c | 5.|
|00001200| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o|
|00001210| 66 20 74 68 65 20 76 61 | 72 69 6f 75 73 20 61 72 |f the va|rious ar|
|00001220| 67 75 6d 65 6e 74 20 74 | 79 70 65 73 0a 58 20 73 |gument t|ypes.X s|
|00001230| 72 63 2f 6c 69 62 2f 63 | 6d 64 61 72 67 73 2e 68 |rc/lib/c|mdargs.h|
|00001240| 20 20 20 20 20 20 20 20 | 20 20 37 09 69 6e 63 6c | | 7.incl|
|00001250| 75 64 65 20 66 69 6c 65 | 20 66 6f 72 20 74 68 65 |ude file| for the|
|00001260| 20 76 61 72 69 6f 75 73 | 20 61 72 67 75 6d 65 6e | various| argumen|
|00001270| 74 20 74 79 70 65 73 0a | 58 20 73 72 63 2f 6c 69 |t types.|X src/li|
|00001280| 62 2f 63 6d 64 6c 69 6e | 65 2e 63 20 20 20 20 20 |b/cmdlin|e.c |
|00001290| 20 20 20 20 20 33 09 63 | 6f 6e 73 74 72 75 63 74 | 3.c|onstruct|
|000012a0| 6f 72 73 2f 64 65 73 74 | 72 75 63 74 6f 72 73 20 |ors/dest|ructors |
|000012b0| 66 6f 72 20 43 6d 64 4c | 69 6e 65 20 6f 62 6a 65 |for CmdL|ine obje|
|000012c0| 63 74 73 0a 58 20 73 72 | 63 2f 6c 69 62 2f 63 6d |cts.X sr|c/lib/cm|
|000012d0| 64 6c 69 6e 65 2e 68 20 | 20 20 20 20 20 20 20 20 |dline.h | |
|000012e0| 20 37 09 69 6e 63 6c 75 | 64 65 20 66 69 6c 65 20 | 7.inclu|de file |
|000012f0| 66 6f 72 20 74 68 65 20 | 6c 69 62 72 61 72 79 0a |for the |library.|
|00001300| 58 20 73 72 63 2f 6c 69 | 62 2f 63 6d 64 74 65 73 |X src/li|b/cmdtes|
|00001310| 74 2e 63 20 20 20 20 20 | 20 20 20 20 20 33 09 74 |t.c | 3.t|
|00001320| 65 73 74 20 70 72 6f 67 | 72 61 6d 20 66 6f 72 20 |est prog|ram for |
|00001330| 74 68 65 20 6c 69 62 72 | 61 72 79 0a 58 20 73 72 |the libr|ary.X sr|
|00001340| 63 2f 6c 69 62 2f 64 75 | 6d 70 2e 63 20 20 20 20 |c/lib/du|mp.c |
|00001350| 20 20 20 20 20 20 20 20 | 20 33 09 64 75 6d 70 69 | | 3.dumpi|
|00001360| 6e 67 2f 64 65 62 75 67 | 67 69 6e 67 20 6d 65 6d |ng/debug|ging mem|
|00001370| 62 65 72 20 66 75 6e 63 | 74 69 6f 6e 73 0a 58 20 |ber func|tions.X |
|00001380| 73 72 63 2f 6c 69 62 2f | 65 78 69 74 73 2e 68 20 |src/lib/|exits.h |
|00001390| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 64 65 66 | | 1.def|
|000013a0| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 65 78 69 74 20 |inition |of exit |
|000013b0| 63 6f 64 65 73 20 75 73 | 65 64 20 66 6f 72 20 65 |codes us|ed for e|
|000013c0| 78 69 74 28 33 43 29 0a | 58 20 73 72 63 2f 6c 69 |xit(3C).|X src/li|
|000013d0| 62 2f 66 69 66 6f 6c 69 | 73 74 2e 63 20 20 20 20 |b/fifoli|st.c |
|000013e0| 20 20 20 20 20 31 09 69 | 6d 70 6c 65 6d 65 6e 74 | 1.i|mplement|
|000013f0| 61 74 69 6f 6e 20 6f 66 | 20 61 20 67 65 6e 65 72 |ation of| a gener|
|00001400| 69 63 20 46 49 46 4f 20 | 6c 69 6e 6b 65 64 20 6c |ic FIFO |linked l|
|00001410| 69 73 74 0a 58 20 73 72 | 63 2f 6c 69 62 2f 66 69 |ist.X sr|c/lib/fi|
|00001420| 66 6f 6c 69 73 74 2e 68 | 20 20 20 20 20 20 20 20 |folist.h| |
|00001430| 20 32 09 64 65 66 69 6e | 69 74 69 6f 6e 20 6f 66 | 2.defin|ition of|
|00001440| 20 61 20 67 65 6e 65 72 | 69 63 20 46 49 46 4f 20 | a gener|ic FIFO |
|00001450| 6c 69 6e 6b 65 64 20 6c | 69 73 74 0a 58 20 73 72 |linked l|ist.X sr|
|00001460| 63 2f 6c 69 62 2f 70 61 | 72 73 65 2e 63 20 20 20 |c/lib/pa|rse.c |
|00001470| 20 20 20 20 20 20 20 20 | 20 32 09 70 75 62 6c 69 | | 2.publi|
|00001480| 63 20 70 61 72 73 69 6e | 67 20 66 75 6e 63 74 69 |c parsin|g functi|
|00001490| 6f 6e 73 20 66 6f 72 20 | 43 6d 64 4c 69 6e 65 0a |ons for |CmdLine.|
|000014a0| 58 20 73 72 63 2f 6c 69 | 62 2f 70 61 74 63 68 6c |X src/li|b/patchl|
|000014b0| 65 76 65 6c 2e 63 20 20 | 20 20 20 20 20 31 09 66 |evel.c | 1.f|
|000014c0| 75 6e 63 74 69 6f 6e 73 | 20 74 6f 20 72 65 74 75 |unctions| to retu|
|000014d0| 72 6e 20 76 65 72 73 69 | 6f 6e 20 69 6e 66 6f 72 |rn versi|on infor|
|000014e0| 6d 61 74 69 6f 6e 0a 58 | 20 73 72 63 2f 6c 69 62 |mation.X| src/lib|
|000014f0| 2f 70 72 69 76 61 74 65 | 2e 63 20 20 20 20 20 20 |/private|.c |
|00001500| 20 20 20 20 35 09 70 72 | 69 76 61 74 65 2f 70 72 | 5.pr|ivate/pr|
|00001510| 6f 74 65 63 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |otected |function|
|00001520| 73 20 66 6f 72 20 61 20 | 43 6d 64 4c 69 6e 65 0a |s for a |CmdLine.|
|00001530| 58 20 73 72 63 2f 6c 69 | 62 2f 73 74 61 74 65 73 |X src/li|b/states|
|00001540| 2e 68 20 20 20 20 20 20 | 20 20 20 20 20 31 09 73 |.h | 1.s|
|00001550| 74 61 74 65 20 65 6e 75 | 6d 65 72 61 74 69 6f 6e |tate enu|meration|
|00001560| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 0a 58 20 73 | definit|ions.X s|
|00001570| 72 63 2f 6c 69 62 2f 73 | 74 72 69 6e 64 65 6e 74 |rc/lib/s|trindent|
|00001580| 2e 63 20 20 20 20 20 20 | 20 20 33 09 66 75 6e 63 |.c | 3.func|
|00001590| 74 69 6f 6e 20 74 6f 20 | 70 72 69 6e 74 20 61 20 |tion to |print a |
|000015a0| 68 61 6e 67 69 6e 67 20 | 69 6e 64 65 6e 74 65 64 |hanging |indented|
|000015b0| 20 70 61 72 61 67 72 61 | 70 68 0a 58 20 73 72 63 | paragra|ph.X src|
|000015c0| 2f 6c 69 62 2f 75 6e 69 | 78 2e 63 20 20 20 20 20 |/lib/uni|x.c |
|000015d0| 20 20 20 20 20 20 20 20 | 36 09 55 6e 69 78 20 73 | |6.Unix s|
|000015e0| 70 65 63 69 66 69 63 20 | 70 61 72 74 73 20 6f 66 |pecific |parts of|
|000015f0| 20 61 20 43 6d 64 4c 69 | 6e 65 0a 58 20 73 72 63 | a CmdLi|ne.X src|
|00001600| 2f 6c 69 62 2f 75 73 61 | 67 65 2e 63 20 20 20 20 |/lib/usa|ge.c |
|00001610| 20 20 20 20 20 20 20 20 | 33 09 75 73 61 67 65 2d | |3.usage-|
|00001620| 6d 65 73 73 61 67 65 20 | 73 70 65 63 69 66 69 63 |message |specific|
|00001630| 20 70 61 72 74 73 20 6f | 66 20 61 20 43 6d 64 4c | parts o|f a CmdL|
|00001640| 69 6e 65 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |ine.END_|OF_FILE.|
|00001650| 69 66 20 74 65 73 74 20 | 33 39 37 39 20 2d 6e 65 |if test |3979 -ne|
|00001660| 20 60 77 63 20 2d 63 20 | 3c 27 4d 41 4e 49 46 45 | `wc -c |<'MANIFE|
|00001670| 53 54 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |ST'`; th|en. e|
|00001680| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 4d 41 4e |cho shar|: \"'MAN|
|00001690| 49 46 45 53 54 27 5c 22 | 20 75 6e 70 61 63 6b 65 |IFEST'\"| unpacke|
|000016a0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|000016b0| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|000016c0| 4d 41 4e 49 46 45 53 54 | 27 0a 66 69 0a 69 66 20 |MANIFEST|'.fi.if |
|000016d0| 74 65 73 74 20 2d 66 20 | 27 4d 61 6b 65 66 69 6c |test -f |'Makefil|
|000016e0| 65 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |e' -a "$|{1}" != |
|000016f0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00001700| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00001710| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00001720| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 4d 61 6b 65 |ing file| \"'Make|
|00001730| 66 69 6c 65 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |file'\".|else.ech|
|00001740| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00001750| 6e 67 20 5c 22 27 4d 61 | 6b 65 66 69 6c 65 27 5c |ng \"'Ma|kefile'\|
|00001760| 22 20 5c 28 31 32 39 30 | 20 63 68 61 72 61 63 74 |" \(1290| charact|
|00001770| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00001780| 2f 22 20 3e 27 4d 61 6b | 65 66 69 6c 65 27 20 3c |/" >'Mak|efile' <|
|00001790| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|000017a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000017b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000017c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000017d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000017e0| 23 23 23 23 23 23 23 23 | 23 23 0a 58 23 23 20 5e |########|##.X## ^|
|000017f0| 46 49 4c 45 3a 20 4d 61 | 6b 65 66 69 6c 65 20 2d |FILE: Ma|kefile -|
|00001800| 20 6d 61 6b 65 20 66 69 | 6c 65 20 66 6f 72 20 74 | make fi|le for t|
|00001810| 68 65 20 43 6d 64 4c 69 | 6e 65 20 70 72 6f 64 75 |he CmdLi|ne produ|
|00001820| 63 74 0a 58 23 23 0a 58 | 23 23 20 5e 44 45 53 43 |ct.X##.X|## ^DESC|
|00001830| 52 49 50 54 49 4f 4e 3a | 0a 58 23 23 20 20 20 20 |RIPTION:|.X## |
|00001840| 54 68 69 73 20 69 73 20 | 74 68 65 20 6d 61 6b 65 |This is |the make|
|00001850| 66 69 6c 65 20 74 68 61 | 74 20 69 73 20 75 73 65 |file tha|t is use|
|00001860| 64 20 74 6f 20 62 75 69 | 6c 64 20 61 6e 64 20 69 |d to bui|ld and i|
|00001870| 6e 73 74 61 6c 6c 20 74 | 68 65 20 43 6d 64 4c 69 |nstall t|he CmdLi|
|00001880| 6e 65 0a 58 23 23 20 20 | 20 20 70 72 6f 64 75 63 |ne.X## | produc|
|00001890| 74 2e 0a 58 23 23 0a 58 | 23 23 20 5e 48 49 53 54 |t..X##.X|## ^HIST|
|000018a0| 4f 52 59 3a 0a 58 23 23 | 20 20 20 20 30 34 2f 32 |ORY:.X##| 04/2|
|000018b0| 38 2f 39 32 09 42 72 61 | 64 20 41 70 70 6c 65 74 |8/92.Bra|d Applet|
|000018c0| 6f 6e 09 3c 62 72 61 64 | 40 73 73 64 2e 63 73 64 |on.<brad|@ssd.csd|
|000018d0| 2e 68 61 72 72 69 73 2e | 63 6f 6d 3e 09 43 72 65 |.harris.|com>.Cre|
|000018e0| 61 74 65 64 0a 58 23 23 | 23 5e 5e 23 23 23 23 23 |ated.X##|#^^#####|
|000018f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001900| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001910| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001920| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001930| 0a 58 0a 58 69 6e 63 6c | 75 64 65 20 43 6f 6e 66 |.X.Xincl|ude Conf|
|00001940| 69 67 2e 6d 6b 0a 58 0a | 58 53 55 42 44 49 52 53 |ig.mk.X.|XSUBDIRS|
|00001950| 20 3d 20 73 72 63 20 64 | 6f 63 0a 58 53 52 43 44 | = src d|oc.XSRCD|
|00001960| 49 52 53 20 3d 20 73 72 | 63 0a 58 44 4f 43 44 49 |IRS = sr|c.XDOCDI|
|00001970| 52 53 20 3d 20 64 6f 63 | 0a 58 0a 58 23 23 23 0a |RS = doc|.X.X###.|
|00001980| 58 23 20 74 61 72 67 65 | 74 20 64 65 70 65 6e 64 |X# targe|t depend|
|00001990| 65 6e 63 69 65 73 0a 58 | 23 23 23 0a 58 68 65 6c |encies.X|###.Xhel|
|000019a0| 70 3a 0a 58 09 40 24 28 | 45 43 48 4f 29 20 22 55 |p:.X.@$(|ECHO) "U|
|000019b0| 73 61 67 65 3a 20 6d 61 | 6b 65 20 3c 74 61 72 67 |sage: ma|ke <targ|
|000019c0| 65 74 3e 22 0a 58 09 40 | 24 28 45 43 48 4f 29 20 |et>".X.@|$(ECHO) |
|000019d0| 22 22 0a 58 09 40 24 28 | 45 43 48 4f 29 20 22 77 |"".X.@$(|ECHO) "w|
|000019e0| 68 65 72 65 20 3c 74 61 | 72 67 65 74 3e 20 69 73 |here <ta|rget> is|
|000019f0| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c | one of |the foll|
|00001a00| 6f 77 69 6e 67 3a 22 0a | 58 09 40 24 28 45 43 48 |owing:".|X.@$(ECH|
|00001a10| 4f 29 20 22 22 0a 58 09 | 40 24 28 45 43 48 4f 29 |O) "".X.|@$(ECHO)|
|00001a20| 20 22 20 20 20 20 61 6c | 6c 20 20 20 20 20 20 20 | " al|l |
|00001a30| 20 2d 2d 20 62 75 69 6c | 64 20 28 62 75 74 20 64 | -- buil|d (but d|
|00001a40| 6f 20 6e 6f 74 20 69 6e | 73 74 61 6c 6c 29 20 74 |o not in|stall) t|
|00001a50| 68 65 20 70 72 6f 64 75 | 63 74 22 0a 58 09 40 24 |he produ|ct".X.@$|
|00001a60| 28 45 43 48 4f 29 20 22 | 20 20 20 20 69 6e 73 74 |(ECHO) "| inst|
|00001a70| 61 6c 6c 20 20 20 20 2d | 2d 20 69 6e 73 74 61 6c |all -|- instal|
|00001a80| 6c 20 74 68 65 20 70 72 | 6f 64 75 63 74 22 0a 58 |l the pr|oduct".X|
|00001a90| 09 40 24 28 45 43 48 4f | 29 20 22 20 20 20 20 6c |.@$(ECHO|) " l|
|00001aa0| 69 62 72 61 72 79 20 20 | 20 20 2d 2d 20 62 75 69 |ibrary | -- bui|
|00001ab0| 6c 64 20 74 68 65 20 63 | 6d 64 6c 69 6e 65 20 6c |ld the c|mdline l|
|00001ac0| 69 62 72 61 72 79 22 0a | 58 09 40 24 28 45 43 48 |ibrary".|X.@$(ECH|
|00001ad0| 4f 29 20 22 20 20 20 20 | 70 72 6f 67 72 61 6d 20 |O) " |program |
|00001ae0| 20 20 20 2d 2d 20 62 75 | 69 6c 64 20 74 68 65 20 | -- bu|ild the |
|00001af0| 63 6d 64 70 61 72 73 65 | 20 70 72 6f 67 72 61 6d |cmdparse| program|
|00001b00| 22 0a 58 09 40 24 28 45 | 43 48 4f 29 20 22 20 20 |".X.@$(E|CHO) " |
|00001b10| 20 20 64 6f 63 73 20 20 | 20 20 20 20 20 2d 2d 20 | docs | -- |
|00001b20| 62 75 69 6c 64 20 74 68 | 65 20 64 6f 63 75 6d 65 |build th|e docume|
|00001b30| 6e 74 61 74 69 6f 6e 22 | 0a 58 09 40 24 28 45 43 |ntation"|.X.@$(EC|
|00001b40| 48 4f 29 20 22 20 20 20 | 20 63 6c 65 61 6e 20 20 |HO) " | clean |
|00001b50| 20 20 20 20 2d 2d 20 72 | 65 6d 6f 76 65 20 61 6c | -- r|emove al|
|00001b60| 6c 20 69 6e 74 65 72 6d | 65 64 69 61 74 65 20 66 |l interm|ediate f|
|00001b70| 69 6c 65 73 22 0a 58 09 | 40 24 28 45 43 48 4f 29 |iles".X.|@$(ECHO)|
|00001b80| 20 22 20 20 20 20 63 6c | 6f 62 62 65 72 20 20 20 | " cl|obber |
|00001b90| 20 2d 2d 20 72 65 6d 6f | 76 65 20 61 6c 6c 20 67 | -- remo|ve all g|
|00001ba0| 65 6e 65 72 61 74 65 64 | 20 66 69 6c 65 73 22 0a |enerated| files".|
|00001bb0| 58 09 40 24 28 45 43 48 | 4f 29 20 22 22 0a 58 0a |X.@$(ECH|O) "".X.|
|00001bc0| 58 61 6c 6c 20 69 6e 73 | 74 61 6c 6c 20 63 6c 65 |Xall ins|tall cle|
|00001bd0| 61 6e 20 63 6c 6f 62 62 | 65 72 3a 0a 58 09 66 6f |an clobb|er:.X.fo|
|00001be0| 72 20 69 20 69 6e 20 24 | 28 53 55 42 44 49 52 53 |r i in $|(SUBDIRS|
|00001bf0| 29 20 3b 20 64 6f 20 5c | 0a 58 09 09 28 20 24 28 |) ; do \|.X..( $(|
|00001c00| 43 48 44 49 52 29 20 24 | 24 69 20 3b 20 24 28 42 |CHDIR) $|$i ; $(B|
|00001c10| 55 49 4c 44 29 20 24 40 | 20 29 20 3b 20 5c 0a 58 |UILD) $@| ) ; \.X|
|00001c20| 09 64 6f 6e 65 0a 58 0a | 58 6c 69 62 72 61 72 79 |.done.X.|Xlibrary|
|00001c30| 20 70 72 6f 67 72 61 6d | 3a 0a 58 09 66 6f 72 20 | program|:.X.for |
|00001c40| 69 20 69 6e 20 24 28 53 | 52 43 44 49 52 53 29 20 |i in $(S|RCDIRS) |
|00001c50| 3b 20 64 6f 20 5c 0a 58 | 09 09 28 20 24 28 43 48 |; do \.X|..( $(CH|
|00001c60| 44 49 52 29 20 24 24 69 | 20 3b 20 24 28 42 55 49 |DIR) $$i| ; $(BUI|
|00001c70| 4c 44 29 20 24 40 20 29 | 20 3b 20 5c 0a 58 09 64 |LD) $@ )| ; \.X.d|
|00001c80| 6f 6e 65 0a 58 0a 58 64 | 6f 63 73 3a 0a 58 09 66 |one.X.Xd|ocs:.X.f|
|00001c90| 6f 72 20 69 20 69 6e 20 | 24 28 44 4f 43 44 49 52 |or i in |$(DOCDIR|
|00001ca0| 53 29 20 3b 20 64 6f 20 | 5c 0a 58 09 09 28 20 24 |S) ; do |\.X..( $|
|00001cb0| 28 43 48 44 49 52 29 20 | 24 24 69 20 3b 20 24 28 |(CHDIR) |$$i ; $(|
|00001cc0| 42 55 49 4c 44 29 20 61 | 6c 6c 20 29 20 3b 20 5c |BUILD) a|ll ) ; \|
|00001cd0| 0a 58 09 64 6f 6e 65 0a | 58 0a 45 4e 44 5f 4f 46 |.X.done.|X.END_OF|
|00001ce0| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 31 32 |_FILE.if| test 12|
|00001cf0| 39 30 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |90 -ne `|wc -c <'|
|00001d00| 4d 61 6b 65 66 69 6c 65 | 27 60 3b 20 74 68 65 6e |Makefile|'`; then|
|00001d10| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00001d20| 5c 22 27 4d 61 6b 65 66 | 69 6c 65 27 5c 22 20 75 |\"'Makef|ile'\" u|
|00001d30| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00001d40| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00001d50| 64 20 6f 66 20 27 4d 61 | 6b 65 66 69 6c 65 27 0a |d of 'Ma|kefile'.|
|00001d60| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 52 |fi.if te|st -f 'R|
|00001d70| 45 41 44 4d 45 27 20 2d | 61 20 22 24 7b 31 7d 22 |EADME' -|a "${1}"|
|00001d80| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00001d90| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00001da0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00001db0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00001dc0| 52 45 41 44 4d 45 27 5c | 22 0a 65 6c 73 65 0a 65 |README'\|".else.e|
|00001dd0| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00001de0| 74 69 6e 67 20 5c 22 27 | 52 45 41 44 4d 45 27 5c |ting \"'|README'\|
|00001df0| 22 20 5c 28 36 30 33 30 | 20 63 68 61 72 61 63 74 |" \(6030| charact|
|00001e00| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00001e10| 2f 22 20 3e 27 52 45 41 | 44 4d 45 27 20 3c 3c 27 |/" >'REA|DME' <<'|
|00001e20| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 0a 58 |END_OF_F|ILE'.X.X|
|00001e30| 20 57 48 41 54 20 49 53 | 20 54 48 49 53 3f 0a 58 | WHAT IS| THIS?.X|
|00001e40| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 58 | =======|======.X|
|00001e50| 20 54 68 69 73 20 69 73 | 20 43 6d 64 4c 69 6e 65 | This is| CmdLine|
|00001e60| 2c 20 61 20 43 2b 2b 20 | 6c 69 62 72 61 72 79 20 |, a C++ |library |
|00001e70| 66 6f 72 20 70 61 72 73 | 69 6e 67 20 63 6f 6d 6d |for pars|ing comm|
|00001e80| 61 6e 64 20 61 72 67 75 | 6d 65 6e 74 73 20 61 6e |and argu|ments an|
|00001e90| 64 20 61 73 73 69 67 6e | 69 6e 67 0a 58 20 74 68 |d assign|ing.X th|
|00001ea0| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|00001eb0| 76 61 6c 75 65 73 20 74 | 6f 20 70 72 6f 67 72 61 |values t|o progra|
|00001ec0| 6d 20 76 61 72 69 61 62 | 6c 65 73 2e 20 41 6c 73 |m variab|les. Als|
|00001ed0| 6f 20 69 6e 63 6c 75 64 | 65 64 20 69 73 20 63 6d |o includ|ed is cm|
|00001ee0| 64 70 61 72 73 65 2c 0a | 58 20 61 20 70 72 6f 67 |dparse,.|X a prog|
|00001ef0| 72 61 6d 20 74 6f 20 70 | 72 6f 76 69 64 65 20 61 |ram to p|rovide a|
|00001f00| 6e 20 69 6e 74 65 72 66 | 61 63 65 20 74 6f 20 43 |n interf|ace to C|
|00001f10| 6d 64 4c 69 6e 65 20 66 | 6f 72 20 73 68 65 6c 6c |mdLine f|or shell|
|00001f20| 2d 73 63 72 69 70 74 73 | 2e 20 53 65 65 20 74 68 |-scripts|. See th|
|00001f30| 65 20 0a 58 20 66 69 6c | 65 20 6e 61 6d 65 64 20 |e .X fil|e named |
|00001f40| 22 4f 76 65 72 76 69 65 | 77 22 20 66 6f 72 20 61 |"Overvie|w" for a|
|00001f50| 20 6d 6f 72 65 20 74 68 | 6f 72 6f 75 67 68 20 69 | more th|orough i|
|00001f60| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 21 0a 58 0a 58 |ntroduct|ion!.X.X|
|00001f70| 0a 58 20 41 55 54 48 4f | 52 0a 58 20 3d 3d 3d 3d |.X AUTHO|R.X ====|
|00001f80| 3d 3d 0a 58 20 42 72 61 | 64 20 41 70 70 6c 65 74 |==.X Bra|d Applet|
|00001f90| 6f 6e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |on | |
|00001fa0| 20 20 20 20 20 20 20 48 | 61 72 72 69 73 20 43 6f | H|arris Co|
|00001fb0| 72 70 2e 2c 20 43 6f 6d | 70 75 74 65 72 20 53 79 |rp., Com|puter Sy|
|00001fc0| 73 74 65 6d 73 20 44 69 | 76 69 73 69 6f 6e 0a 58 |stems Di|vision.X|
|00001fd0| 20 20 20 53 65 6e 69 6f | 72 20 53 6f 66 74 77 61 | Senio|r Softwa|
|00001fe0| 72 65 20 45 6e 67 69 6e | 65 65 72 20 20 20 20 20 |re Engin|eer |
|00001ff0| 20 20 20 32 31 30 31 20 | 57 65 73 74 20 43 79 70 | 2101 |West Cyp|
|00002000| 72 65 73 73 20 43 72 65 | 65 6b 20 52 6f 61 64 2c |ress Cre|ek Road,|
|00002010| 20 20 4d 2f 53 20 31 36 | 31 20 0a 58 20 20 20 20 | M/S 16|1 .X |
|00002020| 20 62 72 61 64 40 73 73 | 64 2e 63 73 64 2e 68 61 | brad@ss|d.csd.ha|
|00002030| 72 72 69 73 2e 63 6f 6d | 20 20 20 20 20 20 20 46 |rris.com| F|
|00002040| 6f 72 74 20 4c 61 75 64 | 65 72 64 61 6c 65 2c 20 |ort Laud|erdale, |
|00002050| 46 4c 20 20 33 33 33 30 | 39 2d 31 38 39 32 20 20 |FL 3330|9-1892 |
|00002060| 55 53 41 0a 58 20 20 20 | 20 20 20 20 2e 2e 2e 21 |USA.X | ...!|
|00002070| 75 75 6e 65 74 21 74 72 | 61 76 69 73 21 62 72 61 |uunet!tr|avis!bra|
|00002080| 64 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 |d | P|
|00002090| 68 6f 6e 65 3a 20 28 33 | 30 35 29 20 39 37 33 2d |hone: (3|05) 973-|
|000020a0| 35 31 39 30 0a 58 0a 58 | 0a 58 20 43 4f 50 59 2f |5190.X.X|.X COPY/|
|000020b0| 52 45 55 53 45 20 50 4f | 4c 49 43 59 0a 58 20 3d |REUSE PO|LICY.X =|
|000020c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000020d0| 0a 58 20 50 65 72 6d 69 | 73 73 69 6f 6e 20 69 73 |.X Permi|ssion is|
|000020e0| 20 68 65 72 65 62 79 20 | 67 72 61 6e 74 65 64 20 | hereby |granted |
|000020f0| 74 6f 20 66 72 65 65 6c | 79 20 63 6f 70 79 20 61 |to freel|y copy a|
|00002100| 6e 64 20 72 65 64 69 73 | 74 72 69 62 75 74 65 20 |nd redis|tribute |
|00002110| 74 68 69 73 0a 58 20 73 | 6f 66 74 77 61 72 65 2c |this.X s|oftware,|
|00002120| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
|00002130| 68 65 20 61 75 74 68 6f | 72 20 69 73 20 63 6c 65 |he autho|r is cle|
|00002140| 61 72 6c 79 20 63 72 65 | 64 69 74 65 64 20 69 6e |arly cre|dited in|
|00002150| 20 61 6c 6c 20 63 6f 70 | 69 65 73 0a 58 20 61 6e | all cop|ies.X an|
|00002160| 64 20 64 65 72 69 76 61 | 74 69 6f 6e 73 2e 20 4e |d deriva|tions. N|
|00002170| 65 69 74 68 65 72 20 74 | 68 65 20 6e 61 6d 65 73 |either t|he names|
|00002180| 20 6f 66 20 74 68 65 20 | 61 75 74 68 6f 72 73 20 | of the |authors |
|00002190| 6e 6f 72 20 74 68 61 74 | 20 6f 66 20 74 68 65 69 |nor that| of thei|
|000021a0| 72 0a 58 20 65 6d 70 6c | 6f 79 65 72 73 20 6d 61 |r.X empl|oyers ma|
|000021b0| 79 20 62 65 20 75 73 65 | 64 20 74 6f 20 65 6e 64 |y be use|d to end|
|000021c0| 6f 72 73 65 20 6f 72 20 | 70 72 6f 6d 6f 74 65 20 |orse or |promote |
|000021d0| 70 72 6f 64 75 63 74 73 | 20 64 65 72 69 76 65 64 |products| derived|
|000021e0| 20 66 72 6f 6d 20 74 68 | 69 73 0a 58 20 73 6f 66 | from th|is.X sof|
|000021f0| 74 77 61 72 65 20 77 69 | 74 68 6f 75 74 20 73 70 |tware wi|thout sp|
|00002200| 65 63 69 66 69 63 20 77 | 72 69 74 74 65 6e 20 70 |ecific w|ritten p|
|00002210| 65 72 6d 69 73 73 69 6f | 6e 2e 0a 58 0a 58 0a 58 |ermissio|n..X.X.X|
|00002220| 20 44 49 53 43 4c 41 49 | 4d 45 52 0a 58 20 3d 3d | DISCLAI|MER.X ==|
|00002230| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 58 20 54 68 69 73 20 |========|.X This |
|00002240| 73 6f 66 74 77 61 72 65 | 20 69 73 20 70 72 6f 76 |software| is prov|
|00002250| 69 64 65 64 20 60 60 41 | 73 20 49 73 27 27 20 61 |ided ``A|s Is'' a|
|00002260| 6e 64 20 77 69 74 68 6f | 75 74 20 61 6e 79 20 65 |nd witho|ut any e|
|00002270| 78 70 72 65 73 73 20 6f | 72 20 69 6d 70 6c 69 65 |xpress o|r implie|
|00002280| 64 0a 58 20 77 61 72 72 | 61 6e 74 69 65 73 2e 20 |d.X warr|anties. |
|00002290| 20 4e 65 69 74 68 65 72 | 20 74 68 65 20 61 75 74 | Neither| the aut|
|000022a0| 68 6f 72 73 20 6e 6f 72 | 20 61 6e 79 20 6f 66 20 |hors nor| any of |
|000022b0| 74 68 65 69 72 20 65 6d | 70 6c 6f 79 65 72 73 20 |their em|ployers |
|000022c0| 28 69 6e 63 6c 75 64 69 | 6e 67 0a 58 20 61 6e 79 |(includi|ng.X any|
|000022d0| 20 6f 66 20 74 68 65 69 | 72 20 73 75 62 73 69 64 | of thei|r subsid|
|000022e0| 69 61 72 69 65 73 20 61 | 6e 64 20 73 75 62 64 69 |iaries a|nd subdi|
|000022f0| 76 69 73 69 6f 6e 73 29 | 20 61 72 65 20 72 65 73 |visions)| are res|
|00002300| 70 6f 6e 73 69 62 6c 65 | 20 66 6f 72 20 6d 61 69 |ponsible| for mai|
|00002310| 6e 74 61 69 6e 69 6e 67 | 0a 58 20 6f 72 20 73 75 |ntaining|.X or su|
|00002320| 70 70 6f 72 74 69 6e 67 | 20 74 68 69 73 20 73 6f |pporting| this so|
|00002330| 66 74 77 61 72 65 20 6f | 72 20 66 6f 72 20 61 6e |ftware o|r for an|
|00002340| 79 20 63 6f 6e 73 65 71 | 75 65 6e 63 65 73 20 72 |y conseq|uences r|
|00002350| 65 73 75 6c 74 69 6e 67 | 20 66 72 6f 6d 20 74 68 |esulting| from th|
|00002360| 65 0a 58 20 75 73 65 20 | 6f 66 20 74 68 69 73 20 |e.X use |of this |
|00002370| 73 6f 66 74 77 61 72 65 | 2c 20 6e 6f 20 6d 61 74 |software|, no mat|
|00002380| 74 65 72 20 68 6f 77 20 | 61 77 66 75 6c 2c 20 65 |ter how |awful, e|
|00002390| 76 65 6e 20 69 66 20 74 | 68 65 79 20 61 72 69 73 |ven if t|hey aris|
|000023a0| 65 20 66 72 6f 6d 20 66 | 6c 61 77 73 0a 58 20 69 |e from f|laws.X i|
|000023b0| 6e 20 74 68 65 20 73 6f | 66 74 77 61 72 65 2e 0a |n the so|ftware..|
|000023c0| 58 0a 58 0a 58 20 43 4f | 4e 54 45 4e 54 53 0a 58 |X.X.X CO|NTENTS.X|
|000023d0| 20 3d 3d 3d 3d 3d 3d 3d | 3d 0a 58 20 53 65 65 20 | =======|=.X See |
|000023e0| 74 68 65 20 66 69 6c 65 | 20 22 4d 41 4e 49 46 45 |the file| "MANIFE|
|000023f0| 53 54 22 20 69 6e 20 74 | 68 65 20 64 69 73 74 72 |ST" in t|he distr|
|00002400| 69 62 75 74 69 6f 6e 20 | 66 6f 72 20 61 20 63 6f |ibution |for a co|
|00002410| 6d 70 6c 65 74 65 20 6c | 69 73 74 20 61 6e 64 0a |mplete l|ist and.|
|00002420| 58 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |X descri|ption of|
|00002430| 20 61 6c 6c 20 74 68 65 | 20 66 69 6c 65 73 20 69 | all the| files i|
|00002440| 6e 63 6c 75 64 65 64 20 | 69 6e 20 74 68 69 73 20 |ncluded |in this |
|00002450| 72 65 6c 65 61 73 65 2e | 0a 58 0a 58 0a 58 20 52 |release.|.X.X.X R|
|00002460| 45 51 55 49 52 45 4d 45 | 4e 54 53 0a 58 20 3d 3d |EQUIREME|NTS.X ==|
|00002470| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 58 20 54 68 69 |========|==.X Thi|
|00002480| 73 20 73 6f 66 74 77 61 | 72 65 20 73 68 6f 75 6c |s softwa|re shoul|
|00002490| 64 20 63 6f 6d 70 69 6c | 65 20 6f 6e 20 6d 6f 73 |d compil|e on mos|
|000024a0| 74 20 55 6e 69 78 20 70 | 6c 61 74 66 6f 72 6d 73 |t Unix p|latforms|
|000024b0| 20 77 69 74 68 20 61 20 | 43 2b 2b 20 63 6f 6d 70 | with a |C++ comp|
|000024c0| 69 6c 65 72 0a 58 20 77 | 69 74 68 20 6c 69 74 74 |iler.X w|ith litt|
|000024d0| 6c 65 20 6f 72 20 6e 6f | 20 64 69 66 66 69 63 75 |le or no| difficu|
|000024e0| 6c 74 79 2e 0a 58 0a 58 | 20 59 6f 75 20 77 69 6c |lty..X.X| You wil|
|000024f0| 6c 20 6e 65 65 64 20 74 | 6f 20 74 77 65 61 6b 20 |l need t|o tweak |
|00002500| 74 68 65 20 4d 61 6b 65 | 66 69 6c 65 73 20 61 20 |the Make|files a |
|00002510| 74 61 64 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |tad in o|rder to |
|00002520| 6d 61 6b 65 20 74 68 65 | 6d 20 77 6f 72 6b 0a 58 |make the|m work.X|
|00002530| 20 66 6f 72 20 79 6f 75 | 72 20 43 2b 2b 20 63 6f | for you|r C++ co|
|00002540| 6d 70 69 6c 65 72 2e 0a | 58 0a 58 20 43 6d 64 4c |mpiler..|X.X CmdL|
|00002550| 69 6e 65 20 6d 61 6b 65 | 73 20 65 78 74 65 6e 73 |ine make|s extens|
|00002560| 69 76 65 20 75 73 65 20 | 6f 66 20 74 68 65 20 22 |ive use |of the "|
|00002570| 6e 65 77 22 20 6f 70 65 | 72 61 74 6f 72 20 62 75 |new" ope|rator bu|
|00002580| 74 20 6d 61 6b 65 73 20 | 6e 6f 20 61 74 74 65 6d |t makes |no attem|
|00002590| 70 74 0a 58 20 74 6f 20 | 73 65 65 20 69 66 20 61 |pt.X to |see if a|
|000025a0| 6c 6c 6f 63 61 74 69 6f | 6e 20 66 61 69 6c 65 64 |llocatio|n failed|
|000025b0| 21 20 20 43 6d 64 4c 69 | 6e 65 20 61 73 73 75 6d |! CmdLi|ne assum|
|000025c0| 65 73 20 74 68 61 74 20 | 61 6e 79 20 73 75 63 68 |es that |any such|
|000025d0| 20 64 65 73 69 72 65 64 | 0a 58 20 65 72 72 6f 72 | desired|.X error|
|000025e0| 2d 63 68 65 63 6b 69 6e | 67 20 77 69 6c 6c 20 62 |-checkin|g will b|
|000025f0| 65 20 74 61 6b 65 6e 20 | 63 61 72 65 20 6f 66 20 |e taken |care of |
|00002600| 62 79 20 74 68 65 20 70 | 72 6f 67 72 61 6d 6d 65 |by the p|rogramme|
|00002610| 72 20 62 79 20 23 69 6e | 63 6c 75 64 69 6e 67 0a |r by #in|cluding.|
|00002620| 58 20 74 68 65 20 68 65 | 61 64 65 72 20 66 69 6c |X the he|ader fil|
|00002630| 65 20 3c 6e 65 77 2e 68 | 3e 20 61 6e 64 20 75 73 |e <new.h|> and us|
|00002640| 69 6e 67 20 74 68 65 20 | 73 65 74 5f 6e 65 77 5f |ing the |set_new_|
|00002650| 68 61 6e 64 6c 65 72 28 | 29 20 66 75 6e 63 74 69 |handler(|) functi|
|00002660| 6f 6e 2e 0a 58 0a 58 20 | 43 4f 4d 50 49 4c 41 54 |on..X.X |COMPILAT|
|00002670| 49 4f 4e 20 4f 50 54 49 | 4f 4e 53 0a 58 20 3d 3d |ION OPTI|ONS.X ==|
|00002680| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002690| 3d 0a 58 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |=.X The |followin|
|000026a0| 67 20 6e 61 6d 65 73 20 | 6d 61 79 20 62 65 20 60 |g names |may be `|
|000026b0| 23 64 65 66 69 6e 65 27 | 64 20 77 68 65 6e 20 62 |#define'|d when b|
|000026c0| 75 69 6c 64 69 6e 67 20 | 43 6d 64 4c 69 6e 65 2e |uilding |CmdLine.|
|000026d0| 0a 58 0a 58 20 75 6e 69 | 78 20 20 20 20 20 20 20 |.X.X uni|x |
|000026e0| 20 20 20 20 20 4e 65 65 | 64 65 64 20 66 6f 72 20 | Nee|ded for |
|000026f0| 75 6e 69 78 20 73 79 73 | 74 65 6d 73 0a 58 20 76 |unix sys|tems.X v|
|00002700| 6d 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4e |ms | N|
|00002710| 65 65 64 65 64 20 66 6f | 72 20 76 6d 73 20 73 79 |eeded fo|r vms sy|
|00002720| 73 74 65 6d 73 0a 58 20 | 6d 73 64 6f 73 20 20 20 |stems.X |msdos |
|00002730| 20 20 20 20 20 20 20 20 | 4e 65 65 64 65 64 20 66 | |Needed f|
|00002740| 6f 72 20 4d 53 2d 44 4f | 53 20 73 79 73 74 65 6d |or MS-DO|S system|
|00002750| 73 2e 0a 58 20 6f 73 32 | 20 20 20 20 20 20 20 20 |s..X os2| |
|00002760| 20 20 20 20 20 4e 65 65 | 64 65 64 20 66 6f 72 20 | Nee|ded for |
|00002770| 4f 53 2f 32 20 53 79 73 | 74 65 6d 73 2e 0a 58 0a |OS/2 Sys|tems..X.|
|00002780| 58 20 75 6e 69 78 5f 73 | 74 79 6c 65 20 20 20 20 |X unix_s|tyle |
|00002790| 20 20 28 54 68 69 73 20 | 69 73 20 74 68 65 20 64 | (This |is the d|
|000027a0| 65 66 61 75 6c 74 29 20 | 55 73 65 20 74 68 69 73 |efault) |Use this|
|000027b0| 20 74 6f 20 68 61 76 65 | 20 43 6d 64 4c 69 6e 65 | to have| CmdLine|
|000027c0| 20 70 61 72 73 65 0a 58 | 20 20 20 20 20 20 20 20 | parse.X| |
|000027d0| 20 20 20 20 20 20 20 20 | 20 63 6f 6d 6d 61 6e 64 | | command|
|000027e0| 2d 6c 69 6e 65 73 20 75 | 73 69 6e 67 20 74 72 61 |-lines u|sing tra|
|000027f0| 64 69 74 69 6f 6e 61 6c | 20 55 6e 69 78 20 63 6f |ditional| Unix co|
|00002800| 6d 6d 61 6e 64 2d 6c 69 | 6e 65 20 73 79 6e 74 61 |mmand-li|ne synta|
|00002810| 78 2e 0a 58 0a 58 20 76 | 6d 73 5f 73 74 79 6c 65 |x..X.X v|ms_style|
|00002820| 20 20 20 20 20 20 20 28 | 4e 6f 74 20 79 65 74 20 | (|Not yet |
|00002830| 73 75 70 70 6f 72 74 65 | 64 29 20 55 73 65 20 74 |supporte|d) Use t|
|00002840| 68 69 73 20 74 6f 20 68 | 61 76 65 20 43 6d 64 4c |his to h|ave CmdL|
|00002850| 69 6e 65 20 70 61 72 73 | 65 0a 58 20 20 20 20 20 |ine pars|e.X |
|00002860| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 6f 6d 6d | | comm|
|00002870| 61 6e 64 2d 6c 69 6e 65 | 73 20 75 73 69 6e 67 20 |and-line|s using |
|00002880| 74 72 61 64 69 74 69 6f | 6e 61 6c 20 56 41 58 2f |traditio|nal VAX/|
|00002890| 56 4d 53 20 44 43 4c 20 | 73 79 6e 74 61 78 2e 0a |VMS DCL |syntax..|
|000028a0| 58 0a 58 20 55 53 45 5f | 50 4c 55 53 20 20 20 20 |X.X USE_|PLUS |
|000028b0| 20 20 20 20 4d 61 6b 65 | 73 20 43 6d 64 4c 69 6e | Make|s CmdLin|
|000028c0| 65 20 75 73 65 20 22 2b | 22 20 69 6e 73 74 65 61 |e use "+|" instea|
|000028d0| 64 20 6f 66 20 22 2d 2d | 22 20 61 73 20 74 68 65 |d of "--|" as the|
|000028e0| 20 6b 65 79 77 6f 72 64 | 20 70 72 65 66 69 78 0a | keyword| prefix.|
|000028f0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00002900| 20 20 77 68 65 6e 20 2d | 44 75 6e 69 78 5f 73 74 | when -|Dunix_st|
|00002910| 79 6c 65 20 69 73 20 75 | 73 65 64 2e 0a 58 0a 58 |yle is u|sed..X.X|
|00002920| 20 44 45 42 55 47 5f 43 | 4d 44 4c 49 4e 45 20 20 | DEBUG_C|MDLINE |
|00002930| 20 45 6e 61 62 6c 65 73 | 20 75 73 65 20 6f 66 20 | Enables| use of |
|00002940| 74 68 65 20 22 64 75 6d | 70 22 20 6d 65 6d 62 65 |the "dum|p" membe|
|00002950| 72 20 66 75 6e 63 74 69 | 6f 6e 73 20 69 6e 20 74 |r functi|ons in t|
|00002960| 68 65 20 43 6d 64 4c 69 | 6e 65 0a 58 20 20 20 20 |he CmdLi|ne.X |
|00002970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6c 69 62 | | lib|
|00002980| 72 61 72 79 2e 0a 58 0a | 58 20 54 45 4d 50 4c 41 |rary..X.|X TEMPLA|
|00002990| 54 45 53 20 20 20 20 20 | 20 20 23 64 65 66 69 6e |TES | #defin|
|000029a0| 65 20 74 68 69 73 20 69 | 66 20 79 6f 75 72 20 43 |e this i|f your C|
|000029b0| 2b 2b 20 63 6f 6d 70 69 | 6c 65 72 20 73 75 70 70 |++ compi|ler supp|
|000029c0| 6f 72 74 73 20 74 65 6d | 70 6c 61 74 65 73 2e 0a |orts tem|plates..|
|000029d0| 58 0a 58 20 47 4e 55 5f | 52 45 41 44 4c 49 4e 45 |X.X GNU_|READLINE|
|000029e0| 20 20 20 20 55 73 65 20 | 74 68 69 73 20 69 66 20 | Use |this if |
|000029f0| 79 6f 75 20 77 61 6e 74 | 20 43 6d 64 4c 69 6e 65 |you want| CmdLine|
|00002a00| 20 74 6f 20 75 73 65 20 | 74 68 65 20 72 65 61 64 | to use |the read|
|00002a10| 6c 69 6e 65 20 6c 69 62 | 72 61 72 79 0a 58 20 20 |line lib|rary.X |
|00002a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 | | (|
|00002a30| 66 72 6f 6d 20 74 68 65 | 20 46 53 46 29 20 77 68 |from the| FSF) wh|
|00002a40| 65 6e 20 70 72 6f 6d 70 | 74 69 6e 67 20 74 68 65 |en promp|ting the|
|00002a50| 20 75 73 65 72 20 66 6f | 72 20 61 72 67 75 6d 65 | user fo|r argume|
|00002a60| 6e 74 73 2e 0a 58 20 20 | 20 20 20 20 20 20 20 20 |nts..X | |
|00002a70| 20 20 20 20 20 20 20 59 | 6f 75 20 77 69 6c 6c 20 | Y|ou will |
|00002a80| 70 72 6f 62 61 62 6c 79 | 20 61 6c 73 6f 20 6e 65 |probably| also ne|
|00002a90| 65 64 20 74 6f 20 6c 69 | 6e 6b 20 77 69 74 68 20 |ed to li|nk with |
|00002aa0| 74 68 69 73 20 6c 69 62 | 72 61 72 79 2e 0a 58 0a |this lib|rary..X.|
|00002ab0| 58 0a 58 20 50 4f 52 54 | 49 4e 47 0a 58 20 3d 3d |X.X PORT|ING.X ==|
|00002ac0| 3d 3d 3d 3d 3d 0a 58 20 | 59 6f 75 20 6d 61 79 20 |=====.X |You may |
|00002ad0| 6e 65 65 64 20 74 6f 20 | 74 77 65 61 6b 20 74 68 |need to |tweak th|
|00002ae0| 65 20 6d 61 6b 65 66 69 | 6c 65 73 20 61 20 62 69 |e makefi|les a bi|
|00002af0| 74 20 69 6e 20 6f 72 64 | 65 72 20 74 6f 20 67 65 |t in ord|er to ge|
|00002b00| 74 20 43 6d 64 4c 69 6e | 65 20 74 6f 20 62 75 69 |t CmdLin|e to bui|
|00002b10| 6c 64 0a 58 20 70 72 6f | 70 65 72 6c 79 2e 20 20 |ld.X pro|perly. |
|00002b20| 46 69 72 73 74 20 6c 6f | 6f 6b 20 61 74 20 22 43 |First lo|ok at "C|
|00002b30| 6f 6e 66 69 67 2e 6d 6b | 22 20 61 6e 64 20 63 68 |onfig.mk|" and ch|
|00002b40| 61 6e 67 65 20 74 68 65 | 20 6d 61 6b 65 2d 76 61 |ange the| make-va|
|00002b50| 72 69 61 62 6c 65 73 20 | 74 6f 20 77 68 61 74 2d |riables |to what-|
|00002b60| 0a 58 20 65 76 65 72 20 | 69 73 20 61 70 70 72 6f |.X ever |is appro|
|00002b70| 70 72 69 61 74 65 20 66 | 6f 72 20 79 6f 75 72 20 |priate f|or your |
|00002b80| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|00002b90| 20 61 6e 64 20 63 6f 6d | 70 69 6c 61 74 69 6f 6e | and com|pilation|
|00002ba0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2e 0a 58 20 | environ|ment..X |
|00002bb0| 49 66 20 79 6f 75 20 61 | 72 65 20 6f 6e 20 61 6e |If you a|re on an|
|00002bc0| 20 6f 70 65 72 61 74 69 | 6e 67 20 73 79 73 74 65 | operati|ng syste|
|00002bd0| 6d 20 6f 74 68 65 72 20 | 74 68 61 6e 20 55 6e 69 |m other |than Uni|
|00002be0| 78 2c 20 79 6f 75 20 77 | 69 6c 6c 20 61 6c 73 6f |x, you w|ill also|
|00002bf0| 20 6e 65 65 64 20 74 6f | 0a 58 20 63 68 61 6e 67 | need to|.X chang|
|00002c00| 65 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 22 69 6e |e all of| the "in|
|00002c10| 63 6c 75 64 65 22 20 73 | 74 61 74 65 6d 65 6e 74 |clude" s|tatement|
|00002c20| 73 20 69 6e 20 74 68 65 | 20 4d 61 6b 65 66 69 6c |s in the| Makefil|
|00002c30| 65 73 20 74 6f 20 75 73 | 65 20 74 68 65 20 70 72 |es to us|e the pr|
|00002c40| 6f 70 65 72 0a 58 20 70 | 61 74 68 6e 61 6d 65 20 |oper.X p|athname |
|00002c50| 73 79 6e 74 61 78 2e 20 | 20 49 66 20 79 6f 75 20 |syntax. | If you |
|00002c60| 63 68 61 6e 67 65 20 74 | 68 65 20 64 65 66 69 6e |change t|he defin|
|00002c70| 69 74 69 6f 6e 73 20 6f | 66 20 24 28 4c 49 42 44 |itions o|f $(LIBD|
|00002c80| 49 52 29 20 61 6e 64 20 | 24 28 49 4e 43 44 49 52 |IR) and |$(INCDIR|
|00002c90| 29 0a 58 20 69 6e 20 43 | 6f 6e 66 69 67 2e 6d 6b |).X in C|onfig.mk|
|00002ca0| 20 74 68 65 6e 20 79 6f | 75 20 73 68 6f 75 6c 64 | then yo|u should|
|00002cb0| 20 61 6c 73 6f 20 6d 6f | 64 69 66 79 20 74 68 65 | also mo|dify the|
|00002cc0| 20 66 69 6c 65 20 64 6f | 63 2f 6d 61 63 72 6f 73 | file do|c/macros|
|00002cd0| 2e 6d 61 6e 20 74 6f 20 | 69 6e 64 69 63 61 74 65 |.man to |indicate|
|00002ce0| 0a 58 20 74 68 65 20 6e | 65 77 20 6c 6f 63 61 74 |.X the n|ew locat|
|00002cf0| 69 6f 6e 73 20 66 6f 72 | 20 77 68 65 72 65 20 74 |ions for| where t|
|00002d00| 68 65 73 65 20 66 69 6c | 65 73 20 61 72 65 20 69 |hese fil|es are i|
|00002d10| 6e 73 74 61 6c 6c 65 64 | 2e 0a 58 0a 58 20 59 6f |nstalled|..X.X Yo|
|00002d20| 75 20 73 68 6f 75 6c 64 | 20 62 65 20 61 77 61 72 |u should| be awar|
|00002d30| 65 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |e of the| followi|
|00002d40| 6e 67 20 77 68 65 6e 20 | 70 6f 72 74 69 6e 67 20 |ng when |porting |
|00002d50| 43 6d 64 4c 69 6e 65 20 | 74 6f 20 6f 74 68 65 72 |CmdLine |to other|
|00002d60| 20 70 6c 61 74 66 6f 72 | 6d 73 2e 0a 58 0a 58 20 | platfor|ms..X.X |
|00002d70| 31 29 20 43 6d 64 4c 69 | 6e 65 20 61 73 73 75 6d |1) CmdLi|ne assum|
|00002d80| 65 73 20 74 68 61 74 20 | 61 74 20 6c 65 61 73 74 |es that |at least|
|00002d90| 20 6f 6e 65 20 6f 66 20 | 5f 5f 53 54 44 43 5f 5f | one of |__STDC__|
|00002da0| 20 6f 72 20 5f 5f 41 4e | 53 49 5f 43 50 50 5f 5f | or __AN|SI_CPP__|
|00002db0| 20 77 69 6c 6c 20 62 65 | 0a 58 20 20 20 20 23 64 | will be|.X #d|
|00002dc0| 65 66 69 6e 65 64 20 69 | 66 20 79 6f 75 72 20 43 |efined i|f your C|
|00002dd0| 2b 2b 20 63 6f 6d 70 69 | 6c 65 72 20 75 73 65 73 |++ compi|ler uses|
|00002de0| 20 61 6e 20 41 4e 53 49 | 2d 43 20 70 72 65 70 72 | an ANSI|-C prepr|
|00002df0| 6f 63 65 73 73 6f 72 2e | 0a 58 0a 58 20 32 29 20 |ocessor.|.X.X 2) |
|00002e00| 43 6d 64 4c 69 6e 65 20 | 75 73 65 73 20 3c 73 74 |CmdLine |uses <st|
|00002e10| 64 61 72 67 2e 68 3e 20 | 28 6e 6f 74 20 3c 76 61 |darg.h> |(not <va|
|00002e20| 72 61 72 67 73 2e 68 3e | 29 20 74 6f 20 68 61 6e |rargs.h>|) to han|
|00002e30| 64 6c 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |dle func|tions th|
|00002e40| 61 74 20 6d 61 79 0a 58 | 20 20 20 20 74 61 6b 65 |at may.X| take|
|00002e50| 20 61 20 76 61 72 69 61 | 62 6c 65 20 6e 75 6d 62 | a varia|ble numb|
|00002e60| 65 72 20 6f 66 20 61 72 | 67 75 6d 65 6e 74 73 2e |er of ar|guments.|
|00002e70| 0a 58 20 0a 58 20 33 29 | 20 4e 6f 74 20 61 6c 6c |.X .X 3)| Not all|
|00002e80| 20 73 79 73 74 65 6d 73 | 20 68 61 76 65 20 74 68 | systems| have th|
|00002e90| 65 20 73 74 72 74 6f 64 | 28 29 20 66 75 6e 63 74 |e strtod|() funct|
|00002ea0| 69 6f 6e 20 75 73 65 64 | 20 69 6e 20 73 72 63 2f |ion used| in src/|
|00002eb0| 6c 69 62 2f 63 6d 64 61 | 72 67 73 2e 63 2c 0a 58 |lib/cmda|rgs.c,.X|
|00002ec0| 20 20 20 20 49 66 20 79 | 6f 75 72 20 73 79 73 74 | If y|our syst|
|00002ed0| 65 6d 20 44 4f 45 53 20 | 68 61 76 65 20 73 74 72 |em DOES |have str|
|00002ee0| 74 6f 64 20 62 75 74 20 | 69 74 20 69 73 20 4e 4f |tod but |it is NO|
|00002ef0| 54 20 69 6e 20 3c 73 74 | 64 6c 69 62 2e 68 3e 20 |T in <st|dlib.h> |
|00002f00| 74 68 65 6e 20 79 6f 75 | 0a 58 20 20 20 20 77 69 |then you|.X wi|
|00002f10| 6c 6c 20 6e 65 65 64 20 | 74 6f 20 61 64 64 20 61 |ll need |to add a|
|00002f20| 20 70 72 6f 74 6f 74 79 | 70 65 20 66 6f 72 20 69 | prototy|pe for i|
|00002f30| 74 20 69 6e 20 73 72 63 | 2f 6c 69 62 2f 63 6d 64 |t in src|/lib/cmd|
|00002f40| 61 72 67 73 2e 63 2e 20 | 20 49 74 20 69 73 20 70 |args.c. | It is p|
|00002f50| 6f 73 73 69 62 6c 65 0a | 58 20 20 20 20 28 62 75 |ossible.|X (bu|
|00002f60| 74 20 6c 65 73 73 20 6c | 69 6b 65 6c 79 29 20 74 |t less l|ikely) t|
|00002f70| 68 61 74 20 79 6f 75 20 | 6d 61 79 20 68 61 76 65 |hat you |may have|
|00002f80| 20 73 69 6d 69 6c 61 72 | 20 70 72 6f 62 6c 65 6d | similar| problem|
|00002f90| 73 20 77 69 74 68 20 73 | 74 72 74 6f 6c 28 29 2e |s with s|trtol().|
|00002fa0| 0a 58 0a 58 20 34 29 20 | 43 6d 64 4c 69 6e 65 20 |.X.X 4) |CmdLine |
|00002fb0| 75 73 65 73 20 74 68 65 | 20 41 54 26 54 20 43 2b |uses the| AT&T C+|
|00002fc0| 2b 20 69 6f 73 74 72 65 | 61 6d 20 6c 69 62 72 61 |+ iostre|am libra|
|00002fd0| 72 79 2e 20 20 42 65 79 | 6f 6e 64 20 74 68 61 74 |ry. Bey|ond that|
|00002fe0| 2c 20 61 6c 6c 20 74 68 | 65 0a 58 20 20 20 20 23 |, all th|e.X #|
|00002ff0| 69 6e 63 6c 75 64 65 20 | 66 69 6c 65 73 20 69 74 |include |files it|
|00003000| 20 75 73 65 73 20 61 72 | 65 20 61 73 73 75 6d 65 | uses ar|e assume|
|00003010| 64 20 74 6f 20 68 61 76 | 65 20 74 68 65 20 63 6f |d to hav|e the co|
|00003020| 6e 74 65 6e 74 73 20 73 | 70 65 63 69 66 69 65 64 |ntents s|pecified|
|00003030| 20 62 79 0a 58 20 20 20 | 20 74 68 65 20 41 4e 53 | by.X | the ANS|
|00003040| 49 2d 43 20 73 74 61 6e | 64 61 72 64 20 61 6e 64 |I-C stan|dard and|
|00003050| 20 61 72 65 20 61 73 73 | 75 6d 65 64 20 74 6f 20 | are ass|umed to |
|00003060| 68 61 76 65 20 23 69 66 | 64 65 66 20 5f 5f 63 70 |have #if|def __cp|
|00003070| 6c 75 73 70 6c 75 73 20 | 73 74 61 74 65 6d 65 6e |lusplus |statemen|
|00003080| 74 73 0a 58 20 20 20 20 | 66 6f 72 20 77 68 65 6e |ts.X |for when|
|00003090| 20 74 68 65 79 20 61 72 | 65 20 62 65 69 6e 67 20 | they ar|e being |
|000030a0| 69 6e 63 6c 75 64 65 64 | 20 62 79 20 43 2b 2b 20 |included| by C++ |
|000030b0| 66 69 6c 65 73 2e 20 20 | 43 6d 64 4c 69 6e 65 20 |files. |CmdLine |
|000030c0| 61 73 73 75 6d 65 73 20 | 74 68 65 0a 58 20 20 20 |assumes |the.X |
|000030d0| 20 65 78 69 73 74 65 6e | 63 65 20 6f 66 20 74 68 | existen|ce of th|
|000030e0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 73 79 73 74 |e follow|ing syst|
|000030f0| 65 6d 20 68 65 61 64 65 | 72 20 66 69 6c 65 73 3a |em heade|r files:|
|00003100| 0a 58 0a 58 20 20 20 20 | 20 20 20 20 20 3c 73 74 |.X.X | <st|
|00003110| 64 61 72 67 2e 68 3e 0a | 58 20 20 20 20 20 20 20 |darg.h>.|X |
|00003120| 20 20 3c 73 74 64 6c 69 | 62 2e 68 3e 0a 58 20 20 | <stdli|b.h>.X |
|00003130| 20 20 20 20 20 20 20 3c | 73 74 72 69 6e 67 2e 68 | <|string.h|
|00003140| 3e 0a 58 20 20 20 20 20 | 20 20 20 20 3c 63 74 79 |>.X | <cty|
|00003150| 70 65 2e 68 3e 0a 58 20 | 20 20 20 20 20 20 20 20 |pe.h>.X | |
|00003160| 3c 69 6f 73 74 72 65 61 | 6d 2e 68 3e 0a 58 20 20 |<iostrea|m.h>.X |
|00003170| 20 20 20 20 20 20 20 3c | 66 73 74 72 65 61 6d 2e | <|fstream.|
|00003180| 68 3e 0a 58 20 20 20 20 | 20 20 20 20 20 3c 73 74 |h>.X | <st|
|00003190| 72 73 74 72 65 61 6d 2e | 68 3e 0a 58 20 20 20 20 |rstream.|h>.X |
|000031a0| 20 20 20 20 20 3c 6d 61 | 6c 6c 6f 63 2e 68 3e 20 | <ma|lloc.h> |
|000031b0| 20 20 20 3c 2d 2d 2d 20 | 6f 6e 6c 79 20 75 73 65 | <--- |only use|
|000031c0| 64 20 6f 6e 20 55 6e 69 | 78 20 73 79 73 74 65 6d |d on Uni|x system|
|000031d0| 73 0a 58 0a 58 0a 58 20 | 42 55 47 53 0a 58 20 3d |s.X.X.X |BUGS.X =|
|000031e0| 3d 3d 3d 0a 58 20 50 6c | 65 61 73 65 20 73 65 6e |===.X Pl|ease sen|
|000031f0| 64 20 61 6c 6c 20 62 75 | 67 20 72 65 70 6f 72 74 |d all bu|g report|
|00003200| 73 20 74 6f 20 42 72 61 | 64 20 41 70 70 6c 65 74 |s to Bra|d Applet|
|00003210| 6f 6e 20 3c 62 72 61 64 | 40 73 73 64 2e 63 73 64 |on <brad|@ssd.csd|
|00003220| 2e 68 61 72 72 69 73 2e | 63 6f 6d 3e 2e 0a 58 20 |.harris.|com>..X |
|00003230| 44 6f 6e 74 20 66 6f 72 | 67 65 74 20 74 6f 20 6d |Dont for|get to m|
|00003240| 65 6e 74 69 6f 6e 20 77 | 68 69 63 68 20 76 65 72 |ention w|hich ver|
|00003250| 73 69 6f 6e 20 6f 66 20 | 43 6d 64 4c 69 6e 65 20 |sion of |CmdLine |
|00003260| 79 6f 75 20 68 61 76 65 | 20 61 6e 64 20 77 68 69 |you have| and whi|
|00003270| 63 68 0a 58 20 6f 70 65 | 72 61 74 69 6e 67 20 73 |ch.X ope|rating s|
|00003280| 79 73 74 65 6d 20 61 6e | 64 20 43 2b 2b 20 63 6f |ystem an|d C++ co|
|00003290| 6d 70 69 6c 65 72 20 79 | 6f 75 20 61 72 65 20 75 |mpiler y|ou are u|
|000032a0| 73 69 6e 67 2e 0a 58 0a | 58 0a 58 20 41 43 4b 4e |sing..X.|X.X ACKN|
|000032b0| 4f 57 4c 45 44 47 45 4d | 45 4e 54 53 0a 58 20 3d |OWLEDGEM|ENTS.X =|
|000032c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0a |========|=======.|
|000032d0| 58 20 43 6d 64 4c 69 6e | 65 20 69 73 20 61 20 43 |X CmdLin|e is a C|
|000032e0| 2b 2b 20 72 65 77 72 69 | 74 65 20 6f 66 20 50 61 |++ rewri|te of Pa|
|000032f0| 72 73 65 41 72 67 73 2e | 20 20 54 68 65 20 61 75 |rseArgs.| The au|
|00003300| 74 68 6f 72 20 6f 66 20 | 74 68 69 73 20 73 6f 66 |thor of |this sof|
|00003310| 74 77 61 72 65 20 77 6f | 75 6c 64 0a 58 20 6c 69 |tware wo|uld.X li|
|00003320| 6b 65 20 74 6f 20 74 68 | 61 6e 6b 20 45 72 69 63 |ke to th|ank Eric|
|00003330| 20 41 6c 6c 6d 61 6e 20 | 61 6e 64 20 50 65 74 65 | Allman |and Pete|
|00003340| 72 20 64 61 20 53 69 6c | 76 61 20 66 6f 72 20 74 |r da Sil|va for t|
|00003350| 68 65 69 72 20 67 72 65 | 61 74 20 69 64 65 61 73 |heir gre|at ideas|
|00003360| 2e 0a 58 0a 58 0a 58 20 | 46 55 52 54 48 45 52 20 |..X.X.X |FURTHER |
|00003370| 49 4e 46 4f 52 4d 41 54 | 49 4f 4e 0a 58 20 3d 3d |INFORMAT|ION.X ==|
|00003380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003390| 3d 0a 58 20 46 6f 72 20 | 61 6e 20 69 6e 74 72 6f |=.X For |an intro|
|000033a0| 64 75 63 74 69 6f 6e 20 | 2d 2d 20 6c 6f 6f 6b 20 |duction |-- look |
|000033b0| 61 74 20 74 68 65 20 66 | 69 6c 65 20 22 4f 76 65 |at the f|ile "Ove|
|000033c0| 72 76 69 65 77 22 20 69 | 6e 20 74 68 65 20 64 69 |rview" i|n the di|
|000033d0| 73 74 72 69 62 75 74 69 | 6f 6e 21 0a 58 0a 58 20 |stributi|on!.X.X |
|000033e0| 54 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |The docu|mentatio|
|000033f0| 6e 20 69 73 20 69 6e 20 | 55 6e 69 78 20 6d 61 6e |n is in |Unix man|
|00003400| 70 61 67 65 20 66 6f 72 | 6d 61 74 20 28 74 72 6f |page for|mat (tro|
|00003410| 66 66 20 77 69 74 68 20 | 74 68 65 20 2d 6d 61 6e |ff with |the -man|
|00003420| 20 6d 61 63 72 6f 73 29 | 0a 58 20 61 6e 64 20 6d | macros)|.X and m|
|00003430| 61 79 20 62 65 20 66 6f | 75 6e 64 20 69 6e 20 74 |ay be fo|und in t|
|00003440| 68 65 20 22 64 6f 63 22 | 20 64 69 72 65 63 74 6f |he "doc"| directo|
|00003450| 72 79 20 62 75 74 20 79 | 6f 75 20 73 68 6f 75 6c |ry but y|ou shoul|
|00003460| 64 20 62 65 20 61 62 6c | 65 20 74 6f 20 66 69 6e |d be abl|e to fin|
|00003470| 64 0a 58 20 6f 75 74 20 | 71 75 69 74 65 20 61 20 |d.X out |quite a |
|00003480| 62 69 74 20 62 79 20 72 | 65 61 64 69 6e 67 20 74 |bit by r|eading t|
|00003490| 68 65 20 63 6f 6d 6d 65 | 6e 74 73 20 69 6e 20 74 |he comme|nts in t|
|000034a0| 68 65 20 73 6f 75 72 63 | 65 20 66 69 6c 65 73 20 |he sourc|e files |
|000034b0| 28 65 73 70 65 63 69 61 | 6c 6c 79 0a 58 20 69 6e |(especia|lly.X in|
|000034c0| 20 3c 63 6d 64 6c 69 6e | 65 2e 68 3e 20 61 6e 64 | <cmdlin|e.h> and|
|000034d0| 20 3c 63 6d 64 61 72 67 | 73 2e 68 3e 29 20 61 6e | <cmdarg|s.h>) an|
|000034e0| 64 20 62 79 20 6c 6f 6f | 6b 69 6e 67 20 61 74 20 |d by loo|king at |
|000034f0| 74 68 65 20 73 61 6d 70 | 6c 65 20 74 65 73 74 2d |the samp|le test-|
|00003500| 70 72 6f 67 72 61 6d 28 | 73 29 2e 0a 58 0a 58 0a |program(|s)..X.X.|
|00003510| 58 20 48 49 53 54 4f 52 | 59 0a 58 20 3d 3d 3d 3d |X HISTOR|Y.X ====|
|00003520| 3d 3d 3d 0a 58 20 4c 6f | 6f 6b 20 61 74 20 74 68 |===.X Lo|ok at th|
|00003530| 65 20 66 69 6c 65 20 73 | 72 63 2f 6c 69 62 2f 70 |e file s|rc/lib/p|
|00003540| 61 74 63 68 6c 65 76 65 | 6c 2e 63 20 74 6f 20 73 |atchleve|l.c to s|
|00003550| 65 65 20 77 68 61 74 20 | 76 65 72 73 69 6f 6e 20 |ee what |version |
|00003560| 6f 66 20 43 6d 64 4c 69 | 6e 65 20 79 6f 75 0a 58 |of CmdLi|ne you.X|
|00003570| 20 68 61 76 65 2e 20 20 | 41 6e 79 20 63 68 61 6e | have. |Any chan|
|00003580| 67 65 73 20 6d 61 64 65 | 20 74 6f 20 74 68 65 20 |ges made| to the |
|00003590| 43 6d 64 4c 69 6e 65 20 | 70 72 6f 64 75 63 74 20 |CmdLine |product |
|000035a0| 73 68 6f 75 6c 64 20 62 | 65 20 64 6f 63 75 6d 65 |should b|e docume|
|000035b0| 6e 74 65 64 20 68 65 72 | 65 3a 0a 58 0a 58 0a 58 |nted her|e:.X.X.X|
|000035c0| 20 30 37 2f 32 31 2f 39 | 32 09 09 42 72 61 64 20 | 07/21/9|2..Brad |
|000035d0| 41 70 70 6c 65 74 6f 6e | 09 09 3c 62 72 61 64 40 |Appleton|..<brad@|
|000035e0| 73 73 64 2e 63 73 64 2e | 68 61 72 72 69 73 2e 63 |ssd.csd.|harris.c|
|000035f0| 6f 6d 3e 0a 58 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |om>.X --|--------|
|00003600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003610| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003640| 2d 2d 2d 0a 58 20 46 69 | 72 73 74 20 72 65 6c 65 |---.X Fi|rst rele|
|00003650| 61 73 65 2e 0a 58 0a 45 | 4e 44 5f 4f 46 5f 46 49 |ase..X.E|ND_OF_FI|
|00003660| 4c 45 0a 69 66 20 74 65 | 73 74 20 36 30 33 30 20 |LE.if te|st 6030 |
|00003670| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 52 45 41 |-ne `wc |-c <'REA|
|00003680| 44 4d 45 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |DME'`; t|hen. |
|00003690| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 52 45 |echo sha|r: \"'RE|
|000036a0| 41 44 4d 45 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ADME'\" |unpacked|
|000036b0| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|000036c0| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 52 |!.fi.# e|nd of 'R|
|000036d0| 45 41 44 4d 45 27 0a 66 | 69 0a 69 66 20 74 65 73 |EADME'.f|i.if tes|
|000036e0| 74 20 21 20 2d 64 20 27 | 64 6f 63 27 20 3b 20 74 |t ! -d '|doc' ; t|
|000036f0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00003700| 72 3a 20 43 72 65 61 74 | 69 6e 67 20 64 69 72 65 |r: Creat|ing dire|
|00003710| 63 74 6f 72 79 20 5c 22 | 27 64 6f 63 27 5c 22 0a |ctory \"|'doc'\".|
|00003720| 20 20 20 20 6d 6b 64 69 | 72 20 27 64 6f 63 27 0a | mkdi|r 'doc'.|
|00003730| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 64 |fi.if te|st -f 'd|
|00003740| 6f 63 2f 4d 61 6b 65 66 | 69 6c 65 27 20 2d 61 20 |oc/Makef|ile' -a |
|00003750| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00003760| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00003770| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00003780| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00003790| 6c 65 20 5c 22 27 64 6f | 63 2f 4d 61 6b 65 66 69 |le \"'do|c/Makefi|
|000037a0| 6c 65 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |le'\".el|se.echo |
|000037b0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|000037c0| 20 5c 22 27 64 6f 63 2f | 4d 61 6b 65 66 69 6c 65 | \"'doc/|Makefile|
|000037d0| 27 5c 22 20 5c 28 32 39 | 30 32 20 63 68 61 72 61 |'\" \(29|02 chara|
|000037e0| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|000037f0| 58 2f 2f 22 20 3e 27 64 | 6f 63 2f 4d 61 6b 65 66 |X//" >'d|oc/Makef|
|00003800| 69 6c 65 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |ile' <<'|END_OF_F|
|00003810| 49 4c 45 27 0a 58 23 23 | 23 23 23 23 23 23 23 23 |ILE'.X##|########|
|00003820| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003830| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003840| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003850| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003860| 0a 58 23 23 20 5e 46 49 | 4c 45 3a 20 4d 61 6b 65 |.X## ^FI|LE: Make|
|00003870| 66 69 6c 65 20 2d 20 6d | 61 6b 65 20 66 69 6c 65 |file - m|ake file|
|00003880| 20 66 6f 72 20 74 68 65 | 20 64 6f 63 75 6d 65 6e | for the| documen|
|00003890| 74 61 74 69 6f 6e 20 66 | 6f 72 20 43 6d 64 4c 69 |tation f|or CmdLi|
|000038a0| 6e 65 20 70 72 6f 64 75 | 63 74 0a 58 23 23 0a 58 |ne produ|ct.X##.X|
|000038b0| 23 23 20 5e 44 45 53 43 | 52 49 50 54 49 4f 4e 3a |## ^DESC|RIPTION:|
|000038c0| 0a 58 23 23 20 20 20 20 | 54 68 69 73 20 69 73 20 |.X## |This is |
|000038d0| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 20 74 68 61 |the make|file tha|
|000038e0| 74 20 69 73 20 75 73 65 | 64 20 74 6f 20 62 75 69 |t is use|d to bui|
|000038f0| 6c 64 20 61 6e 64 20 69 | 6e 73 74 61 6c 6c 20 74 |ld and i|nstall t|
|00003900| 68 65 0a 58 23 23 20 20 | 20 20 64 6f 63 75 6d 65 |he.X## | docume|
|00003910| 6e 74 61 74 69 6f 6e 20 | 43 6d 64 4c 69 6e 65 20 |ntation |CmdLine |
|00003920| 70 72 6f 64 75 63 74 2e | 0a 58 23 23 0a 58 23 23 |product.|.X##.X##|
|00003930| 20 5e 48 49 53 54 4f 52 | 59 3a 0a 58 23 23 20 20 | ^HISTOR|Y:.X## |
|00003940| 20 20 30 34 2f 32 38 2f | 39 32 20 20 42 72 61 64 | 04/28/|92 Brad|
|00003950| 20 41 70 70 6c 65 74 6f | 6e 20 20 20 3c 62 72 61 | Appleto|n <bra|
|00003960| 64 40 73 73 64 2e 63 73 | 64 2e 68 61 72 72 69 73 |d@ssd.cs|d.harris|
|00003970| 2e 63 6f 6d 3e 20 20 20 | 43 72 65 61 74 65 64 0a |.com> |Created.|
|00003980| 58 23 23 23 5e 5e 23 23 | 23 23 23 23 23 23 23 23 |X###^^##|########|
|00003990| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000039a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000039b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000039c0| 23 23 23 23 23 23 23 23 | 23 23 23 0a 58 0a 58 69 |########|###.X.Xi|
|000039d0| 6e 63 6c 75 64 65 20 2e | 2e 2f 43 6f 6e 66 69 67 |nclude .|./Config|
|000039e0| 2e 6d 6b 0a 58 0a 58 23 | 23 23 0a 58 23 20 67 69 |.mk.X.X#|##.X# gi|
|000039f0| 76 65 20 61 20 75 73 61 | 67 65 20 6d 65 73 73 61 |ve a usa|ge messa|
|00003a00| 67 65 20 69 66 20 6e 6f | 20 74 61 72 67 65 74 20 |ge if no| target |
|00003a10| 69 73 20 67 69 76 65 6e | 0a 58 23 23 23 0a 58 75 |is given|.X###.Xu|
|00003a20| 73 61 67 65 3a 0a 58 09 | 40 65 63 68 6f 20 22 55 |sage:.X.|@echo "U|
|00003a30| 73 61 67 65 3a 20 6d 61 | 6b 65 20 3c 74 61 72 67 |sage: ma|ke <targ|
|00003a40| 65 74 3e 22 0a 58 09 40 | 65 63 68 6f 20 22 20 22 |et>".X.@|echo " "|
|00003a50| 0a 58 09 40 65 63 68 6f | 20 22 77 68 65 72 65 20 |.X.@echo| "where |
|00003a60| 3c 74 61 72 67 65 74 3e | 20 69 73 20 6f 6e 65 20 |<target>| is one |
|00003a70| 6f 66 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |of the f|ollowing|
|00003a80| 3a 20 22 0a 58 09 40 65 | 63 68 6f 20 22 20 22 0a |: ".X.@e|cho " ".|
|00003a90| 58 09 40 65 63 68 6f 20 | 22 20 20 20 69 6e 73 74 |X.@echo |" inst|
|00003aa0| 61 6c 6c 20 20 2d 2d 20 | 74 6f 20 69 6e 73 74 61 |all -- |to insta|
|00003ab0| 6c 6c 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 61 |ll the d|ocumenta|
|00003ac0| 74 69 6f 6e 22 0a 58 09 | 40 65 63 68 6f 20 22 20 |tion".X.|@echo " |
|00003ad0| 20 20 69 6e 73 74 61 6c | 6c 6d 61 6e 20 20 2d 2d | instal|lman --|
|00003ae0| 20 74 6f 20 69 6e 73 74 | 61 6c 6c 20 74 68 65 20 | to inst|all the |
|00003af0| 75 6e 70 61 63 6b 65 64 | 20 64 6f 63 75 6d 65 6e |unpacked| documen|
|00003b00| 74 61 74 69 6f 6e 22 0a | 58 09 40 65 63 68 6f 20 |tation".|X.@echo |
|00003b10| 22 20 20 20 69 6e 73 74 | 61 6c 6c 63 61 74 6d 61 |" inst|allcatma|
|00003b20| 6e 20 20 2d 2d 20 74 6f | 20 69 6e 73 74 61 6c 6c |n -- to| install|
|00003b30| 20 74 68 65 20 70 61 63 | 6b 65 64 20 64 6f 63 75 | the pac|ked docu|
|00003b40| 6d 65 6e 74 61 74 69 6f | 6e 22 0a 58 09 40 65 63 |mentatio|n".X.@ec|
|00003b50| 68 6f 20 22 20 20 20 70 | 72 69 6e 74 20 20 2d 2d |ho " p|rint --|
|00003b60| 20 74 6f 20 70 72 69 6e | 74 20 74 68 65 20 64 6f | to prin|t the do|
|00003b70| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 22 0a 58 09 40 |cumentat|ion".X.@|
|00003b80| 65 63 68 6f 20 22 20 20 | 20 76 69 65 77 20 20 20 |echo " | view |
|00003b90| 2d 2d 20 74 6f 20 76 69 | 65 77 20 74 68 65 20 64 |-- to vi|ew the d|
|00003ba0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 22 0a 58 09 |ocumenta|tion".X.|
|00003bb0| 40 65 63 68 6f 20 22 20 | 20 20 74 65 78 74 20 20 |@echo " | text |
|00003bc0| 20 2d 2d 20 74 6f 20 62 | 75 69 6c 64 20 74 65 78 | -- to b|uild tex|
|00003bd0| 74 20 63 6f 70 69 65 73 | 20 6f 66 20 74 68 65 20 |t copies| of the |
|00003be0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 22 0a 58 |document|ation".X|
|00003bf0| 09 40 65 63 68 6f 20 22 | 20 20 20 73 70 65 6c 6c |.@echo "| spell|
|00003c00| 20 20 2d 2d 20 74 6f 20 | 73 70 65 6c 6c 20 63 68 | -- to |spell ch|
|00003c10| 65 63 6b 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |eck the |document|
|00003c20| 61 74 69 6f 6e 22 0a 58 | 09 40 65 63 68 6f 20 22 |ation".X|.@echo "|
|00003c30| 20 20 20 63 6c 65 61 6e | 20 20 2d 2d 20 74 6f 20 | clean| -- to |
|00003c40| 72 65 6d 6f 76 65 20 61 | 6c 6c 20 69 6e 74 65 72 |remove a|ll inter|
|00003c50| 6d 65 64 69 61 74 65 20 | 66 69 6c 65 73 22 0a 58 |mediate |files".X|
|00003c60| 09 40 65 63 68 6f 20 22 | 20 20 20 63 6c 6f 62 62 |.@echo "| clobb|
|00003c70| 65 72 20 20 2d 2d 20 74 | 6f 20 72 65 6d 6f 76 65 |er -- t|o remove|
|00003c80| 20 61 6c 6c 20 63 72 65 | 61 74 65 64 20 66 69 6c | all cre|ated fil|
|00003c90| 65 73 22 0a 58 0a 58 23 | 23 23 0a 58 23 20 66 69 |es".X.X#|##.X# fi|
|00003ca0| 6c 65 73 20 75 73 65 64 | 0a 58 23 23 23 0a 58 49 |les used|.X###.XI|
|00003cb0| 4e 43 4c 55 44 45 53 3d | 62 75 67 73 2e 6d 61 6e |NCLUDES=|bugs.man|
|00003cc0| 20 63 61 76 65 61 74 73 | 2e 6d 61 6e 20 65 6e 76 | caveats|.man env|
|00003cd0| 69 72 6f 6e 2e 6d 61 6e | 20 65 78 61 6d 70 6c 65 |iron.man| example|
|00003ce0| 2e 6d 61 6e 20 66 69 6c | 65 73 2e 6d 61 6e 20 5c |.man fil|es.man \|
|00003cf0| 0a 58 20 20 20 20 20 20 | 20 20 20 6d 61 63 72 6f |.X | macro|
|00003d00| 73 2e 6d 61 6e 20 70 61 | 72 73 69 6e 67 2e 6d 61 |s.man pa|rsing.ma|
|00003d10| 6e 0a 58 44 4f 43 53 3d | 63 6d 64 70 61 72 73 65 |n.XDOCS=|cmdparse|
|00003d20| 2e 6d 61 6e 31 20 63 6d | 64 6c 69 6e 65 2e 6d 61 |.man1 cm|dline.ma|
|00003d30| 6e 33 20 63 6d 64 61 72 | 67 73 2e 6d 61 6e 33 0a |n3 cmdar|gs.man3.|
|00003d40| 58 4d 41 4e 33 46 49 4c | 45 53 3d 63 6d 64 6c 69 |XMAN3FIL|ES=cmdli|
|00003d50| 6e 65 2e 33 20 63 6d 64 | 61 72 67 73 2e 33 0a 58 |ne.3 cmd|args.3.X|
|00003d60| 4d 41 4e 31 46 49 4c 45 | 53 3d 63 6d 64 70 61 72 |MAN1FILE|S=cmdpar|
|00003d70| 73 65 2e 31 0a 58 43 41 | 54 4d 41 4e 33 46 49 4c |se.1.XCA|TMAN3FIL|
|00003d80| 45 53 3d 63 6d 64 6c 69 | 6e 65 2e 33 2e 7a 20 63 |ES=cmdli|ne.3.z c|
|00003d90| 6d 64 61 72 67 73 2e 33 | 2e 7a 0a 58 43 41 54 4d |mdargs.3|.z.XCATM|
|00003da0| 41 4e 31 46 49 4c 45 53 | 3d 63 6d 64 70 61 72 73 |AN1FILES|=cmdpars|
|00003db0| 65 2e 31 2e 7a 0a 58 0a | 58 23 23 23 0a 58 23 20 |e.1.z.X.|X###.X# |
|00003dc0| 74 61 72 67 65 74 20 64 | 65 70 65 6e 64 65 6e 63 |target d|ependenc|
|00003dd0| 69 65 73 0a 58 23 23 23 | 0a 58 2e 53 55 46 46 49 |ies.X###|.X.SUFFI|
|00003de0| 58 45 53 3a 20 2e 6d 61 | 6e 31 20 2e 6d 61 6e 33 |XES: .ma|n1 .man3|
|00003df0| 20 2e 31 20 2e 33 0a 58 | 0a 58 2e 6d 61 6e 31 2e | .1 .3.X|.X.man1.|
|00003e00| 31 3a 0a 58 09 24 28 53 | 4f 45 4c 49 4d 29 20 24 |1:.X.$(S|OELIM) $|
|00003e10| 3c 20 3e 24 2a 2e 31 0a | 58 09 24 28 4d 41 4e 54 |< >$*.1.|X.$(MANT|
|00003e20| 4f 43 41 54 4d 41 4e 29 | 20 24 2a 2e 31 0a 58 0a |OCATMAN)| $*.1.X.|
|00003e30| 58 2e 6d 61 6e 33 2e 33 | 3a 0a 58 09 24 28 53 4f |X.man3.3|:.X.$(SO|
|00003e40| 45 4c 49 4d 29 20 24 3c | 20 3e 24 2a 2e 33 0a 58 |ELIM) $<| >$*.3.X|
|00003e50| 09 24 28 4d 41 4e 54 4f | 43 41 54 4d 41 4e 29 20 |.$(MANTO|CATMAN) |
|00003e60| 24 2a 2e 33 0a 58 0a 58 | 23 23 23 0a 58 23 20 69 |$*.3.X.X|###.X# i|
|00003e70| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 64 65 70 65 |nstallat|ion depe|
|00003e80| 6e 64 65 6e 63 69 65 73 | 0a 58 23 23 23 0a 58 61 |ndencies|.X###.Xa|
|00003e90| 6c 6c 3a 0a 58 0a 58 69 | 6e 73 74 61 6c 6c 3a 20 |ll:.X.Xi|nstall: |
|00003ea0| 69 6e 73 74 61 6c 6c 6d | 61 6e 20 69 6e 73 74 61 |installm|an insta|
|00003eb0| 6c 6c 63 61 74 6d 61 6e | 0a 58 0a 58 69 6e 73 74 |llcatman|.X.Xinst|
|00003ec0| 61 6c 6c 6d 61 6e 3a 20 | 69 6e 73 74 61 6c 6c 6d |allman: |installm|
|00003ed0| 61 6e 31 20 69 6e 73 74 | 61 6c 6c 6d 61 6e 33 0a |an1 inst|allman3.|
|00003ee0| 58 0a 58 69 6e 73 74 61 | 6c 6c 63 61 74 6d 61 6e |X.Xinsta|llcatman|
|00003ef0| 3a 20 69 6e 73 74 61 6c | 6c 63 61 74 6d 61 6e 31 |: instal|lcatman1|
|00003f00| 20 69 6e 73 74 61 6c 6c | 63 61 74 6d 61 6e 33 0a | install|catman3.|
|00003f10| 58 0a 58 69 6e 73 74 61 | 6c 6c 6d 61 6e 31 3a 20 |X.Xinsta|llman1: |
|00003f20| 24 28 4d 41 4e 31 46 49 | 4c 45 53 29 0a 58 09 28 |$(MAN1FI|LES).X.(|
|00003f30| 20 24 28 43 48 44 49 52 | 29 20 24 28 4d 41 4e 44 | $(CHDIR|) $(MAND|
|00003f40| 49 52 29 24 28 4d 41 4e | 31 44 49 52 29 20 3b 20 |IR)$(MAN|1DIR) ; |
|00003f50| 24 28 52 4d 29 20 24 28 | 4d 41 4e 31 46 49 4c 45 |$(RM) $(|MAN1FILE|
|00003f60| 53 29 20 29 0a 58 09 24 | 28 43 50 29 20 24 28 4d |S) ).X.$|(CP) $(M|
|00003f70| 41 4e 31 46 49 4c 45 53 | 29 20 24 28 4d 41 4e 44 |AN1FILES|) $(MAND|
|00003f80| 49 52 29 24 28 4d 41 4e | 31 44 49 52 29 0a 58 0a |IR)$(MAN|1DIR).X.|
|00003f90| 58 69 6e 73 74 61 6c 6c | 63 61 74 6d 61 6e 31 3a |Xinstall|catman1:|
|00003fa0| 20 24 28 43 41 54 4d 41 | 4e 31 46 49 4c 45 53 29 | $(CATMA|N1FILES)|
|00003fb0| 0a 58 09 28 20 24 28 43 | 48 44 49 52 29 20 24 28 |.X.( $(C|HDIR) $(|
|00003fc0| 43 41 54 4d 41 4e 44 49 | 52 29 24 28 4d 41 4e 31 |CATMANDI|R)$(MAN1|
|00003fd0| 44 49 52 29 20 3b 20 24 | 28 52 4d 29 20 24 28 43 |DIR) ; $|(RM) $(C|
|00003fe0| 41 54 4d 41 4e 31 46 49 | 4c 45 53 29 20 29 0a 58 |ATMAN1FI|LES) ).X|
|00003ff0| 09 24 28 43 50 29 20 24 | 28 43 41 54 4d 41 4e 31 |.$(CP) $|(CATMAN1|
|00004000| 46 49 4c 45 53 29 20 24 | 28 43 41 54 4d 41 4e 44 |FILES) $|(CATMAND|
|00004010| 49 52 29 24 28 4d 41 4e | 31 44 49 52 29 0a 58 0a |IR)$(MAN|1DIR).X.|
|00004020| 58 69 6e 73 74 61 6c 6c | 6d 61 6e 33 3a 20 24 28 |Xinstall|man3: $(|
|00004030| 4d 41 4e 33 46 49 4c 45 | 53 29 0a 58 09 28 20 24 |MAN3FILE|S).X.( $|
|00004040| 28 43 48 44 49 52 29 20 | 24 28 4d 41 4e 44 49 52 |(CHDIR) |$(MANDIR|
|00004050| 29 24 28 4d 41 4e 33 44 | 49 52 29 20 3b 20 24 28 |)$(MAN3D|IR) ; $(|
|00004060| 52 4d 29 20 24 28 4d 41 | 4e 33 46 49 4c 45 53 29 |RM) $(MA|N3FILES)|
|00004070| 20 29 0a 58 09 24 28 43 | 50 29 20 24 28 4d 41 4e | ).X.$(C|P) $(MAN|
|00004080| 33 46 49 4c 45 53 29 20 | 24 28 4d 41 4e 44 49 52 |3FILES) |$(MANDIR|
|00004090| 29 24 28 4d 41 4e 33 44 | 49 52 29 0a 58 0a 58 69 |)$(MAN3D|IR).X.Xi|
|000040a0| 6e 73 74 61 6c 6c 63 61 | 74 6d 61 6e 33 3a 20 24 |nstallca|tman3: $|
|000040b0| 28 43 41 54 4d 41 4e 33 | 46 49 4c 45 53 29 0a 58 |(CATMAN3|FILES).X|
|000040c0| 09 28 20 24 28 43 48 44 | 49 52 29 20 24 28 43 41 |.( $(CHD|IR) $(CA|
|000040d0| 54 4d 41 4e 44 49 52 29 | 24 28 4d 41 4e 33 44 49 |TMANDIR)|$(MAN3DI|
|000040e0| 52 29 20 3b 20 24 28 52 | 4d 29 20 24 28 43 41 54 |R) ; $(R|M) $(CAT|
|000040f0| 4d 41 4e 33 46 49 4c 45 | 53 29 20 29 0a 58 09 24 |MAN3FILE|S) ).X.$|
|00004100| 28 43 50 29 20 24 28 43 | 41 54 4d 41 4e 33 46 49 |(CP) $(C|ATMAN3FI|
|00004110| 4c 45 53 29 20 24 28 43 | 41 54 4d 41 4e 44 49 52 |LES) $(C|ATMANDIR|
|00004120| 29 24 28 4d 41 4e 33 44 | 49 52 29 0a 58 0a 58 23 |)$(MAN3D|IR).X.X#|
|00004130| 23 23 0a 58 23 20 6d 61 | 69 6e 74 65 6e 61 6e 63 |##.X# ma|intenanc|
|00004140| 65 20 64 65 70 65 6e 64 | 65 6e 63 69 65 73 0a 58 |e depend|encies.X|
|00004150| 23 23 23 0a 58 63 6c 65 | 61 6e 3a 0a 58 09 24 28 |###.Xcle|an:.X.$(|
|00004160| 52 4d 29 20 24 28 4d 41 | 4e 31 46 49 4c 45 53 29 |RM) $(MA|N1FILES)|
|00004170| 20 24 28 4d 41 4e 33 46 | 49 4c 45 53 29 20 24 28 | $(MAN3F|ILES) $(|
|00004180| 43 41 54 4d 41 4e 31 46 | 49 4c 45 53 29 20 24 28 |CATMAN1F|ILES) $(|
|00004190| 43 41 54 4d 41 4e 33 46 | 49 4c 45 53 29 20 43 6d |CATMAN3F|ILES) Cm|
|000041a0| 64 4c 69 6e 65 2e 33 2e | 7a 0a 58 0a 58 63 6c 6f |dLine.3.|z.X.Xclo|
|000041b0| 62 62 65 72 3a 20 63 6c | 65 61 6e 0a 58 09 24 28 |bber: cl|ean.X.$(|
|000041c0| 52 4d 29 20 2a 2e 74 78 | 74 0a 58 0a 58 73 70 65 |RM) *.tx|t.X.Xspe|
|000041d0| 6c 6c 3a 20 24 28 44 4f | 43 53 29 20 24 28 49 4e |ll: $(DO|CS) $(IN|
|000041e0| 43 4c 55 44 45 53 29 0a | 58 09 24 28 53 50 45 4c |CLUDES).|X.$(SPEL|
|000041f0| 4c 29 20 24 28 44 4f 43 | 53 29 20 24 28 49 4e 43 |L) $(DOC|S) $(INC|
|00004200| 4c 55 44 45 53 29 0a 58 | 0a 58 70 72 69 6e 74 3a |LUDES).X|.Xprint:|
|00004210| 20 24 28 4d 41 4e 46 49 | 4c 45 53 29 0a 58 09 24 | $(MANFI|LES).X.$|
|00004220| 28 54 52 4f 46 46 29 20 | 24 28 54 52 46 4c 41 47 |(TROFF) |$(TRFLAG|
|00004230| 53 29 20 24 28 44 4f 43 | 53 29 0a 58 0a 58 74 65 |S) $(DOC|S).X.Xte|
|00004240| 78 74 3a 20 61 73 63 69 | 69 0a 58 74 78 74 3a 20 |xt: asci|i.Xtxt: |
|00004250| 61 73 63 69 69 0a 58 61 | 73 63 69 69 3a 0a 58 09 |ascii.Xa|scii:.X.|
|00004260| 24 28 4e 52 4f 46 46 29 | 20 24 28 4e 52 46 4c 41 |$(NROFF)| $(NRFLA|
|00004270| 47 53 29 20 63 6d 64 70 | 61 72 73 65 2e 6d 61 6e |GS) cmdp|arse.man|
|00004280| 31 20 7c 20 24 28 43 4f | 4c 29 20 3e 20 63 6d 64 |1 | $(CO|L) > cmd|
|00004290| 70 61 72 73 65 31 2e 74 | 78 74 0a 58 09 24 28 4e |parse1.t|xt.X.$(N|
|000042a0| 52 4f 46 46 29 20 24 28 | 4e 52 46 4c 41 47 53 29 |ROFF) $(|NRFLAGS)|
|000042b0| 20 63 6d 64 6c 69 6e 65 | 2e 6d 61 6e 33 20 20 7c | cmdline|.man3 ||
|000042c0| 20 24 28 43 4f 4c 29 20 | 3e 20 63 6d 64 6c 69 6e | $(COL) |> cmdlin|
|000042d0| 65 33 2e 74 78 74 0a 58 | 09 24 28 4e 52 4f 46 46 |e3.txt.X|.$(NROFF|
|000042e0| 29 20 24 28 4e 52 46 4c | 41 47 53 29 20 63 6d 64 |) $(NRFL|AGS) cmd|
|000042f0| 61 72 67 73 2e 6d 61 6e | 33 20 20 7c 20 24 28 43 |args.man|3 | $(C|
|00004300| 4f 4c 29 20 3e 20 63 6d | 64 61 72 67 73 33 2e 74 |OL) > cm|dargs3.t|
|00004310| 78 74 0a 58 0a 58 76 69 | 65 77 3a 20 24 28 4d 41 |xt.X.Xvi|ew: $(MA|
|00004320| 4e 46 49 4c 45 53 29 0a | 58 09 24 28 4e 52 4f 46 |NFILES).|X.$(NROF|
|00004330| 46 29 20 24 28 4e 52 46 | 4c 41 47 53 29 20 24 28 |F) $(NRF|LAGS) $(|
|00004340| 44 4f 43 53 29 0a 58 0a | 58 23 23 0a 58 23 20 69 |DOCS).X.|X##.X# i|
|00004350| 6e 63 6c 75 64 65 20 64 | 65 70 65 6e 64 65 6e 63 |nclude d|ependenc|
|00004360| 69 65 73 0a 58 23 23 0a | 58 63 6d 64 70 61 72 73 |ies.X##.|Xcmdpars|
|00004370| 65 2e 31 3a 20 63 6d 64 | 70 61 72 73 65 2e 6d 61 |e.1: cmd|parse.ma|
|00004380| 6e 31 20 24 28 49 4e 43 | 4c 55 44 45 53 29 0a 58 |n1 $(INC|LUDES).X|
|00004390| 0a 58 63 6d 64 6c 69 6e | 65 2e 33 3a 20 63 6d 64 |.Xcmdlin|e.3: cmd|
|000043a0| 6c 69 6e 65 2e 6d 61 6e | 33 20 24 28 49 4e 43 4c |line.man|3 $(INCL|
|000043b0| 55 44 45 53 29 0a 58 0a | 58 63 6d 64 61 72 67 73 |UDES).X.|Xcmdargs|
|000043c0| 2e 33 3a 20 63 6d 64 61 | 72 67 73 2e 6d 61 6e 33 |.3: cmda|rgs.man3|
|000043d0| 20 24 28 49 4e 43 4c 55 | 44 45 53 29 0a 58 0a 45 | $(INCLU|DES).X.E|
|000043e0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|000043f0| 73 74 20 32 39 30 32 20 | 2d 6e 65 20 60 77 63 20 |st 2902 |-ne `wc |
|00004400| 2d 63 20 3c 27 64 6f 63 | 2f 4d 61 6b 65 66 69 6c |-c <'doc|/Makefil|
|00004410| 65 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |e'`; the|n. ec|
|00004420| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 64 6f 63 2f |ho shar:| \"'doc/|
|00004430| 4d 61 6b 65 66 69 6c 65 | 27 5c 22 20 75 6e 70 61 |Makefile|'\" unpa|
|00004440| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00004450| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00004460| 66 20 27 64 6f 63 2f 4d | 61 6b 65 66 69 6c 65 27 |f 'doc/M|akefile'|
|00004470| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00004480| 64 6f 63 2f 62 75 67 73 | 2e 6d 61 6e 27 20 2d 61 |doc/bugs|.man' -a|
|00004490| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|000044a0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|000044b0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|000044c0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|000044d0| 69 6c 65 20 5c 22 27 64 | 6f 63 2f 62 75 67 73 2e |ile \"'d|oc/bugs.|
|000044e0| 6d 61 6e 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |man'\".e|lse.echo|
|000044f0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00004500| 67 20 5c 22 27 64 6f 63 | 2f 62 75 67 73 2e 6d 61 |g \"'doc|/bugs.ma|
|00004510| 6e 27 5c 22 20 5c 28 36 | 37 37 20 63 68 61 72 61 |n'\" \(6|77 chara|
|00004520| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00004530| 58 2f 2f 22 20 3e 27 64 | 6f 63 2f 62 75 67 73 2e |X//" >'d|oc/bugs.|
|00004540| 6d 61 6e 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |man' <<'|END_OF_F|
|00004550| 49 4c 45 27 0a 58 2e 53 | 48 20 42 55 47 53 0a 58 |ILE'.X.S|H BUGS.X|
|00004560| 57 68 65 6e 20 61 20 6e | 6f 6e 2d 6d 75 6c 74 69 |When a n|on-multi|
|00004570| 76 61 6c 75 65 64 20 61 | 72 67 75 6d 65 6e 74 20 |valued a|rgument |
|00004580| 61 70 70 65 61 72 73 20 | 6d 6f 72 65 20 74 68 61 |appears |more tha|
|00004590| 6e 20 6f 6e 63 65 20 6f | 6e 20 74 68 65 20 63 6f |n once o|n the co|
|000045a0| 6d 6d 61 6e 64 2d 6c 69 | 6e 65 0a 58 74 68 65 6e |mmand-li|ne.Xthen|
|000045b0| 20 6f 6e 6c 79 20 74 68 | 65 20 6c 61 73 74 20 76 | only th|e last v|
|000045c0| 61 6c 75 65 20 73 75 70 | 70 6c 69 65 64 20 69 73 |alue sup|plied is|
|000045d0| 20 75 73 65 64 2e 20 41 | 20 70 72 6f 62 6c 65 6d | used. A| problem|
|000045e0| 20 6f 63 63 75 72 73 20 | 68 6f 77 65 76 65 72 20 | occurs |however |
|000045f0| 69 6e 20 74 68 65 0a 58 | 66 6f 6c 6c 6f 77 69 6e |in the.X|followin|
|00004600| 67 20 73 63 65 6e 61 72 | 69 6f 3a 20 73 75 70 70 |g scenar|io: supp|
|00004610| 6f 73 65 20 60 5c 66 42 | 5c 2d 73 5c 66 50 27 20 |ose `\fB|\-s\fP' |
|00004620| 69 73 20 61 6e 20 6f 70 | 74 69 6f 6e 20 74 68 61 |is an op|tion tha|
|00004630| 74 20 74 61 6b 65 73 20 | 61 6e 20 6f 70 74 69 6f |t takes |an optio|
|00004640| 6e 61 6c 0a 58 73 74 72 | 69 6e 67 20 61 72 67 75 |nal.Xstr|ing argu|
|00004650| 6d 65 6e 74 20 28 61 6e | 64 20 73 75 70 70 6f 73 |ment (an|d suppos|
|00004660| 65 20 60 5c 66 42 5c 2d | 78 5c 66 50 27 20 69 73 |e `\fB\-|x\fP' is|
|00004670| 20 73 6f 6d 65 20 62 6f | 6f 6c 65 61 6e 20 66 6c | some bo|olean fl|
|00004680| 61 67 29 2e 20 4e 6f 77 | 2c 20 69 66 20 74 68 65 |ag). Now|, if the|
|00004690| 0a 58 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 6f 6d 6d |.Xfollow|ing comm|
|000046a0| 61 6e 64 2d 6c 69 6e 65 | 20 69 73 20 69 73 73 75 |and-line| is issu|
|000046b0| 65 64 3a 0a 58 0a 58 2e | 58 53 0a 58 63 6f 6d 6d |ed:.X.X.|XS.Xcomm|
|000046c0| 61 6e 64 20 20 5c 2d 73 | 20 73 74 72 69 6e 67 20 |and \-s| string |
|000046d0| 20 5c 2d 78 20 20 5c 2d | 73 0a 58 2e 58 45 0a 58 | \-x \-|s.X.XE.X|
|000046e0| 0a 58 74 68 65 6e 2c 20 | 65 76 65 6e 20 74 68 6f |.Xthen, |even tho|
|000046f0| 75 67 68 20 69 74 20 6d | 61 79 20 61 70 70 65 61 |ugh it m|ay appea|
|00004700| 72 20 61 73 20 69 66 20 | 74 68 65 20 76 61 6c 75 |r as if |the valu|
|00004710| 65 20 75 73 65 64 20 77 | 69 6c 6c 20 70 72 6f 70 |e used w|ill prop|
|00004720| 65 72 6c 79 20 63 6f 72 | 72 65 73 70 6f 6e 64 0a |erly cor|respond.|
|00004730| 58 74 6f 20 74 68 65 20 | 73 65 63 6f 6e 64 20 69 |Xto the |second i|
|00004740| 6e 73 74 61 6e 63 65 20 | 6f 66 20 74 68 65 20 60 |nstance |of the `|
|00004750| 5c 66 42 5c 2d 73 5c 66 | 50 27 20 6f 70 74 69 6f |\fB\-s\f|P' optio|
|00004760| 6e 2c 20 74 68 65 20 76 | 61 6c 75 65 20 61 73 73 |n, the v|alue ass|
|00004770| 6f 63 69 61 74 65 64 20 | 77 69 74 68 0a 58 74 68 |ociated |with.Xth|
|00004780| 65 20 6f 70 74 69 6f 6e | 20 77 69 6c 6c 20 62 65 |e option| will be|
|00004790| 20 60 60 5c 66 49 73 74 | 72 69 6e 67 5c 66 50 27 | ``\fIst|ring\fP'|
|000047a0| 27 20 28 62 65 63 61 75 | 73 65 20 74 68 65 20 66 |' (becau|se the f|
|000047b0| 69 72 73 74 20 69 6e 73 | 74 61 6e 63 65 20 6f 76 |irst ins|tance ov|
|000047c0| 65 72 77 72 6f 74 65 0a | 58 74 68 65 20 64 65 66 |erwrote.|Xthe def|
|000047d0| 61 75 6c 74 20 61 6e 64 | 20 74 68 65 20 73 65 63 |ault and| the sec|
|000047e0| 6f 6e 64 20 69 6e 73 74 | 61 6e 63 65 20 6c 65 66 |ond inst|ance lef|
|000047f0| 74 20 74 68 65 20 76 61 | 6c 75 65 20 75 6e 74 6f |t the va|lue unto|
|00004800| 75 63 68 65 64 29 2e 0a | 58 0a 45 4e 44 5f 4f 46 |uched)..|X.END_OF|
|00004810| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 36 37 |_FILE.if| test 67|
|00004820| 37 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 64 |7 -ne `w|c -c <'d|
|00004830| 6f 63 2f 62 75 67 73 2e | 6d 61 6e 27 60 3b 20 74 |oc/bugs.|man'`; t|
|00004840| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00004850| 72 3a 20 5c 22 27 64 6f | 63 2f 62 75 67 73 2e 6d |r: \"'do|c/bugs.m|
|00004860| 61 6e 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |an'\" un|packed w|
|00004870| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00004880| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 64 6f 63 |fi.# end| of 'doc|
|00004890| 2f 62 75 67 73 2e 6d 61 | 6e 27 0a 66 69 0a 69 66 |/bugs.ma|n'.fi.if|
|000048a0| 20 74 65 73 74 20 2d 66 | 20 27 64 6f 63 2f 63 61 | test -f| 'doc/ca|
|000048b0| 76 65 61 74 73 2e 6d 61 | 6e 27 20 2d 61 20 22 24 |veats.ma|n' -a "$|
|000048c0| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|000048d0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|000048e0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|000048f0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00004900| 20 5c 22 27 64 6f 63 2f | 63 61 76 65 61 74 73 2e | \"'doc/|caveats.|
|00004910| 6d 61 6e 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |man'\".e|lse.echo|
|00004920| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00004930| 67 20 5c 22 27 64 6f 63 | 2f 63 61 76 65 61 74 73 |g \"'doc|/caveats|
|00004940| 2e 6d 61 6e 27 5c 22 20 | 5c 28 31 32 39 32 20 63 |.man'\" |\(1292 c|
|00004950| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00004960| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 64 6f 63 2f 63 |"s/^X//"| >'doc/c|
|00004970| 61 76 65 61 74 73 2e 6d | 61 6e 27 20 3c 3c 27 45 |aveats.m|an' <<'E|
|00004980| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 2e 53 48 |ND_OF_FI|LE'.X.SH|
|00004990| 20 43 41 56 45 41 54 53 | 0a 58 57 68 65 6e 20 61 | CAVEATS|.XWhen a|
|000049a0| 6e 20 61 72 67 75 6d 65 | 6e 74 20 74 61 6b 65 73 |n argume|nt takes|
|000049b0| 20 61 20 72 65 71 75 69 | 72 65 64 20 76 61 6c 75 | a requi|red valu|
|000049c0| 65 20 61 6e 64 20 74 68 | 65 20 76 61 6c 75 65 20 |e and th|e value |
|000049d0| 69 73 20 69 6e 20 61 20 | 73 65 70 61 72 61 74 65 |is in a |separate|
|000049e0| 0a 58 74 6f 6b 65 6e 20 | 66 72 6f 6d 20 74 68 65 |.Xtoken |from the|
|000049f0| 20 61 72 67 75 6d 65 6e | 74 20 28 61 73 20 69 6e | argumen|t (as in|
|00004a00| 20 22 5c 66 42 5c 2d 63 | 5c 20 5c 20 5c 66 49 76 | "\fB\-c|\ \ \fIv|
|00004a10| 61 6c 75 65 5c 66 52 22 | 29 20 74 68 65 6e 20 74 |alue\fR"|) then t|
|00004a20| 68 65 20 6e 65 78 74 0a | 58 74 6f 6b 65 6e 20 6f |he next.|Xtoken o|
|00004a30| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 2d 6c 69 |n the co|mmand-li|
|00004a40| 6e 65 20 69 73 20 61 73 | 73 75 6d 65 64 20 74 6f |ne is as|sumed to|
|00004a50| 20 62 65 20 74 68 65 20 | 76 61 6c 75 65 20 66 6f | be the |value fo|
|00004a60| 72 20 74 68 61 74 20 61 | 72 67 75 6d 65 6e 74 0a |r that a|rgument.|
|00004a70| 58 28 65 76 65 6e 20 69 | 66 20 74 68 65 20 74 6f |X(even i|f the to|
|00004a80| 6b 65 6e 20 5c 66 49 6c | 6f 6f 6b 73 5c 66 50 20 |ken \fIl|ooks\fP |
|00004a90| 6c 69 6b 65 20 61 6e 20 | 6f 70 74 69 6f 6e 20 62 |like an |option b|
|00004aa0| 65 63 61 75 73 65 20 69 | 74 73 20 73 74 61 72 74 |ecause i|ts start|
|00004ab0| 73 20 77 69 74 68 0a 58 | 61 20 60 5c 2d 27 20 63 |s with.X|a `\-' c|
|00004ac0| 68 61 72 61 63 74 65 72 | 29 2e 0a 58 0a 58 49 66 |haracter|)..X.XIf|
|00004ad0| 20 68 6f 77 65 76 65 72 | 2c 20 61 6e 20 61 72 67 | however|, an arg|
|00004ae0| 75 6d 65 6e 74 20 74 61 | 6b 65 73 20 61 6e 20 5c |ument ta|kes an \|
|00004af0| 66 49 6f 70 74 69 6f 6e | 61 6c 5c 66 50 20 76 61 |fIoption|al\fP va|
|00004b00| 6c 75 65 20 61 6e 64 20 | 74 68 65 20 76 61 6c 75 |lue and |the valu|
|00004b10| 65 20 69 73 0a 58 69 6e | 20 61 20 73 65 70 61 72 |e is.Xin| a separ|
|00004b20| 61 74 65 20 74 6f 6b 65 | 6e 20 66 72 6f 6d 20 74 |ate toke|n from t|
|00004b30| 68 65 20 61 72 67 75 6d | 65 6e 74 2c 20 74 68 65 |he argum|ent, the|
|00004b40| 20 6e 65 78 74 20 74 6f | 6b 65 6e 20 6f 6e 20 74 | next to|ken on t|
|00004b50| 68 65 20 63 6f 6d 6d 61 | 6e 64 2d 6c 69 6e 65 0a |he comma|nd-line.|
|00004b60| 58 69 73 20 61 73 73 75 | 6d 65 64 20 74 6f 20 62 |Xis assu|med to b|
|00004b70| 65 20 74 68 65 20 76 61 | 6c 75 65 20 66 6f 72 20 |e the va|lue for |
|00004b80| 74 68 61 74 20 61 72 67 | 75 6d 65 6e 74 20 5c 66 |that arg|ument \f|
|00004b90| 49 6f 6e 6c 79 20 69 66 | 20 74 68 65 20 6e 65 78 |Ionly if| the nex|
|00004ba0| 74 20 74 6f 6b 65 6e 0a | 58 64 6f 65 73 20 5c 73 |t token.|Xdoes \s|
|00004bb0| 2d 31 4e 4f 54 5c 73 2b | 31 20 6c 6f 6f 6b 20 6c |-1NOT\s+|1 look l|
|00004bc0| 69 6b 65 20 61 6e 20 6f | 70 74 69 6f 6e 5c 66 50 |ike an o|ption\fP|
|00004bd0| 2e 20 20 49 6e 20 6f 72 | 64 65 72 20 74 6f 20 73 |. In or|der to s|
|00004be0| 70 65 63 69 66 79 20 61 | 20 76 61 6c 75 65 0a 58 |pecify a| value.X|
|00004bf0| 74 68 61 74 20 6c 6f 6f | 6b 73 20 6c 69 6b 65 20 |that loo|ks like |
|00004c00| 61 6e 20 6f 70 74 69 6f | 6e 20 74 6f 20 61 6e 20 |an optio|n to an |
|00004c10| 61 72 67 75 6d 65 6e 74 | 20 74 68 61 74 20 74 61 |argument| that ta|
|00004c20| 6b 65 73 20 61 6e 20 6f | 70 74 69 6f 6e 61 6c 20 |kes an o|ptional |
|00004c30| 76 61 6c 75 65 2c 0a 58 | 69 74 20 69 73 20 72 65 |value,.X|it is re|
|00004c40| 63 6f 6d 6d 65 6e 64 65 | 64 20 74 68 61 74 20 74 |commende|d that t|
|00004c50| 68 65 20 76 61 6c 75 65 | 20 6f 63 63 75 72 20 69 |he value| occur i|
|00004c60| 6e 20 74 68 65 20 73 61 | 6d 65 20 74 6f 6b 65 6e |n the sa|me token|
|00004c70| 20 61 73 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 | as the |argument|
|00004c80| 0a 58 69 74 73 65 6c 66 | 20 28 61 73 20 69 6e 20 |.Xitself| (as in |
|00004c90| 22 5c 66 42 5c 2d 63 5c | 66 49 5c 2d 76 61 6c 75 |"\fB\-c\|fI\-valu|
|00004ca0| 65 5c 66 52 22 29 2e 0a | 58 0a 58 54 68 65 20 61 |e\fR")..|X.XThe a|
|00004cb0| 62 6f 76 65 20 61 6c 73 | 6f 20 61 70 70 6c 69 65 |bove als|o applie|
|00004cc0| 73 20 74 6f 20 6e 6f 6e | 2d 70 6f 73 69 74 69 6f |s to non|-positio|
|00004cd0| 6e 61 6c 20 6c 69 73 74 | 73 2e 20 20 41 20 6e 6f |nal list|s. A no|
|00004ce0| 6e 2d 70 6f 73 69 74 69 | 6f 6e 61 6c 20 6c 69 73 |n-positi|onal lis|
|00004cf0| 74 0a 58 69 73 20 61 75 | 74 6f 6d 61 74 69 63 61 |t.Xis au|tomatica|
|00004d00| 6c 6c 79 20 74 65 72 6d | 69 6e 61 74 65 64 20 62 |lly term|inated b|
|00004d10| 79 20 61 6e 6f 74 68 65 | 72 20 6f 70 74 69 6f 6e |y anothe|r option|
|00004d20| 2c 20 6f 72 20 62 79 20 | 74 68 65 20 74 6f 6b 65 |, or by |the toke|
|00004d30| 6e 20 60 60 5c 2a 28 2d | 2d 27 27 2e 0a 58 49 74 |n ``\*(-|-''..XIt|
|00004d40| 20 69 73 20 61 20 22 66 | 65 61 74 75 72 65 22 20 | is a "f|eature" |
|00004d50| 6f 66 20 5c 2a 28 4e 4d | 20 74 68 61 74 20 74 68 |of \*(NM| that th|
|00004d60| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 61 72 65 20 |e follow|ing are |
|00004d70| 65 71 75 69 76 61 6c 65 | 6e 74 20 28 61 73 73 75 |equivale|nt (assu|
|00004d80| 6d 69 6e 67 0a 58 74 68 | 61 74 20 5c 66 42 5c 2d |ming.Xth|at \fB\-|
|00004d90| 6c 5c 66 50 20 74 61 6b | 65 73 20 61 20 6c 69 73 |l\fP tak|es a lis|
|00004da0| 74 20 6f 66 20 6f 6e 65 | 20 6f 72 20 6d 6f 72 65 |t of one| or more|
|00004db0| 20 76 61 6c 75 65 73 29 | 3a 0a 58 0a 58 2e 58 53 | values)|:.X.X.XS|
|00004dc0| 0a 58 63 6d 64 6e 61 6d | 65 20 5c 2d 6c 20 76 61 |.Xcmdnam|e \-l va|
|00004dd0| 6c 75 65 31 20 76 61 6c | 75 65 32 20 0a 58 63 6d |lue1 val|ue2 .Xcm|
|00004de0| 64 6e 61 6d 65 20 5c 2d | 6c 76 61 6c 75 65 31 20 |dname \-|lvalue1 |
|00004df0| 5c 2d 6c 76 61 6c 75 65 | 32 0a 58 2e 58 45 0a 58 |\-lvalue|2.X.XE.X|
|00004e00| 0a 58 48 65 6e 63 65 2c | 20 74 6f 20 73 75 70 70 |.XHence,| to supp|
|00004e10| 6c 79 20 76 61 6c 75 65 | 73 20 74 68 61 74 20 6c |ly value|s that l|
|00004e20| 6f 6f 6b 20 6c 69 6b 65 | 20 6f 70 74 69 6f 6e 73 |ook like| options|
|00004e30| 20 74 6f 20 6e 6f 6e 2d | 70 6f 73 69 74 69 6f 6e | to non-|position|
|00004e40| 61 6c 20 6c 69 73 74 0a | 58 61 72 67 75 6d 65 6e |al list.|Xargumen|
|00004e50| 74 73 2c 20 69 74 20 69 | 73 20 72 65 63 6f 6d 6d |ts, it i|s recomm|
|00004e60| 65 6e 64 65 64 20 74 68 | 61 74 20 74 68 65 20 66 |ended th|at the f|
|00004e70| 6f 6c 6c 6f 77 69 6e 67 | 20 73 79 6e 74 61 78 20 |ollowing| syntax |
|00004e80| 62 65 20 75 73 65 64 3a | 0a 58 0a 58 2e 58 53 0a |be used:|.X.X.XS.|
|00004e90| 58 63 6d 64 6e 61 6d 65 | 20 5c 2d 6c 5c 2d 76 61 |Xcmdname| \-l\-va|
|00004ea0| 6c 75 65 31 20 5c 2d 6c | 5c 2d 76 61 6c 75 65 32 |lue1 \-l|\-value2|
|00004eb0| 0a 58 2e 58 45 0a 58 0a | 45 4e 44 5f 4f 46 5f 46 |.X.XE.X.|END_OF_F|
|00004ec0| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 31 32 39 32 |ILE.if t|est 1292|
|00004ed0| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 64 6f | -ne `wc| -c <'do|
|00004ee0| 63 2f 63 61 76 65 61 74 | 73 2e 6d 61 6e 27 60 3b |c/caveat|s.man'`;|
|00004ef0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00004f00| 68 61 72 3a 20 5c 22 27 | 64 6f 63 2f 63 61 76 65 |har: \"'|doc/cave|
|00004f10| 61 74 73 2e 6d 61 6e 27 | 5c 22 20 75 6e 70 61 63 |ats.man'|\" unpac|
|00004f20| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00004f30| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00004f40| 20 27 64 6f 63 2f 63 61 | 76 65 61 74 73 2e 6d 61 | 'doc/ca|veats.ma|
|00004f50| 6e 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |n'.fi.if| test -f|
|00004f60| 20 27 64 6f 63 2f 65 6e | 76 69 72 6f 6e 2e 6d 61 | 'doc/en|viron.ma|
|00004f70| 6e 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |n' -a "$|{1}" != |
|00004f80| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00004f90| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00004fa0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00004fb0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 64 6f 63 2f |ing file| \"'doc/|
|00004fc0| 65 6e 76 69 72 6f 6e 2e | 6d 61 6e 27 5c 22 0a 65 |environ.|man'\".e|
|00004fd0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00004fe0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 64 6f 63 |xtractin|g \"'doc|
|00004ff0| 2f 65 6e 76 69 72 6f 6e | 2e 6d 61 6e 27 5c 22 20 |/environ|.man'\" |
|00005000| 5c 28 36 31 36 20 63 68 | 61 72 61 63 74 65 72 73 |\(616 ch|aracters|
|00005010| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00005020| 3e 27 64 6f 63 2f 65 6e | 76 69 72 6f 6e 2e 6d 61 |>'doc/en|viron.ma|
|00005030| 6e 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |n' <<'EN|D_OF_FIL|
|00005040| 45 27 0a 58 2e 53 48 20 | 45 4e 56 49 52 4f 4e 4d |E'.X.SH |ENVIRONM|
|00005050| 45 4e 54 0a 58 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |ENT.XThe| followi|
|00005060| 6e 67 20 74 77 6f 20 65 | 6e 76 69 72 6f 6e 6d 65 |ng two e|nvironme|
|00005070| 6e 74 20 76 61 72 69 61 | 62 6c 65 73 20 28 69 66 |nt varia|bles (if|
|00005080| 20 64 65 66 69 6e 65 64 | 29 20 61 72 65 20 75 73 | defined|) are us|
|00005090| 65 64 0a 58 62 79 20 5c | 2a 28 4e 4d 3a 0a 58 0a |ed.Xby \|*(NM:.X.|
|000050a0| 58 2e 49 50 20 22 24 50 | 52 4f 4d 50 54 5f 55 53 |X.IP "$P|ROMPT_US|
|000050b0| 45 52 22 0a 58 49 66 20 | 74 68 69 73 20 76 61 72 |ER".XIf |this var|
|000050c0| 69 61 62 6c 65 20 65 78 | 69 73 74 73 20 61 6e 64 |iable ex|ists and|
|000050d0| 20 69 73 20 6e 6f 6e 2d | 65 6d 70 74 79 2c 20 74 | is non-|empty, t|
|000050e0| 68 65 6e 20 74 68 65 20 | 75 73 65 72 20 77 69 6c |hen the |user wil|
|000050f0| 6c 20 62 65 0a 58 69 6e | 74 65 72 61 63 74 69 76 |l be.Xin|teractiv|
|00005100| 65 6c 79 20 70 72 6f 6d | 70 74 65 64 20 66 6f 72 |ely prom|pted for|
|00005110| 20 61 6e 79 20 6d 69 73 | 73 69 6e 67 20 72 65 71 | any mis|sing req|
|00005120| 75 69 72 65 64 20 61 72 | 67 75 6d 65 6e 74 73 2e |uired ar|guments.|
|00005130| 0a 58 0a 58 2e 49 50 20 | 22 24 55 53 41 47 45 5f |.X.X.IP |"$USAGE_|
|00005140| 4c 45 56 45 4c 22 0a 58 | 54 68 69 73 20 76 61 72 |LEVEL".X|This var|
|00005150| 69 61 62 6c 65 20 63 6f | 6e 74 72 6f 6c 73 20 74 |iable co|ntrols t|
|00005160| 68 65 20 76 65 72 62 6f | 73 65 6e 65 73 73 20 6f |he verbo|seness o|
|00005170| 66 20 75 73 61 67 65 20 | 6d 65 73 73 61 67 65 73 |f usage |messages|
|00005180| 20 74 68 61 74 20 61 72 | 65 20 70 72 69 6e 74 65 | that ar|e printe|
|00005190| 64 2e 0a 58 49 66 20 54 | 68 69 73 20 76 61 72 69 |d..XIf T|his vari|
|000051a0| 61 62 6c 65 20 69 73 20 | 65 6d 70 74 79 20 6f 72 |able is |empty or|
|000051b0| 20 69 73 20 75 6e 64 65 | 66 69 6e 65 64 2c 20 74 | is unde|fined, t|
|000051c0| 68 65 6e 20 76 65 72 62 | 6f 73 65 20 6d 65 73 73 |hen verb|ose mess|
|000051d0| 61 67 65 73 20 61 72 65 | 20 70 72 69 6e 74 65 64 |ages are| printed|
|000051e0| 2e 0a 58 49 66 20 74 68 | 69 73 20 76 61 72 69 61 |..XIf th|is varia|
|000051f0| 62 6c 65 20 65 78 69 73 | 74 73 20 61 6e 64 20 69 |ble exis|ts and i|
|00005200| 73 20 6e 6f 6e 2d 65 6d | 70 74 79 2c 20 69 74 20 |s non-em|pty, it |
|00005210| 6d 61 79 20 62 65 20 73 | 65 74 20 74 6f 20 6f 6e |may be s|et to on|
|00005220| 65 20 6f 66 20 74 68 65 | 0a 58 66 6f 6c 6c 6f 77 |e of the|.Xfollow|
|00005230| 69 6e 67 20 76 61 6c 75 | 65 73 3a 0a 58 2e 52 53 |ing valu|es:.X.RS|
|00005240| 0a 58 2e 49 50 20 30 0a | 58 4e 6f 20 75 73 61 67 |.X.IP 0.|XNo usag|
|00005250| 65 20 6d 65 73 73 61 67 | 65 20 69 73 20 70 72 69 |e messag|e is pri|
|00005260| 6e 74 65 64 2e 0a 58 2e | 49 50 20 31 0a 58 41 20 |nted..X.|IP 1.XA |
|00005270| 74 65 72 73 65 20 75 73 | 61 67 65 20 6d 65 73 73 |terse us|age mess|
|00005280| 61 67 65 20 69 73 20 70 | 72 69 6e 74 65 64 0a 58 |age is p|rinted.X|
|00005290| 2e 49 50 20 32 0a 58 41 | 20 76 65 72 62 6f 73 65 |.IP 2.XA| verbose|
|000052a0| 20 75 73 61 67 65 20 6d | 65 73 73 61 67 65 20 69 | usage m|essage i|
|000052b0| 73 20 70 72 69 6e 74 65 | 64 2e 0a 58 2e 52 45 0a |s printe|d..X.RE.|
|000052c0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000052d0| 65 73 74 20 36 31 36 20 | 2d 6e 65 20 60 77 63 20 |est 616 |-ne `wc |
|000052e0| 2d 63 20 3c 27 64 6f 63 | 2f 65 6e 76 69 72 6f 6e |-c <'doc|/environ|
|000052f0| 2e 6d 61 6e 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |.man'`; |then. |
|00005300| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 64 | echo sh|ar: \"'d|
|00005310| 6f 63 2f 65 6e 76 69 72 | 6f 6e 2e 6d 61 6e 27 5c |oc/envir|on.man'\|
|00005320| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00005330| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00005340| 20 65 6e 64 20 6f 66 20 | 27 64 6f 63 2f 65 6e 76 | end of |'doc/env|
|00005350| 69 72 6f 6e 2e 6d 61 6e | 27 0a 66 69 0a 69 66 20 |iron.man|'.fi.if |
|00005360| 74 65 73 74 20 2d 66 20 | 27 64 6f 63 2f 65 78 61 |test -f |'doc/exa|
|00005370| 6d 70 6c 65 2e 6d 61 6e | 27 20 2d 61 20 22 24 7b |mple.man|' -a "${|
|00005380| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00005390| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|000053a0| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|000053b0| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|000053c0| 5c 22 27 64 6f 63 2f 65 | 78 61 6d 70 6c 65 2e 6d |\"'doc/e|xample.m|
|000053d0| 61 6e 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |an'\".el|se.echo |
|000053e0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|000053f0| 20 5c 22 27 64 6f 63 2f | 65 78 61 6d 70 6c 65 2e | \"'doc/|example.|
|00005400| 6d 61 6e 27 5c 22 20 5c | 28 31 39 39 34 20 63 68 |man'\" \|(1994 ch|
|00005410| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00005420| 73 2f 5e 58 2f 2f 22 20 | 3e 27 64 6f 63 2f 65 78 |s/^X//" |>'doc/ex|
|00005430| 61 6d 70 6c 65 2e 6d 61 | 6e 27 20 3c 3c 27 45 4e |ample.ma|n' <<'EN|
|00005440| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2e 53 48 20 |D_OF_FIL|E'.X.SH |
|00005450| 45 58 41 4d 50 4c 45 0a | 58 2e 50 50 0a 58 55 73 |EXAMPLE.|X.PP.XUs|
|00005460| 69 6e 67 20 74 68 65 20 | 5c 2a 28 4e 4d 20 6c 69 |ing the |\*(NM li|
|00005470| 62 72 61 72 79 20 69 73 | 20 72 65 6c 61 74 69 76 |brary is| relativ|
|00005480| 65 6c 79 20 65 61 73 79 | 20 5c 2d 20 79 6f 75 20 |ely easy| \- you |
|00005490| 6e 65 65 64 20 74 6f 20 | 63 6f 6e 73 74 72 75 63 |need to |construc|
|000054a0| 74 20 79 6f 75 72 0a 58 | 61 72 67 75 6d 65 6e 74 |t your.X|argument|
|000054b0| 73 2c 20 79 6f 75 72 20 | 63 6f 6d 6d 61 6e 64 2d |s, your |command-|
|000054c0| 6c 69 6e 65 2c 20 61 6e | 64 20 79 6f 75 72 20 61 |line, an|d your a|
|000054d0| 72 67 75 6d 65 6e 74 20 | 69 74 65 72 61 74 6f 72 |rgument |iterator|
|000054e0| 2e 20 20 54 68 65 6e 20 | 61 6c 6c 20 74 68 61 74 |. Then |all that|
|000054f0| 20 69 73 0a 58 6c 65 66 | 74 20 74 6f 20 64 6f 20 | is.Xlef|t to do |
|00005500| 69 73 20 63 61 6c 6c 20 | 74 68 65 20 5c 66 34 70 |is call |the \f4p|
|00005510| 61 72 73 65 5c 66 50 20 | 6d 65 6d 62 65 72 20 66 |arse\fP |member f|
|00005520| 75 6e 63 74 69 6f 6e 20 | 6f 66 20 79 6f 75 72 20 |unction |of your |
|00005530| 5c 2a 28 4e 4d 20 6f 62 | 6a 65 63 74 2e 0a 58 54 |\*(NM ob|ject..XT|
|00005540| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 69 73 20 |he follo|wing is |
|00005550| 61 20 73 69 6d 70 6c 65 | 20 65 78 61 6d 70 6c 65 |a simple| example|
|00005560| 3a 0a 58 0a 58 2e 58 53 | 0a 58 23 69 6e 63 6c 75 |:.X.X.XS|.X#inclu|
|00005570| 64 65 20 3c 73 74 64 6c | 69 62 2e 68 3e 0a 58 23 |de <stdl|ib.h>.X#|
|00005580| 69 6e 63 6c 75 64 65 20 | 3c 69 6f 73 74 72 65 61 |include |<iostrea|
|00005590| 6d 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |m.h>.X#i|nclude <|
|000055a0| 63 6d 64 61 72 67 73 2e | 68 3e 0a 58 0a 58 69 6e |cmdargs.|h>.X.Xin|
|000055b0| 74 20 20 6d 61 69 6e 28 | 69 6e 74 20 61 72 67 63 |t main(|int argc|
|000055c0| 2c 20 63 68 61 72 20 2a | 20 61 72 67 76 5b 5d 29 |, char *| argv[])|
|000055d0| 0a 58 7b 0a 58 20 20 20 | 20 20 20 2f 2f 20 44 65 |.X{.X | // De|
|000055e0| 63 6c 61 72 65 20 61 72 | 67 75 6d 65 6e 74 73 0a |clare ar|guments.|
|000055f0| 58 20 20 20 43 6d 64 41 | 72 67 49 6e 74 20 20 63 |X CmdA|rgInt c|
|00005600| 6f 75 6e 74 28 27 63 27 | 2c 20 22 63 6f 75 6e 74 |ount('c'|, "count|
|00005610| 22 2c 20 22 6e 75 6d 62 | 65 72 22 2c 0a 58 20 20 |", "numb|er",.X |
|00005620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005630| 20 20 20 20 20 22 6e 75 | 6d 62 65 72 20 6f 66 20 | "nu|mber of |
|00005640| 63 6f 70 69 65 73 20 74 | 6f 20 70 72 69 6e 74 2e |copies t|o print.|
|00005650| 22 29 3b 0a 58 2e 73 70 | 20 34 70 0a 58 20 20 20 |");.X.sp| 4p.X |
|00005660| 43 6d 64 41 72 67 42 6f | 6f 6c 20 78 66 6c 61 67 |CmdArgBo|ol xflag|
|00005670| 28 27 78 27 2c 20 22 78 | 6d 6f 64 65 22 2c 0a 58 |('x', "x|mode",.X|
|00005680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005690| 20 20 20 20 20 20 20 22 | 74 75 72 6e 20 6f 6e 20 | "|turn on |
|000056a0| 27 78 27 2d 6d 6f 64 65 | 2e 22 29 3b 0a 58 2e 73 |'x'-mode|.");.X.s|
|000056b0| 70 20 34 70 0a 58 20 20 | 20 43 6d 64 41 72 67 43 |p 4p.X | CmdArgC|
|000056c0| 68 61 72 20 66 64 73 65 | 70 28 27 73 27 2c 20 22 |har fdse|p('s', "|
|000056d0| 73 65 70 61 72 61 74 6f | 72 22 2c 20 22 63 68 61 |separato|r", "cha|
|000056e0| 72 22 2c 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |r",.X | |
|000056f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 22 66 69 65 | | "fie|
|00005700| 6c 64 2d 73 65 70 61 72 | 61 74 6f 72 20 74 6f 20 |ld-separ|ator to |
|00005710| 75 73 65 2e 22 29 3b 0a | 58 2e 73 70 20 34 70 0a |use.");.|X.sp 4p.|
|00005720| 58 20 20 20 43 6d 64 41 | 72 67 53 74 72 20 20 69 |X CmdA|rgStr i|
|00005730| 6e 70 75 74 28 22 69 6e | 70 75 74 2d 66 69 6c 65 |nput("in|put-file|
|00005740| 22 2c 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |",.X | |
|00005750| 20 20 20 20 20 20 20 20 | 20 20 20 22 69 6e 70 75 | | "inpu|
|00005760| 74 20 66 69 6c 65 20 74 | 6f 20 72 65 61 64 2e 22 |t file t|o read."|
|00005770| 29 3b 0a 58 2e 73 70 20 | 34 70 0a 58 20 20 20 43 |);.X.sp |4p.X C|
|00005780| 6d 64 41 72 67 53 74 72 | 4c 69 73 74 20 20 6f 75 |mdArgStr|List ou|
|00005790| 74 70 75 74 28 22 5b 6f | 75 74 70 75 74 2d 66 69 |tput("[o|utput-fi|
|000057a0| 6c 65 20 5c 2a 28 2e 2e | 5d 22 2c 0a 58 20 20 20 |le \*(..|]",.X |
|000057b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057c0| 20 20 20 20 20 20 20 20 | 20 22 77 68 65 72 65 20 | | "where |
|000057d0| 74 6f 20 70 72 69 6e 74 | 20 6f 75 74 70 75 74 2e |to print| output.|
|000057e0| 22 29 3b 0a 58 0a 58 20 | 20 20 20 20 20 2f 2f 20 |");.X.X | // |
|000057f0| 44 65 63 6c 61 72 65 20 | 74 68 65 20 63 6f 6d 6d |Declare |the comm|
|00005800| 61 6e 64 20 61 6e 64 20 | 74 68 65 20 61 72 67 75 |and and |the argu|
|00005810| 6d 65 6e 74 2d 69 74 65 | 72 61 74 6f 72 0a 58 20 |ment-ite|rator.X |
|00005820| 20 20 43 6d 64 4c 69 6e | 65 20 20 63 6d 64 28 2a | CmdLin|e cmd(*|
|00005830| 61 72 67 76 2c 0a 58 20 | 20 20 20 20 20 20 20 20 |argv,.X | |
|00005840| 20 20 20 20 20 20 20 20 | 20 20 26 63 6f 75 6e 74 | | &count|
|00005850| 2c 20 26 78 66 6c 61 67 | 2c 20 26 66 64 73 65 70 |, &xflag|, &fdsep|
|00005860| 2c 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,.X | |
|00005870| 20 20 20 20 20 20 26 69 | 6e 70 75 74 2c 20 26 6f | &i|nput, &o|
|00005880| 75 74 70 75 74 2c 20 4e | 55 4c 4c 29 3b 0a 58 2e |utput, N|ULL);.X.|
|00005890| 73 70 20 34 70 0a 58 20 | 20 20 43 6d 64 41 72 67 |sp 4p.X | CmdArg|
|000058a0| 76 49 74 65 72 20 20 61 | 72 67 5f 69 74 65 72 28 |vIter a|rg_iter(|
|000058b0| 2d 2d 61 72 67 63 2c 20 | 2b 2b 61 72 67 76 29 3b |--argc, |++argv);|
|000058c0| 0a 58 0a 58 20 20 20 20 | 20 20 2f 2f 20 49 6e 69 |.X.X | // Ini|
|000058d0| 74 69 61 6c 69 7a 65 20 | 61 72 67 75 6d 65 6e 74 |tialize |argument|
|000058e0| 73 20 74 6f 20 61 70 70 | 72 6f 70 72 69 61 74 65 |s to app|ropriate|
|000058f0| 20 64 65 66 61 75 6c 74 | 20 76 61 6c 75 65 73 2e | default| values.|
|00005900| 0a 58 20 20 20 63 6f 75 | 6e 74 20 3d 20 31 3b 0a |.X cou|nt = 1;.|
|00005910| 58 20 20 20 78 66 6c 61 | 67 20 3d 20 30 3b 0a 58 |X xfla|g = 0;.X|
|00005920| 20 20 20 66 64 73 65 70 | 20 3d 20 27 2c 27 3b 0a | fdsep| = ',';.|
|00005930| 58 0a 58 20 20 20 20 20 | 20 2f 2f 20 50 61 72 73 |X.X | // Pars|
|00005940| 65 20 61 72 67 75 6d 65 | 6e 74 73 0a 58 20 20 20 |e argume|nts.X |
|00005950| 63 6d 64 2e 70 61 72 73 | 65 28 61 72 67 5f 69 74 |cmd.pars|e(arg_it|
|00005960| 65 72 29 3b 0a 58 0a 58 | 20 20 20 20 20 20 2f 2f |er);.X.X| //|
|00005970| 20 50 72 69 6e 74 20 61 | 72 67 75 6d 65 6e 74 73 | Print a|rguments|
|00005980| 0a 58 20 20 20 63 6f 75 | 74 20 3c 3c 20 22 63 6f |.X cou|t << "co|
|00005990| 75 6e 74 3d 22 20 3c 3c | 20 63 6f 75 6e 74 20 3c |unt=" <<| count <|
|000059a0| 3c 20 65 6e 64 6c 20 3b | 0a 58 20 20 20 63 6f 75 |< endl ;|.X cou|
|000059b0| 74 20 3c 3c 20 22 78 66 | 6c 61 67 3d 22 20 3c 3c |t << "xf|lag=" <<|
|000059c0| 20 28 78 66 6c 61 67 20 | 3f 20 22 4f 4e 22 20 3a | (xflag |? "ON" :|
|000059d0| 20 22 4f 46 46 22 29 20 | 3c 3c 20 65 6e 64 6c 20 | "OFF") |<< endl |
|000059e0| 3b 0a 58 20 20 20 63 6f | 75 74 20 3c 3c 20 22 66 |;.X co|ut << "f|
|000059f0| 64 73 65 70 3d 27 22 20 | 3c 3c 20 28 63 68 61 72 |dsep='" |<< (char|
|00005a00| 29 20 66 64 73 65 70 20 | 3c 3c 20 22 27 22 20 3c |) fdsep |<< "'" <|
|00005a10| 3c 20 65 6e 64 6c 20 3b | 0a 58 20 20 20 63 6f 75 |< endl ;|.X cou|
|00005a20| 74 20 3c 3c 20 22 69 6e | 70 75 74 3d 5c 5c 22 22 |t << "in|put=\\""|
|00005a30| 20 3c 3c 20 69 6e 70 75 | 74 20 3c 3c 20 22 5c 5c | << inpu|t << "\\|
|00005a40| 22 22 20 3c 3c 20 65 6e | 64 6c 20 3b 0a 58 20 20 |"" << en|dl ;.X |
|00005a50| 20 0a 58 20 20 20 66 6f | 72 20 28 69 6e 74 20 69 | .X fo|r (int i|
|00005a60| 20 3d 20 30 20 3b 20 69 | 20 3c 20 6f 75 74 70 75 | = 0 ; i| < outpu|
|00005a70| 74 2e 63 6f 75 6e 74 28 | 29 20 3b 20 69 2b 2b 29 |t.count(|) ; i++)|
|00005a80| 20 7b 0a 58 20 20 20 20 | 20 20 63 6f 75 74 20 3c | {.X | cout <|
|00005a90| 3c 20 22 6f 75 74 70 75 | 74 5b 22 20 3c 3c 20 69 |< "outpu|t[" << i|
|00005aa0| 20 3c 3c 20 22 5d 3d 22 | 20 3c 3c 20 6f 75 74 70 | << "]="| << outp|
|00005ab0| 75 74 5b 69 5d 20 3c 3c | 20 65 6e 64 6c 20 3b 0a |ut[i] <<| endl ;.|
|00005ac0| 58 20 20 20 7d 0a 58 0a | 58 20 20 20 72 65 74 75 |X }.X.|X retu|
|00005ad0| 72 6e 20 20 30 3b 0a 58 | 7d 0a 58 2e 58 45 0a 58 |rn 0;.X|}.X.XE.X|
|00005ae0| 0a 58 54 68 65 20 55 6e | 69 78 20 63 6f 6d 6d 61 |.XThe Un|ix comma|
|00005af0| 6e 64 2d 6c 69 6e 65 20 | 73 79 6e 74 61 78 20 66 |nd-line |syntax f|
|00005b00| 6f 72 20 74 68 65 20 61 | 62 6f 76 65 20 70 72 6f |or the a|bove pro|
|00005b10| 67 72 61 6d 20 77 6f 75 | 6c 64 20 62 65 20 61 73 |gram wou|ld be as|
|00005b20| 20 66 6f 6c 6c 6f 77 73 | 3a 0a 58 0a 58 2e 58 53 | follows|:.X.X.XS|
|00005b30| 0a 58 70 72 6f 67 6e 61 | 6d 65 20 5b 5c 2d 63 20 |.Xprogna|me [\-c |
|00005b40| 6e 75 6d 62 65 72 5d 20 | 5b 5c 2d 78 5d 20 5b 5c |number] |[\-x] [\|
|00005b50| 2d 73 20 63 68 61 72 5d | 20 69 6e 70 75 74 2d 66 |-s char]| input-f|
|00005b60| 69 6c 65 20 5b 6f 75 74 | 70 75 74 2d 66 69 6c 65 |ile [out|put-file|
|00005b70| 20 5c 2a 28 2e 2e 5d 0a | 58 2e 58 45 0a 58 0a 58 | \*(..].|X.XE.X.X|
|00005b80| 54 68 65 20 55 6e 69 78 | 20 63 6f 6d 6d 61 6e 64 |The Unix| command|
|00005b90| 2d 6c 69 6e 65 20 73 79 | 6e 74 61 78 20 75 73 69 |-line sy|ntax usi|
|00005ba0| 6e 67 20 6c 6f 6e 67 2d | 6f 70 74 69 6f 6e 73 20 |ng long-|options |
|00005bb0| 28 6b 65 79 77 6f 72 64 | 73 29 20 66 6f 72 20 74 |(keyword|s) for t|
|00005bc0| 68 65 20 61 62 6f 76 65 | 0a 58 70 72 6f 67 72 61 |he above|.Xprogra|
|00005bd0| 6d 20 77 6f 75 6c 64 20 | 62 65 20 61 73 20 66 6f |m would |be as fo|
|00005be0| 6c 6c 6f 77 73 3a 0a 58 | 0a 58 2e 58 53 0a 58 70 |llows:.X|.X.XS.Xp|
|00005bf0| 72 6f 67 6e 61 6d 65 20 | 5b 5c 2a 28 2d 2d 63 6f |rogname |[\*(--co|
|00005c00| 75 6e 74 20 6e 75 6d 62 | 65 72 5d 20 5b 5c 2a 28 |unt numb|er] [\*(|
|00005c10| 2d 2d 78 6d 6f 64 65 5d | 20 5b 5c 2a 28 2d 2d 73 |--xmode]| [\*(--s|
|00005c20| 65 70 61 72 61 74 6f 72 | 20 63 68 61 72 5d 0a 58 |eparator| char].X|
|00005c30| 20 20 20 20 20 20 20 20 | 20 69 6e 70 75 74 2d 66 | | input-f|
|00005c40| 69 6c 65 20 5b 6f 75 74 | 70 75 74 2d 66 69 6c 65 |ile [out|put-file|
|00005c50| 20 5c 2a 28 2e 2e 5d 0a | 58 2e 58 45 0a 45 4e 44 | \*(..].|X.XE.END|
|00005c60| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00005c70| 20 31 39 39 34 20 2d 6e | 65 20 60 77 63 20 2d 63 | 1994 -n|e `wc -c|
|00005c80| 20 3c 27 64 6f 63 2f 65 | 78 61 6d 70 6c 65 2e 6d | <'doc/e|xample.m|
|00005c90| 61 6e 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |an'`; th|en. e|
|00005ca0| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 64 6f 63 |cho shar|: \"'doc|
|00005cb0| 2f 65 78 61 6d 70 6c 65 | 2e 6d 61 6e 27 5c 22 20 |/example|.man'\" |
|00005cc0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00005cd0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00005ce0| 6e 64 20 6f 66 20 27 64 | 6f 63 2f 65 78 61 6d 70 |nd of 'd|oc/examp|
|00005cf0| 6c 65 2e 6d 61 6e 27 0a | 66 69 0a 69 66 20 74 65 |le.man'.|fi.if te|
|00005d00| 73 74 20 2d 66 20 27 64 | 6f 63 2f 66 69 6c 65 73 |st -f 'd|oc/files|
|00005d10| 2e 6d 61 6e 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |.man' -a| "${1}" |
|00005d20| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00005d30| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00005d40| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00005d50| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 64 |isting f|ile \"'d|
|00005d60| 6f 63 2f 66 69 6c 65 73 | 2e 6d 61 6e 27 5c 22 0a |oc/files|.man'\".|
|00005d70| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00005d80| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 64 6f |Extracti|ng \"'do|
|00005d90| 63 2f 66 69 6c 65 73 2e | 6d 61 6e 27 5c 22 20 5c |c/files.|man'\" \|
|00005da0| 28 35 38 34 20 63 68 61 | 72 61 63 74 65 72 73 5c |(584 cha|racters\|
|00005db0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00005dc0| 27 64 6f 63 2f 66 69 6c | 65 73 2e 6d 61 6e 27 20 |'doc/fil|es.man' |
|00005dd0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00005de0| 58 2e 53 48 20 46 49 4c | 45 53 0a 58 2e 50 50 0a |X.SH FIL|ES.X.PP.|
|00005df0| 58 2e 49 50 20 5c 66 34 | 5c 2a 69 2f 63 6d 64 6c |X.IP \f4|\*i/cmdl|
|00005e00| 69 6e 65 2e 68 5c 66 50 | 0a 58 5c 2a 28 43 2b 20 |ine.h\fP|.X\*(C+ |
|00005e10| 69 6e 63 6c 75 64 65 20 | 66 69 6c 65 20 77 68 69 |include |file whi|
|00005e20| 63 68 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |ch conta|ins the |
|00005e30| 64 65 66 69 6e 69 74 69 | 6f 6e 20 6f 66 20 61 20 |definiti|on of a |
|00005e40| 63 6f 6d 6d 61 6e 64 2d | 61 72 67 75 6d 65 6e 74 |command-|argument|
|00005e50| 20 63 6c 61 73 73 2c 0a | 58 61 20 63 6f 6d 6d 61 | class,.|Xa comma|
|00005e60| 6e 64 2d 6c 69 6e 65 20 | 63 6c 61 73 73 2c 20 61 |nd-line |class, a|
|00005e70| 6e 64 20 61 72 67 75 6d | 65 6e 74 2d 69 74 65 72 |nd argum|ent-iter|
|00005e80| 61 74 6f 72 20 63 6c 61 | 73 73 65 73 2e 0a 58 0a |ator cla|sses..X.|
|00005e90| 58 2e 49 50 20 5c 66 34 | 5c 2a 69 2f 63 6d 64 61 |X.IP \f4|\*i/cmda|
|00005ea0| 72 67 73 2e 68 5c 66 50 | 0a 58 5c 2a 28 43 2b 20 |rgs.h\fP|.X\*(C+ |
|00005eb0| 69 6e 63 6c 75 64 65 20 | 66 69 6c 65 20 77 68 69 |include |file whi|
|00005ec0| 63 68 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |ch conta|ins the |
|00005ed0| 64 65 66 69 6e 69 74 69 | 6f 6e 73 20 6f 66 20 73 |definiti|ons of s|
|00005ee0| 6f 6d 65 20 70 72 65 64 | 65 66 69 6e 65 64 0a 58 |ome pred|efined.X|
|00005ef0| 63 6f 6d 6d 61 6e 64 2d | 61 72 67 75 6d 65 6e 74 |command-|argument|
|00005f00| 20 73 75 62 63 6c 61 73 | 73 65 73 2e 0a 58 0a 58 | subclas|ses..X.X|
|00005f10| 2e 49 50 20 5c 66 34 5c | 2a 6c 2f 6c 69 62 63 6d |.IP \f4\|*l/libcm|
|00005f20| 64 6c 69 6e 65 2e 61 5c | 66 50 0a 58 54 68 65 20 |dline.a\|fP.XThe |
|00005f30| 6f 62 6a 65 63 74 20 6c | 69 62 72 61 72 79 20 66 |object l|ibrary f|
|00005f40| 6f 72 20 5c 2a 28 4e 4d | 28 33 5c 2a 28 43 2b 29 |or \*(NM|(3\*(C+)|
|00005f50| 2e 0a 58 0a 58 2e 50 50 | 0a 58 57 68 65 6e 20 63 |..X.X.PP|.XWhen c|
|00005f60| 6f 6d 70 69 6c 69 6e 67 | 20 79 6f 75 72 20 73 6f |ompiling| your so|
|00005f70| 75 72 63 65 20 28 6f 6e | 20 55 6e 69 78 20 73 79 |urce (on| Unix sy|
|00005f80| 73 74 65 6d 73 29 2c 20 | 79 6f 75 20 6d 61 79 20 |stems), |you may |
|00005f90| 6e 65 65 64 20 74 6f 20 | 75 73 65 0a 58 74 68 65 |need to |use.Xthe|
|00005fa0| 20 5c 66 42 5c 2d 49 5c | 66 34 5c 2a 69 5c 66 52 | \fB\-I\|f4\*i\fR|
|00005fb0| 20 6f 70 74 69 6f 6e 2e | 20 57 68 65 6e 20 6c 69 | option.| When li|
|00005fc0| 6e 6b 69 6e 67 20 79 6f | 75 72 20 6f 62 6a 65 63 |nking yo|ur objec|
|00005fd0| 74 73 2c 0a 58 79 6f 75 | 20 6d 61 79 20 6e 65 65 |ts,.Xyou| may nee|
|00005fe0| 64 20 74 6f 20 75 73 65 | 20 74 68 65 20 5c 66 42 |d to use| the \fB|
|00005ff0| 5c 2d 4c 5c 66 34 5c 2a | 6c 5c 66 52 20 6f 70 74 |\-L\f4\*|l\fR opt|
|00006000| 69 6f 6e 20 69 6e 20 63 | 6f 6e 6a 75 6e 63 74 69 |ion in c|onjuncti|
|00006010| 6f 6e 0a 58 77 69 74 68 | 20 74 68 65 20 5c 66 42 |on.Xwith| the \fB|
|00006020| 5c 2d 6c 5c 66 34 63 6d | 64 6c 69 6e 65 5c 66 52 |\-l\f4cm|dline\fR|
|00006030| 20 6f 70 74 69 6f 6e 2e | 0a 58 0a 45 4e 44 5f 4f | option.|.X.END_O|
|00006040| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 35 |F_FILE.i|f test 5|
|00006050| 38 34 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |84 -ne `|wc -c <'|
|00006060| 64 6f 63 2f 66 69 6c 65 | 73 2e 6d 61 6e 27 60 3b |doc/file|s.man'`;|
|00006070| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00006080| 68 61 72 3a 20 5c 22 27 | 64 6f 63 2f 66 69 6c 65 |har: \"'|doc/file|
|00006090| 73 2e 6d 61 6e 27 5c 22 | 20 75 6e 70 61 63 6b 65 |s.man'\"| unpacke|
|000060a0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|000060b0| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|000060c0| 64 6f 63 2f 66 69 6c 65 | 73 2e 6d 61 6e 27 0a 66 |doc/file|s.man'.f|
|000060d0| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 64 6f |i.if tes|t -f 'do|
|000060e0| 63 2f 6d 61 63 72 6f 73 | 2e 6d 61 6e 27 20 2d 61 |c/macros|.man' -a|
|000060f0| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00006100| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00006110| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00006120| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00006130| 69 6c 65 20 5c 22 27 64 | 6f 63 2f 6d 61 63 72 6f |ile \"'d|oc/macro|
|00006140| 73 2e 6d 61 6e 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |s.man'\"|.else.ec|
|00006150| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00006160| 69 6e 67 20 5c 22 27 64 | 6f 63 2f 6d 61 63 72 6f |ing \"'d|oc/macro|
|00006170| 73 2e 6d 61 6e 27 5c 22 | 20 5c 28 38 33 39 20 63 |s.man'\"| \(839 c|
|00006180| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00006190| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 64 6f 63 2f 6d |"s/^X//"| >'doc/m|
|000061a0| 61 63 72 6f 73 2e 6d 61 | 6e 27 20 3c 3c 27 45 4e |acros.ma|n' <<'EN|
|000061b0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2e 5c 22 3d |D_OF_FIL|E'.X.\"=|
|000061c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000061d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000061e0| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 58 2e 5c 22 20 54 68 |========|.X.\" Th|
|000061f0| 69 73 20 66 69 6c 65 20 | 63 6f 6e 74 61 69 6e 73 |is file |contains|
|00006200| 20 73 6f 6d 65 20 75 73 | 65 72 20 64 65 66 69 6e | some us|er defin|
|00006210| 65 64 20 28 6e 7c 74 29 | 72 6f 66 66 20 6d 61 63 |ed (n|t)|roff mac|
|00006220| 72 6f 73 20 66 6f 72 20 | 67 65 6e 65 72 61 6c 20 |ros for |general |
|00006230| 75 73 65 0a 58 2e 5c 22 | 3d 3d 3d 3d 3d 3d 3d 3d |use.X.\"|========|
|00006240| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006250| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006260| 3d 0a 58 2e 64 65 20 58 | 53 0a 58 2e 20 52 53 0a |=.X.de X|S.X. RS.|
|00006270| 58 2e 20 6e 66 0a 58 2e | 20 66 74 20 34 0a 58 2e |X. nf.X.| ft 4.X.|
|00006280| 2e 0a 58 2e 64 65 20 58 | 45 0a 58 2e 20 66 74 20 |..X.de X|E.X. ft |
|00006290| 52 0a 58 2e 20 66 69 0a | 58 2e 20 52 45 0a 58 2e |R.X. fi.|X. RE.X.|
|000062a0| 2e 0a 58 2e 64 73 20 2d | 2d 20 5c 2d 5c 7c 5c 2d |..X.ds -|- \-\|\-|
|000062b0| 0a 58 2e 64 73 20 43 2b | 20 43 5c 73 2d 32 5c 76 |.X.ds C+| C\s-2\v|
|000062c0| 27 2d 31 2e 35 70 27 5c | 28 70 6c 5c 28 70 6c 5c |'-1.5p'\|(pl\(pl\|
|000062d0| 76 27 2b 31 2e 35 70 27 | 5c 73 2b 32 0a 58 2e 64 |v'+1.5p'|\s+2.X.d|
|000062e0| 73 20 2e 2e 20 2e 5c 5e | 2e 5c 5e 2e 0a 58 2e 5c |s .. .\^|.\^..X.\|
|000062f0| 22 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |"-------|--------|
|00006300| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 2e 5c |--------|----.X.\|
|00006320| 22 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |" The fo|llowing |
|00006330| 22 73 74 72 69 6e 67 73 | 22 20 73 68 6f 75 6c 64 |"strings|" should|
|00006340| 20 63 6f 72 72 65 73 70 | 6f 6e 64 20 74 6f 20 77 | corresp|ond to w|
|00006350| 68 65 72 65 20 74 68 65 | 20 43 6d 64 4c 69 6e 65 |here the| CmdLine|
|00006360| 20 66 69 6c 65 73 0a 58 | 2e 5c 22 20 68 61 76 65 | files.X|.\" have|
|00006370| 20 62 65 65 6e 20 69 6e | 73 74 61 6c 6c 65 64 2e | been in|stalled.|
|00006380| 20 20 22 62 22 20 69 73 | 20 77 68 65 72 65 20 65 | "b" is| where e|
|00006390| 78 65 63 75 74 61 62 6c | 65 20 66 69 6c 65 73 20 |xecutabl|e files |
|000063a0| 61 72 65 20 69 6e 73 74 | 61 6c 6c 65 64 2e 0a 58 |are inst|alled..X|
|000063b0| 2e 5c 22 20 22 69 22 20 | 69 73 20 77 68 65 72 65 |.\" "i" |is where|
|000063c0| 20 74 68 65 20 69 6e 63 | 6c 75 64 65 20 66 69 6c | the inc|lude fil|
|000063d0| 65 73 20 77 68 65 72 65 | 20 69 6e 73 74 61 6c 6c |es where| install|
|000063e0| 65 64 20 61 6e 64 20 22 | 6c 22 20 69 73 20 77 68 |ed and "|l" is wh|
|000063f0| 65 72 65 20 74 68 65 0a | 58 2e 5c 22 20 6f 62 6a |ere the.|X.\" obj|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.