home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From @uunet.uu.net:root@jpl-devvax.jpl.nasa.gov Tue Jun 28 21:10:41 1988", ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| x-fmt/111 Plain Text File
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| application/mbox
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 40 75 75 | 6e 65 74 2e 75 75 2e 6e |From @uu|net.uu.n|
|00000010| 65 74 3a 72 6f 6f 74 40 | 6a 70 6c 2d 64 65 76 76 |et:root@|jpl-devv|
|00000020| 61 78 2e 6a 70 6c 2e 6e | 61 73 61 2e 67 6f 76 20 |ax.jpl.n|asa.gov |
|00000030| 54 75 65 20 4a 75 6e 20 | 32 38 20 32 31 3a 31 30 |Tue Jun |28 21:10|
|00000040| 3a 34 31 20 31 39 38 38 | 0a 52 65 63 65 69 76 65 |:41 1988|.Receive|
|00000050| 64 3a 20 66 72 6f 6d 20 | 42 42 4e 2e 43 4f 4d 20 |d: from |BBN.COM |
|00000060| 62 79 20 70 69 6e 65 61 | 70 70 6c 65 2e 62 62 6e |by pinea|pple.bbn|
|00000070| 2e 63 6f 6d 20 69 64 20 | 41 41 31 30 35 34 37 3b |.com id |AA10547;|
|00000080| 20 54 75 65 2c 20 32 38 | 20 4a 75 6e 20 38 38 20 | Tue, 28| Jun 88 |
|00000090| 32 31 3a 30 39 3a 30 38 | 20 45 44 54 0a 52 65 63 |21:09:08| EDT.Rec|
|000000a0| 65 69 76 65 64 3a 20 66 | 72 6f 6d 20 75 75 6e 65 |eived: f|rom uune|
|000000b0| 74 2e 75 75 2e 6e 65 74 | 20 62 79 20 42 42 4e 2e |t.uu.net| by BBN.|
|000000c0| 43 4f 4d 20 69 64 20 61 | 61 30 31 37 37 30 3b 20 |COM id a|a01770; |
|000000d0| 32 38 20 4a 75 6e 20 38 | 38 20 32 30 3a 34 33 20 |28 Jun 8|8 20:43 |
|000000e0| 45 44 54 0a 52 65 63 65 | 69 76 65 64 3a 20 66 72 |EDT.Rece|ived: fr|
|000000f0| 6f 6d 20 65 6c 72 6f 79 | 2e 6a 70 6c 2e 6e 61 73 |om elroy|.jpl.nas|
|00000100| 61 2e 67 6f 76 20 62 79 | 20 75 75 6e 65 74 2e 55 |a.gov by| uunet.U|
|00000110| 55 2e 4e 45 54 20 28 35 | 2e 35 39 2f 31 2e 31 34 |U.NET (5|.59/1.14|
|00000120| 29 20 0a 09 69 64 20 41 | 41 30 34 35 35 37 3b 20 |) ..id A|A04557; |
|00000130| 54 75 65 2c 20 32 38 20 | 4a 75 6e 20 38 38 20 32 |Tue, 28 |Jun 88 2|
|00000140| 30 3a 33 37 3a 33 37 20 | 45 44 54 0a 52 65 63 65 |0:37:37 |EDT.Rece|
|00000150| 69 76 65 64 3a 20 66 72 | 6f 6d 20 64 65 76 76 61 |ived: fr|om devva|
|00000160| 78 2e 4a 70 6c 2e 4e 61 | 73 61 2e 47 6f 76 20 28 |x.Jpl.Na|sa.Gov (|
|00000170| 6a 70 6c 2d 64 65 76 76 | 61 78 2e 6a 70 6c 2e 6e |jpl-devv|ax.jpl.n|
|00000180| 61 73 61 2e 67 6f 76 29 | 20 62 79 20 65 6c 72 6f |asa.gov)| by elro|
|00000190| 79 2e 6a 70 6c 2e 6e 61 | 73 61 2e 67 6f 76 20 28 |y.jpl.na|sa.gov (|
|000001a0| 34 2e 30 2f 53 4d 49 2d | 34 2e 30 2b 44 58 52 29 |4.0/SMI-|4.0+DXR)|
|000001b0| 0a 09 69 64 20 41 41 30 | 30 35 35 36 3b 20 54 75 |..id AA0|0556; Tu|
|000001c0| 65 2c 20 32 38 20 4a 75 | 6e 20 38 38 20 31 37 3a |e, 28 Ju|n 88 17:|
|000001d0| 33 34 3a 34 37 20 50 44 | 54 0a 52 65 63 65 69 76 |34:47 PD|T.Receiv|
|000001e0| 65 64 3a 20 62 79 20 64 | 65 76 76 61 78 2e 4a 70 |ed: by d|evvax.Jp|
|000001f0| 6c 2e 4e 61 73 61 2e 47 | 6f 76 20 28 35 2e 35 31 |l.Nasa.G|ov (5.51|
|00000200| 2f 34 2e 37 29 0a 09 69 | 64 20 41 41 32 35 35 32 |/4.7)..i|d AA2552|
|00000210| 30 3b 20 54 75 65 2c 20 | 32 38 20 4a 75 6e 20 38 |0; Tue, |28 Jun 8|
|00000220| 38 20 31 37 3a 33 34 3a | 31 34 20 50 44 54 0a 44 |8 17:34:|14 PDT.D|
|00000230| 61 74 65 3a 20 54 75 65 | 2c 20 32 38 20 4a 75 6e |ate: Tue|, 28 Jun|
|00000240| 20 38 38 20 31 37 3a 33 | 34 3a 31 34 20 50 44 54 | 88 17:3|4:14 PDT|
|00000250| 0a 46 72 6f 6d 3a 20 72 | 6f 6f 74 40 6a 70 6c 2d |.From: r|oot@jpl-|
|00000260| 64 65 76 76 61 78 2e 6a | 70 6c 2e 6e 61 73 61 2e |devvax.j|pl.nasa.|
|00000270| 67 6f 76 20 28 54 68 65 | 20 53 75 70 65 72 75 73 |gov (The| Superus|
|00000280| 65 72 29 0a 4d 65 73 73 | 61 67 65 2d 49 64 3a 20 |er).Mess|age-Id: |
|00000290| 3c 38 38 30 36 32 39 30 | 30 33 34 2e 41 41 32 35 |<8806290|034.AA25|
|000002a0| 35 32 30 40 64 65 76 76 | 61 78 2e 4a 70 6c 2e 4e |520@devv|ax.Jpl.N|
|000002b0| 61 73 61 2e 47 6f 76 3e | 0a 53 75 62 6a 65 63 74 |asa.Gov>|.Subject|
|000002c0| 3a 20 70 65 72 6c 20 32 | 2e 30 20 70 61 74 63 68 |: perl 2|.0 patch|
|000002d0| 20 23 31 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e | #1.Orga|nization|
|000002e0| 3a 20 4a 65 74 20 50 72 | 6f 70 75 6c 73 69 6f 6e |: Jet Pr|opulsion|
|000002f0| 20 4c 61 62 6f 72 61 74 | 6f 72 79 2c 20 50 61 73 | Laborat|ory, Pas|
|00000300| 61 64 65 6e 61 2c 20 43 | 41 0a 41 70 70 61 72 65 |adena, C|A.Appare|
|00000310| 6e 74 6c 79 2d 54 6f 3a | 20 73 6f 75 72 63 65 2d |ntly-To:| source-|
|00000320| 70 61 74 63 68 65 73 40 | 75 75 6e 65 74 2e 75 75 |patches@|uunet.uu|
|00000330| 2e 6e 65 74 0a 53 74 61 | 74 75 73 3a 20 52 0a 0a |.net.Sta|tus: R..|
|00000340| 5b 54 68 65 20 6c 61 74 | 65 73 74 20 70 61 74 63 |[The lat|est patc|
|00000350| 68 20 66 6f 72 20 70 65 | 72 6c 20 76 65 72 73 69 |h for pe|rl versi|
|00000360| 6f 6e 20 32 2e 30 20 69 | 73 20 23 31 2e 5d 0a 0a |on 2.0 i|s #1.]..|
|00000370| 53 79 73 74 65 6d 3a 20 | 70 65 72 6c 20 76 65 72 |System: |perl ver|
|00000380| 73 69 6f 6e 20 32 2e 30 | 0a 50 61 74 63 68 20 23 |sion 2.0|.Patch #|
|00000390| 3a 20 31 0a 50 72 69 6f | 72 69 74 79 3a 20 4d 45 |: 1.Prio|rity: ME|
|000003a0| 44 49 55 4d 0a 53 75 62 | 6a 65 63 74 3a 20 61 75 |DIUM.Sub|ject: au|
|000003b0| 74 6f 69 6e 63 72 65 6d | 65 6e 74 20 6f 66 20 27 |toincrem|ent of '|
|000003c0| 27 20 64 69 64 6e 27 74 | 20 77 6f 72 6b 20 72 69 |' didn't| work ri|
|000003d0| 67 68 74 2e 0a 53 75 62 | 6a 65 63 74 3a 20 74 72 |ght..Sub|ject: tr|
|000003e0| 2f 78 2f 79 2f 20 63 61 | 6e 20 64 75 6d 70 20 63 |/x/y/ ca|n dump c|
|000003f0| 6f 72 65 20 69 66 20 79 | 20 69 73 20 73 68 6f 72 |ore if y| is shor|
|00000400| 74 65 72 20 74 68 61 6e | 20 78 0a 53 75 62 6a 65 |ter than| x.Subje|
|00000410| 63 74 3a 20 61 64 64 65 | 64 20 73 75 70 70 6f 72 |ct: adde|d suppor|
|00000420| 74 20 66 6f 72 20 44 4f | 53 55 49 44 0a 53 75 62 |t for DO|SUID.Sub|
|00000430| 6a 65 63 74 3a 20 69 6e | 20 43 6f 6e 66 69 67 75 |ject: in| Configu|
|00000440| 72 65 2c 20 66 69 78 20 | 66 6f 72 20 6d 61 63 68 |re, fix |for mach|
|00000450| 69 6e 65 73 20 74 68 61 | 74 20 63 61 6e 27 74 20 |ines tha|t can't |
|00000460| 64 6f 20 23 2f 2a 75 6e | 64 65 66 0a 53 75 62 6a |do #/*un|def.Subj|
|00000470| 65 63 74 3a 20 69 6e 20 | 43 6f 6e 66 69 67 75 72 |ect: in |Configur|
|00000480| 65 2c 20 72 65 74 75 72 | 6e 20 63 6f 64 65 20 66 |e, retur|n code f|
|00000490| 72 6f 6d 20 61 72 20 77 | 61 73 20 69 67 6e 6f 72 |rom ar w|as ignor|
|000004a0| 65 64 0a 53 75 62 6a 65 | 63 74 3a 20 69 6e 20 43 |ed.Subje|ct: in C|
|000004b0| 6f 6e 66 69 67 75 72 65 | 2c 20 43 72 61 79 20 75 |onfigure|, Cray u|
|000004c0| 73 65 73 20 62 6c 64 20 | 69 6e 73 74 65 61 64 20 |ses bld |instead |
|000004d0| 6f 66 20 61 72 0a 53 75 | 62 6a 65 63 74 3a 20 69 |of ar.Su|bject: i|
|000004e0| 6e 20 43 6f 6e 66 69 67 | 75 72 65 2c 20 47 6e 75 |n Config|ure, Gnu|
|000004f0| 63 70 70 20 61 64 64 73 | 20 73 70 61 63 65 20 61 |cpp adds| space a|
|00000500| 66 74 65 72 20 73 79 6d | 62 6f 6c 20 69 6e 74 65 |fter sym|bol inte|
|00000510| 72 70 6f 6c 61 74 69 6f | 6e 0a 53 75 62 6a 65 63 |rpolatio|n.Subjec|
|00000520| 74 3a 20 69 6e 20 43 6f | 6e 66 69 67 75 72 65 2c |t: in Co|nfigure,|
|00000530| 20 67 72 65 70 20 27 2d | 69 27 20 73 68 6f 75 6c | grep '-|i' shoul|
|00000540| 64 20 62 65 20 67 72 65 | 70 20 27 5c 2d 69 27 0a |d be gre|p '\-i'.|
|00000550| 53 75 62 6a 65 63 74 3a | 20 43 6f 6e 66 69 67 75 |Subject:| Configu|
|00000560| 72 65 20 73 68 6f 75 6c | 64 20 72 65 6d 6f 76 65 |re shoul|d remove|
|00000570| 20 55 55 20 73 75 62 64 | 69 72 65 63 74 6f 72 79 | UU subd|irectory|
|00000580| 20 65 6e 74 69 72 65 6c | 79 0a 53 75 62 6a 65 63 | entirel|y.Subjec|
|00000590| 74 3a 20 72 65 61 6c 63 | 6c 65 61 6e 20 6e 6f 77 |t: realc|lean now|
|000005a0| 20 6b 6e 6f 77 73 20 61 | 62 6f 75 74 20 7e 20 65 | knows a|bout ~ e|
|000005b0| 78 74 65 6e 73 69 6f 6e | 0a 53 75 62 6a 65 63 74 |xtension|.Subject|
|000005c0| 3a 20 66 69 78 65 64 20 | 73 6f 6d 65 20 71 75 6f |: fixed |some quo|
|000005d0| 74 65 73 20 69 6e 20 6d | 61 6e 75 61 6c 20 70 61 |tes in m|anual pa|
|000005e0| 67 65 0a 53 75 62 6a 65 | 63 74 3a 20 63 6c 61 72 |ge.Subje|ct: clar|
|000005f0| 69 66 69 65 64 20 73 79 | 6e 74 61 78 20 6f 66 20 |ified sy|ntax of |
|00000600| 4c 49 53 54 20 69 6e 20 | 6d 61 6e 75 61 6c 20 70 |LIST in |manual p|
|00000610| 61 67 65 0a 53 75 62 6a | 65 63 74 3a 20 63 6c 61 |age.Subj|ect: cla|
|00000620| 72 69 66 69 65 64 20 73 | 65 6d 61 6e 74 69 63 73 |rified s|emantics|
|00000630| 20 6f 66 20 73 74 75 64 | 79 20 69 6e 20 6d 61 6e | of stud|y in man|
|00000640| 75 61 6c 20 70 61 67 65 | 0a 53 75 62 6a 65 63 74 |ual page|.Subject|
|00000650| 3a 20 61 64 64 65 64 20 | 65 78 61 6d 70 6c 65 20 |: added |example |
|00000660| 6f 66 20 79 20 77 69 74 | 68 20 73 68 6f 72 74 20 |of y wit|h short |
|00000670| 73 65 63 6f 6e 64 20 73 | 74 72 69 6e 67 20 69 6e |second s|tring in|
|00000680| 20 6d 61 6e 75 61 6c 20 | 70 61 67 65 0a 53 75 62 | manual |page.Sub|
|00000690| 6a 65 63 74 3a 20 61 64 | 64 65 64 20 65 78 61 6d |ject: ad|ded exam|
|000006a0| 70 6c 65 20 6f 66 20 75 | 6e 6c 69 6e 6b 20 77 69 |ple of u|nlink wi|
|000006b0| 74 68 20 3c 2a 3e 20 69 | 6e 20 6d 61 6e 75 61 6c |th <*> i|n manual|
|000006c0| 20 70 61 67 65 0a 53 75 | 62 6a 65 63 74 3a 20 72 | page.Su|bject: r|
|000006d0| 65 6d 6f 76 65 64 20 72 | 65 64 75 6e 64 61 6e 74 |emoved r|edundant|
|000006e0| 20 64 65 62 75 67 67 69 | 6e 67 20 63 6f 64 65 20 | debuggi|ng code |
|000006f0| 69 6e 20 72 65 67 65 78 | 70 2e 63 0a 0a 44 65 73 |in regex|p.c..Des|
|00000700| 63 72 69 70 74 69 6f 6e | 3a 0a 09 49 66 20 79 6f |cription|:..If yo|
|00000710| 75 20 75 73 65 64 20 2b | 2b 20 6f 6e 20 61 20 76 |u used +|+ on a v|
|00000720| 61 72 69 61 62 6c 65 20 | 74 68 61 74 20 68 61 64 |ariable |that had|
|00000730| 20 74 68 65 20 76 61 6c | 75 65 20 27 27 20 28 61 | the val|ue '' (a|
|00000740| 73 20 6f 70 70 6f 73 65 | 64 20 74 6f 0a 09 62 65 |s oppose|d to..be|
|00000750| 69 6e 67 20 75 6e 64 65 | 66 69 6e 65 64 29 20 69 |ing unde|fined) i|
|00000760| 74 20 77 6f 75 6c 64 20 | 69 6e 63 72 65 6d 65 6e |t would |incremen|
|00000770| 74 20 74 68 65 20 6e 75 | 6d 65 72 69 63 20 70 61 |t the nu|meric pa|
|00000780| 72 74 20 62 75 74 20 6e | 6f 74 0a 09 69 6e 76 61 |rt but n|ot..inva|
|00000790| 6c 69 64 61 74 65 20 74 | 68 65 20 73 74 72 69 6e |lidate t|he strin|
|000007a0| 67 20 70 61 72 74 2c 20 | 77 68 69 63 68 20 63 6f |g part, |which co|
|000007b0| 75 6c 64 20 74 68 65 6e | 20 67 69 76 65 20 66 61 |uld then| give fa|
|000007c0| 6c 73 65 20 72 65 73 75 | 6c 74 73 2e 0a 0a 09 42 |lse resu|lts....B|
|000007d0| 65 72 6b 65 6c 65 79 20 | 72 65 63 65 6e 74 6c 79 |erkeley |recently|
|000007e0| 20 73 65 6e 74 20 6f 75 | 74 20 61 20 70 61 74 63 | sent ou|t a patc|
|000007f0| 68 20 74 68 61 74 20 64 | 69 73 61 62 6c 65 73 20 |h that d|isables |
|00000800| 73 65 74 75 69 64 20 23 | 21 20 73 63 72 69 70 74 |setuid #|! script|
|00000810| 73 0a 09 62 65 63 61 75 | 73 65 20 6f 66 20 61 6e |s..becau|se of an|
|00000820| 20 69 6e 68 65 72 65 6e | 74 20 70 72 6f 62 6c 65 | inheren|t proble|
|00000830| 6d 20 69 6e 20 74 68 65 | 20 73 65 6d 61 6e 74 69 |m in the| semanti|
|00000840| 63 73 20 61 73 20 74 68 | 65 79 20 61 72 65 0a 09 |cs as th|ey are..|
|00000850| 63 75 72 72 65 6e 74 6c | 79 20 64 65 66 69 6e 65 |currentl|y define|
|00000860| 64 2e 20 20 49 66 20 79 | 6f 75 20 68 61 76 65 20 |d. If y|ou have |
|00000870| 69 6e 73 74 61 6c 6c 65 | 64 20 74 68 61 74 20 70 |installe|d that p|
|00000880| 61 74 63 68 2c 20 79 6f | 75 72 20 73 65 74 75 69 |atch, yo|ur setui|
|00000890| 64 0a 09 61 6e 64 20 73 | 65 74 67 69 64 20 62 69 |d..and s|etgid bi|
|000008a0| 74 73 20 61 72 65 20 75 | 73 65 6c 65 73 73 20 6f |ts are u|seless o|
|000008b0| 6e 20 73 63 72 69 70 74 | 73 2e 20 20 49 27 76 65 |n script|s. I've|
|000008c0| 20 61 64 64 65 64 20 61 | 20 6d 65 61 6e 73 0a 09 | added a| means..|
|000008d0| 66 6f 72 20 70 65 72 6c | 20 74 6f 20 65 78 61 6d |for perl| to exam|
|000008e0| 69 6e 65 20 74 68 6f 73 | 65 20 62 69 74 73 20 61 |ine thos|e bits a|
|000008f0| 6e 64 20 65 6d 75 6c 61 | 74 65 20 73 65 74 75 69 |nd emula|te setui|
|00000900| 64 2f 73 65 74 67 69 64 | 20 73 63 72 69 70 74 73 |d/setgid| scripts|
|00000910| 0a 09 69 74 73 65 6c 66 | 20 69 6e 20 77 68 61 74 |..itself| in what|
|00000920| 20 49 20 62 65 6c 69 65 | 76 65 20 69 73 20 61 20 | I belie|ve is a |
|00000930| 73 65 63 75 72 65 20 6d | 61 6e 6e 65 72 2e 20 20 |secure m|anner. |
|00000940| 49 66 20 6e 6f 72 6d 61 | 6c 20 70 65 72 6c 0a 09 |If norma|l perl..|
|00000950| 64 65 74 65 63 74 73 20 | 73 75 63 68 20 61 20 73 |detects |such a s|
|00000960| 63 72 69 70 74 2c 20 69 | 74 20 70 61 73 73 65 73 |cript, i|t passes|
|00000970| 20 69 74 20 6f 66 66 20 | 74 6f 20 61 6e 6f 74 68 | it off |to anoth|
|00000980| 65 72 20 76 65 72 73 69 | 6f 6e 20 6f 66 0a 09 70 |er versi|on of..p|
|00000990| 65 72 6c 20 74 68 61 74 | 20 72 75 6e 73 20 73 65 |erl that| runs se|
|000009a0| 74 75 69 64 20 72 6f 6f | 74 2c 20 61 6e 64 20 63 |tuid roo|t, and c|
|000009b0| 61 6e 20 72 75 6e 20 74 | 68 65 20 73 63 72 69 70 |an run t|he scrip|
|000009c0| 74 20 75 6e 64 65 72 20 | 74 68 65 0a 09 64 65 73 |t under |the..des|
|000009d0| 69 72 65 64 20 75 69 64 | 2f 67 69 64 2e 20 20 54 |ired uid|/gid. T|
|000009e0| 68 69 73 20 66 65 61 74 | 75 72 65 20 69 73 20 6f |his feat|ure is o|
|000009f0| 70 74 69 6f 6e 61 6c 2c | 20 61 6e 64 20 43 6f 6e |ptional,| and Con|
|00000a00| 66 69 67 75 72 65 20 77 | 69 6c 6c 0a 09 61 73 6b |figure w|ill..ask|
|00000a10| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|00000a20| 64 6f 20 69 74 2e 0a 0a | 09 53 6f 6d 65 20 6d 61 |do it...|.Some ma|
|00000a30| 63 68 69 6e 65 73 20 64 | 69 64 6e 27 74 20 6c 69 |chines d|idn't li|
|00000a40| 6b 65 20 63 6f 6e 66 69 | 67 2e 68 20 77 68 65 6e |ke confi|g.h when|
|00000a50| 20 69 74 20 73 61 69 64 | 20 23 2f 2a 75 6e 64 65 | it said| #/*unde|
|00000a60| 66 20 53 59 4d 42 4f 4c | 2e 0a 09 43 6f 6e 66 69 |f SYMBOL|...Confi|
|00000a70| 67 2e 68 2e 53 48 20 6e | 6f 77 20 69 73 20 73 6d |g.h.SH n|ow is sm|
|00000a80| 61 72 74 20 65 6e 6f 75 | 67 68 20 74 6f 20 74 75 |art enou|gh to tu|
|00000a90| 63 6b 20 74 68 65 20 23 | 20 69 6e 73 69 64 65 20 |ck the #| inside |
|00000aa0| 74 68 65 20 63 6f 6d 6d | 65 6e 74 2e 0a 0a 09 54 |the comm|ent....T|
|00000ab0| 68 65 72 65 20 77 65 72 | 65 20 73 65 76 65 72 61 |here wer|e severa|
|00000ac0| 6c 20 73 6d 61 6c 6c 20 | 70 72 6f 62 6c 65 6d 73 |l small |problems|
|00000ad0| 20 69 6e 20 43 6f 6e 66 | 69 67 75 72 65 3a 20 74 | in Conf|igure: t|
|00000ae0| 68 65 20 72 65 74 75 72 | 6e 20 63 6f 64 65 20 66 |he retur|n code f|
|00000af0| 72 6f 6d 0a 09 61 72 20 | 77 61 73 20 68 69 64 64 |rom..ar |was hidd|
|00000b00| 65 6e 20 62 79 20 61 20 | 70 69 70 65 64 20 63 61 |en by a |piped ca|
|00000b10| 6c 6c 20 74 6f 20 73 65 | 64 2c 20 73 6f 20 69 66 |ll to se|d, so if|
|00000b20| 20 61 72 20 66 61 69 6c | 65 64 20 69 74 20 77 65 | ar fail|ed it we|
|00000b30| 6e 74 0a 09 75 6e 64 65 | 74 65 63 74 65 64 2e 20 |nt..unde|tected. |
|00000b40| 20 54 68 65 20 43 72 61 | 79 20 75 73 65 73 20 61 | The Cra|y uses a|
|00000b50| 20 70 72 6f 67 72 61 6d | 20 63 61 6c 6c 65 64 20 | program| called |
|00000b60| 62 6c 64 20 69 6e 73 74 | 65 61 64 20 6f 66 20 61 |bld inst|ead of a|
|00000b70| 72 2e 0a 09 4c 65 74 27 | 73 20 68 65 61 72 20 69 |r...Let'|s hear i|
|00000b80| 74 20 66 6f 72 20 63 6f | 6d 70 61 74 69 62 69 6c |t for co|mpatibil|
|00000b90| 74 79 2e 20 20 41 74 20 | 6c 65 61 73 74 20 6f 6e |ty. At |least on|
|00000ba0| 65 20 76 65 72 73 69 6f | 6e 20 6f 66 20 67 6e 75 |e versio|n of gnu|
|00000bb0| 63 70 70 0a 09 61 64 64 | 73 20 61 20 73 70 61 63 |cpp..add|s a spac|
|00000bc0| 65 20 61 66 74 65 72 20 | 73 79 6d 62 6f 6c 20 69 |e after |symbol i|
|00000bd0| 6e 74 65 72 70 6f 6c 61 | 74 69 6f 6e 2c 20 77 68 |nterpola|tion, wh|
|00000be0| 69 63 68 20 77 61 73 20 | 67 69 76 69 6e 67 20 74 |ich was |giving t|
|00000bf0| 68 65 0a 09 43 20 70 72 | 65 70 72 6f 63 65 73 73 |he..C pr|eprocess|
|00000c00| 6f 72 20 64 65 74 65 63 | 74 6f 72 20 66 69 74 73 |or detec|tor fits|
|00000c10| 2e 20 20 54 68 65 72 65 | 20 77 61 73 20 61 20 63 |. There| was a c|
|00000c20| 61 6c 6c 20 74 6f 20 67 | 72 65 70 20 27 2d 69 27 |all to g|rep '-i'|
|00000c30| 20 74 68 61 74 0a 09 6e | 65 65 64 65 64 20 74 6f | that..n|eeded to|
|00000c40| 20 68 61 76 65 20 74 68 | 65 20 2d 69 20 70 72 6f | have th|e -i pro|
|00000c50| 74 65 63 74 65 64 20 62 | 79 20 61 20 62 61 63 6b |tected b|y a back|
|00000c60| 73 6c 61 73 68 2e 20 20 | 41 6c 73 6f 2c 20 43 6f |slash. |Also, Co|
|00000c70| 6e 66 69 67 75 72 65 0a | 09 73 68 6f 75 6c 64 20 |nfigure.|.should |
|00000c80| 72 65 6d 6f 76 65 20 74 | 68 65 20 55 55 20 73 75 |remove t|he UU su|
|00000c90| 62 64 69 72 65 63 74 6f | 72 79 20 74 68 61 74 20 |bdirecto|ry that |
|00000ca0| 69 74 20 6d 61 6b 65 73 | 20 77 68 69 6c 65 20 72 |it makes| while r|
|00000cb0| 75 6e 6e 69 6e 67 2e 0a | 0a 09 22 6d 61 6b 65 20 |unning..|.."make |
|00000cc0| 72 65 61 6c 63 6c 65 61 | 6e 22 20 6e 6f 77 20 6b |realclea|n" now k|
|00000cd0| 6e 6f 77 73 20 61 62 6f | 75 74 20 74 68 65 20 61 |nows abo|ut the a|
|00000ce0| 6c 74 65 72 6e 61 74 65 | 20 70 61 74 63 68 20 65 |lternate| patch e|
|00000cf0| 78 74 65 6e 73 69 6f 6e | 20 7e 2e 0a 0a 09 49 6e |xtension| ~....In|
|00000d00| 20 74 68 65 20 6d 61 6e | 75 61 6c 20 70 61 67 65 | the man|ual page|
|00000d10| 2c 20 49 20 66 69 78 65 | 64 20 73 6f 6d 65 20 71 |, I fixe|d some q|
|00000d20| 75 6f 74 65 73 20 74 68 | 61 74 20 77 65 72 65 20 |uotes th|at were |
|00000d30| 75 67 6c 79 20 69 6e 20 | 74 72 6f 66 66 2c 0a 09 |ugly in |troff,..|
|00000d40| 61 6e 64 20 64 69 64 20 | 73 6f 6d 65 20 63 6c 61 |and did |some cla|
|00000d50| 72 69 66 69 63 61 74 69 | 6f 6e 20 6f 66 20 4c 49 |rificati|on of LI|
|00000d60| 53 54 2c 20 73 74 75 64 | 79 2c 20 74 72 20 61 6e |ST, stud|y, tr an|
|00000d70| 64 20 75 6e 6c 69 6e 6b | 2e 0a 0a 09 72 65 67 65 |d unlink|....rege|
|00000d80| 78 70 2e 63 20 68 61 64 | 20 73 6f 6d 65 20 72 65 |xp.c had| some re|
|00000d90| 64 75 6e 64 61 6e 74 20 | 64 65 62 75 67 67 69 6e |dundant |debuggin|
|00000da0| 67 20 63 6f 64 65 2e 0a | 0a 09 74 72 2f 78 2f 79 |g code..|..tr/x/y|
|00000db0| 2f 20 63 6f 75 6c 64 20 | 64 75 6d 70 20 63 6f 72 |/ could |dump cor|
|00000dc0| 65 20 69 66 20 79 20 69 | 73 20 73 68 6f 72 74 65 |e if y i|s shorte|
|00000dd0| 72 20 74 68 61 6e 20 78 | 2e 20 20 49 20 66 6f 75 |r than x|. I fou|
|00000de0| 6e 64 20 74 68 69 73 20 | 6f 75 74 0a 09 77 68 65 |nd this |out..whe|
|00000df0| 6e 20 49 20 74 72 69 65 | 64 20 74 72 61 6e 73 6c |n I trie|d transl|
|00000e00| 61 74 69 6e 67 20 61 20 | 62 75 6e 63 68 20 6f 66 |ating a |bunch of|
|00000e10| 20 63 68 61 72 61 63 74 | 65 72 73 20 74 6f 20 73 | charact|ers to s|
|00000e20| 70 61 63 65 20 62 79 20 | 73 61 79 69 6e 67 0a 09 |pace by |saying..|
|00000e30| 73 6f 6d 65 74 68 69 6e | 67 20 6c 69 6b 65 20 79 |somethin|g like y|
|00000e40| 2f 61 2d 7a 2f 20 2f 2e | 0a 0a 46 69 78 3a 09 46 |/a-z/ /.|..Fix:.F|
|00000e50| 72 6f 6d 20 72 6e 2c 20 | 73 61 79 20 22 7c 20 70 |rom rn, |say "| p|
|00000e60| 61 74 63 68 20 2d 70 20 | 2d 4e 20 2d 64 20 44 49 |atch -p |-N -d DI|
|00000e70| 52 22 2c 20 77 68 65 72 | 65 20 44 49 52 20 69 73 |R", wher|e DIR is|
|00000e80| 20 79 6f 75 72 20 70 65 | 72 6c 20 73 6f 75 72 63 | your pe|rl sourc|
|00000e90| 65 0a 09 64 69 72 65 63 | 74 6f 72 79 2e 20 20 4f |e..direc|tory. O|
|00000ea0| 75 74 73 69 64 65 20 6f | 66 20 72 6e 2c 20 73 61 |utside o|f rn, sa|
|00000eb0| 79 20 22 63 64 20 44 49 | 52 3b 20 70 61 74 63 68 |y "cd DI|R; patch|
|00000ec0| 20 2d 70 20 2d 4e 20 3c | 74 68 69 73 61 72 74 69 | -p -N <|thisarti|
|00000ed0| 63 6c 65 22 2e 0a 09 49 | 66 20 79 6f 75 20 64 6f |cle"...I|f you do|
|00000ee0| 6e 27 74 20 68 61 76 65 | 20 74 68 65 20 70 61 74 |n't have| the pat|
|00000ef0| 63 68 20 70 72 6f 67 72 | 61 6d 2c 20 61 70 70 6c |ch progr|am, appl|
|00000f00| 79 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |y the fo|llowing |
|00000f10| 62 79 20 68 61 6e 64 2c | 0a 09 6f 72 20 67 65 74 |by hand,|..or get|
|00000f20| 20 70 61 74 63 68 20 28 | 76 65 72 73 69 6f 6e 20 | patch (|version |
|00000f30| 32 2e 30 2c 20 6c 61 74 | 65 73 74 20 70 61 74 63 |2.0, lat|est patc|
|00000f40| 68 6c 65 76 65 6c 29 2e | 0a 0a 09 41 66 74 65 72 |hlevel).|...After|
|00000f50| 20 70 61 74 63 68 69 6e | 67 3a 0a 09 09 43 6f 6e | patchin|g:...Con|
|00000f60| 66 69 67 75 72 65 0a 09 | 09 6d 61 6b 65 20 64 65 |figure..|.make de|
|00000f70| 70 65 6e 64 0a 09 09 6d | 61 6b 65 0a 09 09 6d 61 |pend...m|ake...ma|
|00000f80| 6b 65 20 74 65 73 74 0a | 09 09 6d 61 6b 65 20 69 |ke test.|..make i|
|00000f90| 6e 73 74 61 6c 6c 0a 0a | 09 49 66 20 70 61 74 63 |nstall..|.If patc|
|00000fa0| 68 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 61 74 |h indica|tes that|
|00000fb0| 20 70 61 74 63 68 6c 65 | 76 65 6c 20 69 73 20 74 | patchle|vel is t|
|00000fc0| 68 65 20 77 72 6f 6e 67 | 20 76 65 72 73 69 6f 6e |he wrong| version|
|00000fd0| 2c 20 79 6f 75 20 6d 61 | 79 20 6e 65 65 64 0a 09 |, you ma|y need..|
|00000fe0| 74 6f 20 61 70 70 6c 79 | 20 6f 6e 65 20 6f 72 20 |to apply| one or |
|00000ff0| 6d 6f 72 65 20 70 72 65 | 76 69 6f 75 73 20 70 61 |more pre|vious pa|
|00001000| 74 63 68 65 73 2c 20 6f | 72 20 74 68 65 20 70 61 |tches, o|r the pa|
|00001010| 74 63 68 20 6d 61 79 20 | 61 6c 72 65 61 64 79 0a |tch may |already.|
|00001020| 09 68 61 76 65 20 62 65 | 65 6e 20 61 70 70 6c 69 |.have be|en appli|
|00001030| 65 64 2e 20 20 53 65 65 | 20 74 68 65 20 70 61 74 |ed. See| the pat|
|00001040| 63 68 6c 65 76 65 6c 2e | 68 20 66 69 6c 65 20 74 |chlevel.|h file t|
|00001050| 6f 20 66 69 6e 64 20 6f | 75 74 20 77 68 61 74 20 |o find o|ut what |
|00001060| 68 61 73 20 6f 72 0a 09 | 68 61 73 20 6e 6f 74 20 |has or..|has not |
|00001070| 62 65 65 6e 20 61 70 70 | 6c 69 65 64 2e 20 20 49 |been app|lied. I|
|00001080| 6e 20 61 6e 79 20 65 76 | 65 6e 74 2c 20 64 6f 6e |n any ev|ent, don|
|00001090| 27 74 20 63 6f 6e 74 69 | 6e 75 65 20 77 69 74 68 |'t conti|nue with|
|000010a0| 20 74 68 65 20 70 61 74 | 63 68 2e 0a 0a 09 49 66 | the pat|ch....If|
|000010b0| 20 79 6f 75 20 61 72 65 | 20 6d 69 73 73 69 6e 67 | you are| missing|
|000010c0| 20 70 72 65 76 69 6f 75 | 73 20 70 61 74 63 68 65 | previou|s patche|
|000010d0| 73 20 74 68 65 79 20 63 | 61 6e 20 62 65 20 6f 62 |s they c|an be ob|
|000010e0| 74 61 69 6e 65 64 20 66 | 72 6f 6d 20 6d 65 3a 0a |tained f|rom me:.|
|000010f0| 0a 09 4c 61 72 72 79 20 | 57 61 6c 6c 0a 09 6c 77 |..Larry |Wall..lw|
|00001100| 61 6c 6c 40 6a 70 6c 2d | 64 65 76 76 61 78 2e 6a |all@jpl-|devvax.j|
|00001110| 70 6c 2e 6e 61 73 61 2e | 67 6f 76 0a 0a 09 49 66 |pl.nasa.|gov...If|
|00001120| 20 79 6f 75 20 73 65 6e | 64 20 61 20 6d 61 69 6c | you sen|d a mail|
|00001130| 20 6d 65 73 73 61 67 65 | 20 6f 66 20 74 68 65 20 | message| of the |
|00001140| 66 6f 6c 6c 6f 77 69 6e | 67 20 66 6f 72 6d 20 69 |followin|g form i|
|00001150| 74 20 77 69 6c 6c 20 67 | 72 65 61 74 6c 79 20 73 |t will g|reatly s|
|00001160| 70 65 65 64 0a 09 70 72 | 6f 63 65 73 73 69 6e 67 |peed..pr|ocessing|
|00001170| 3a 0a 0a 09 53 75 62 6a | 65 63 74 3a 20 43 6f 6d |:...Subj|ect: Com|
|00001180| 6d 61 6e 64 0a 09 40 53 | 48 20 6d 61 69 6c 70 61 |mand..@S|H mailpa|
|00001190| 74 63 68 20 50 41 54 48 | 20 70 65 72 6c 20 32 2e |tch PATH| perl 2.|
|000011a0| 30 20 4c 49 53 54 0a 09 | 09 20 20 20 5e 20 6e 6f |0 LIST..|. ^ no|
|000011b0| 74 65 20 74 68 65 20 63 | 0a 0a 09 77 68 65 72 65 |te the c|...where|
|000011c0| 20 50 41 54 48 20 69 73 | 20 61 20 72 65 74 75 72 | PATH is| a retur|
|000011d0| 6e 20 70 61 74 68 20 46 | 52 4f 4d 20 4d 45 20 54 |n path F|ROM ME T|
|000011e0| 4f 20 59 4f 55 20 65 69 | 74 68 65 72 20 69 6e 20 |O YOU ei|ther in |
|000011f0| 49 6e 74 65 72 6e 65 74 | 20 6e 6f 74 61 74 69 6f |Internet| notatio|
|00001200| 6e 2c 0a 09 6f 72 20 69 | 6e 20 62 61 6e 67 20 6e |n,..or i|n bang n|
|00001210| 6f 74 61 74 69 6f 6e 20 | 66 72 6f 6d 20 73 6f 6d |otation |from som|
|00001220| 65 20 77 65 6c 6c 2d 6b | 6e 6f 77 6e 20 68 6f 73 |e well-k|nown hos|
|00001230| 74 2c 20 61 6e 64 20 4c | 49 53 54 20 69 73 20 74 |t, and L|IST is t|
|00001240| 68 65 20 6e 75 6d 62 65 | 72 0a 09 6f 66 20 6f 6e |he numbe|r..of on|
|00001250| 65 20 6f 72 20 6d 6f 72 | 65 20 70 61 74 63 68 65 |e or mor|e patche|
|00001260| 73 20 79 6f 75 20 6e 65 | 65 64 2c 20 73 65 70 61 |s you ne|ed, sepa|
|00001270| 72 61 74 65 64 20 62 79 | 20 73 70 61 63 65 73 2c |rated by| spaces,|
|00001280| 20 63 6f 6d 6d 61 73 2c | 20 61 6e 64 2f 6f 72 0a | commas,| and/or.|
|00001290| 09 68 79 70 68 65 6e 73 | 2e 20 20 53 61 79 69 6e |.hyphens|. Sayin|
|000012a0| 67 20 33 35 2d 20 73 61 | 79 73 20 65 76 65 72 79 |g 35- sa|ys every|
|000012b0| 74 68 69 6e 67 20 66 72 | 6f 6d 20 33 35 20 74 6f |thing fr|om 35 to|
|000012c0| 20 74 68 65 20 65 6e 64 | 2e 0a 0a 09 59 6f 75 20 | the end|....You |
|000012d0| 63 61 6e 20 61 6c 73 6f | 20 67 65 74 20 74 68 65 |can also| get the|
|000012e0| 20 70 61 74 63 68 65 73 | 20 76 69 61 20 61 6e 6f | patches| via ano|
|000012f0| 6e 79 6d 6f 75 73 20 46 | 54 50 20 66 72 6f 6d 0a |nymous F|TP from.|
|00001300| 09 6a 70 6c 2d 64 65 76 | 76 61 78 2e 6a 70 6c 2e |.jpl-dev|vax.jpl.|
|00001310| 6e 61 73 61 2e 67 6f 76 | 20 28 31 32 38 2e 31 34 |nasa.gov| (128.14|
|00001320| 39 2e 38 2e 34 33 29 2e | 0a 0a 49 6e 64 65 78 3a |9.8.43).|..Index:|
|00001330| 20 70 61 74 63 68 6c 65 | 76 65 6c 2e 68 0a 50 72 | patchle|vel.h.Pr|
|00001340| 65 72 65 71 3a 20 30 0a | 31 63 31 0a 3c 20 23 64 |ereq: 0.|1c1.< #d|
|00001350| 65 66 69 6e 65 20 50 41 | 54 43 48 4c 45 56 45 4c |efine PA|TCHLEVEL|
|00001360| 20 30 0a 2d 2d 2d 0a 3e | 20 23 64 65 66 69 6e 65 | 0.---.>| #define|
|00001370| 20 50 41 54 43 48 4c 45 | 56 45 4c 20 31 0a 0a 49 | PATCHLE|VEL 1..I|
|00001380| 6e 64 65 78 3a 20 43 6f | 6e 66 69 67 75 72 65 0a |ndex: Co|nfigure.|
|00001390| 50 72 65 72 65 71 3a 20 | 32 2e 30 0a 2a 2a 2a 20 |Prereq: |2.0.*** |
|000013a0| 43 6f 6e 66 69 67 75 72 | 65 2e 6f 6c 64 09 54 75 |Configur|e.old.Tu|
|000013b0| 65 20 4a 75 6e 20 32 38 | 20 31 36 3a 34 30 3a 30 |e Jun 28| 16:40:0|
|000013c0| 33 20 31 39 38 38 0a 2d | 2d 2d 20 43 6f 6e 66 69 |3 1988.-|-- Confi|
|000013d0| 67 75 72 65 09 54 75 65 | 20 4a 75 6e 20 32 38 20 |gure.Tue| Jun 28 |
|000013e0| 31 36 3a 34 30 3a 30 34 | 20 31 39 38 38 0a 2a 2a |16:40:04| 1988.**|
|000013f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0a 2a 2a |********|*****.**|
|00001400| 2a 20 38 2c 31 34 20 2a | 2a 2a 2a 0a 20 20 23 20 |* 8,14 *|***. # |
|00001410| 61 6e 64 20 65 64 69 74 | 20 69 74 20 74 6f 20 72 |and edit| it to r|
|00001420| 65 66 6c 65 63 74 20 79 | 6f 75 72 20 73 79 73 74 |eflect y|our syst|
|00001430| 65 6d 2e 20 20 53 6f 6d | 65 20 70 61 63 6b 61 67 |em. Som|e packag|
|00001440| 65 73 20 6d 61 79 20 69 | 6e 63 6c 75 64 65 20 73 |es may i|nclude s|
|00001450| 61 6d 70 6c 65 73 0a 20 | 20 23 20 6f 66 20 63 6f |amples. | # of co|
|00001460| 6e 66 69 67 2e 68 20 66 | 6f 72 20 63 65 72 74 61 |nfig.h f|or certa|
|00001470| 69 6e 20 6d 61 63 68 69 | 6e 65 73 2c 20 73 6f 20 |in machi|nes, so |
|00001480| 79 6f 75 20 6d 69 67 68 | 74 20 6c 6f 6f 6b 20 66 |you migh|t look f|
|00001490| 6f 72 20 6f 6e 65 20 6f | 66 20 74 68 6f 73 65 2e |or one o|f those.|
|000014a0| 29 0a 20 20 23 0a 21 20 | 23 20 24 48 65 61 64 65 |). #.! |# $Heade|
|000014b0| 72 3a 20 43 6f 6e 66 69 | 67 75 72 65 2c 76 20 32 |r: Confi|gure,v 2|
|000014c0| 2e 30 20 38 38 2f 30 36 | 2f 30 35 20 30 30 3a 30 |.0 88/06|/05 00:0|
|000014d0| 37 3a 33 37 20 72 6f 6f | 74 20 45 78 70 20 24 0a |7:37 roo|t Exp $.|
|000014e0| 20 20 23 0a 20 20 23 20 | 59 65 73 2c 20 79 6f 75 | #. # |Yes, you|
|000014f0| 20 6d 61 79 20 72 69 70 | 20 74 68 69 73 20 6f 66 | may rip| this of|
|00001500| 66 20 74 6f 20 75 73 65 | 20 69 6e 20 6f 74 68 65 |f to use| in othe|
|00001510| 72 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 20 70 |r distri|bution p|
|00001520| 61 63 6b 61 67 65 73 2e | 0a 20 20 23 20 28 4e 6f |ackages.|. # (No|
|00001530| 74 65 3a 20 74 68 69 73 | 20 43 6f 6e 66 69 67 75 |te: this| Configu|
|00001540| 72 65 20 73 63 72 69 70 | 74 20 77 61 73 20 67 65 |re scrip|t was ge|
|00001550| 6e 65 72 61 74 65 64 20 | 61 75 74 6f 6d 61 74 69 |nerated |automati|
|00001560| 63 61 6c 6c 79 2e 20 20 | 52 61 74 68 65 72 20 74 |cally. |Rather t|
|00001570| 68 61 6e 0a 2d 2d 2d 20 | 38 2c 31 34 20 2d 2d 2d |han.--- |8,14 ---|
|00001580| 2d 0a 20 20 23 20 61 6e | 64 20 65 64 69 74 20 69 |-. # an|d edit i|
|00001590| 74 20 74 6f 20 72 65 66 | 6c 65 63 74 20 79 6f 75 |t to ref|lect you|
|000015a0| 72 20 73 79 73 74 65 6d | 2e 20 20 53 6f 6d 65 20 |r system|. Some |
|000015b0| 70 61 63 6b 61 67 65 73 | 20 6d 61 79 20 69 6e 63 |packages| may inc|
|000015c0| 6c 75 64 65 20 73 61 6d | 70 6c 65 73 0a 20 20 23 |lude sam|ples. #|
|000015d0| 20 6f 66 20 63 6f 6e 66 | 69 67 2e 68 20 66 6f 72 | of conf|ig.h for|
|000015e0| 20 63 65 72 74 61 69 6e | 20 6d 61 63 68 69 6e 65 | certain| machine|
|000015f0| 73 2c 20 73 6f 20 79 6f | 75 20 6d 69 67 68 74 20 |s, so yo|u might |
|00001600| 6c 6f 6f 6b 20 66 6f 72 | 20 6f 6e 65 20 6f 66 20 |look for| one of |
|00001610| 74 68 6f 73 65 2e 29 0a | 20 20 23 0a 21 20 23 20 |those.).| #.! # |
|00001620| 24 48 65 61 64 65 72 3a | 20 43 6f 6e 66 69 67 75 |$Header:| Configu|
|00001630| 72 65 2c 76 20 32 2e 30 | 2e 31 2e 31 20 38 38 2f |re,v 2.0|.1.1 88/|
|00001640| 30 36 2f 32 38 20 31 36 | 3a 32 34 3a 30 32 20 72 |06/28 16|:24:02 r|
|00001650| 6f 6f 74 20 45 78 70 20 | 24 0a 20 20 23 0a 20 20 |oot Exp |$. #. |
|00001660| 23 20 59 65 73 2c 20 79 | 6f 75 20 6d 61 79 20 72 |# Yes, y|ou may r|
|00001670| 69 70 20 74 68 69 73 20 | 6f 66 66 20 74 6f 20 75 |ip this |off to u|
|00001680| 73 65 20 69 6e 20 6f 74 | 68 65 72 20 64 69 73 74 |se in ot|her dist|
|00001690| 72 69 62 75 74 69 6f 6e | 20 70 61 63 6b 61 67 65 |ribution| package|
|000016a0| 73 2e 0a 20 20 23 20 28 | 4e 6f 74 65 3a 20 74 68 |s.. # (|Note: th|
|000016b0| 69 73 20 43 6f 6e 66 69 | 67 75 72 65 20 73 63 72 |is Confi|gure scr|
|000016c0| 69 70 74 20 77 61 73 20 | 67 65 6e 65 72 61 74 65 |ipt was |generate|
|000016d0| 64 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 2e |d automa|tically.|
|000016e0| 20 20 52 61 74 68 65 72 | 20 74 68 61 6e 0a 2a 2a | Rather| than.**|
|000016f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0a 2a 2a |********|*****.**|
|00001700| 2a 20 37 36 2c 38 31 20 | 2a 2a 2a 2a 0a 2d 2d 2d |* 76,81 |****.---|
|00001710| 20 37 36 2c 38 32 20 2d | 2d 2d 2d 0a 20 20 64 5f | 76,82 -|---. d_|
|00001720| 62 63 6f 70 79 3d 27 27 | 0a 20 20 64 5f 63 68 61 |bcopy=''|. d_cha|
|00001730| 72 73 70 72 66 3d 27 27 | 0a 20 20 64 5f 63 72 79 |rsprf=''|. d_cry|
|00001740| 70 74 3d 27 27 0a 2b 20 | 64 5f 64 6f 73 75 69 64 |pt=''.+ |d_dosuid|
|00001750| 3d 27 27 0a 20 20 64 5f | 66 63 68 6d 6f 64 3d 27 |=''. d_|fchmod='|
|00001760| 27 0a 20 20 64 5f 66 63 | 68 6f 77 6e 3d 27 27 0a |'. d_fc|hown=''.|
|00001770| 20 20 64 5f 67 65 74 67 | 72 70 73 3d 27 27 0a 2a | d_getg|rps=''.*|
|00001780| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|00001790| 2a 2a 20 31 32 34 2c 31 | 33 30 20 2a 2a 2a 2a 0a |** 124,1|30 ****.|
|000017a0| 20 20 64 65 66 76 6f 69 | 64 75 73 65 64 3d 27 27 | defvoi|dused=''|
|000017b0| 0a 20 20 70 72 69 76 6c | 69 62 3d 27 27 0a 20 20 |. privl|ib=''. |
|000017c0| 43 4f 4e 46 49 47 3d 27 | 27 0a 2d 20 0a 20 20 3a |CONFIG='|'.- . :|
|000017d0| 20 73 65 74 20 70 61 63 | 6b 61 67 65 20 6e 61 6d | set pac|kage nam|
|000017e0| 65 0a 20 20 70 61 63 6b | 61 67 65 3d 70 65 72 6c |e. pack|age=perl|
|000017f0| 0a 20 20 0a 2d 2d 2d 20 | 31 32 35 2c 31 33 30 20 |. .--- |125,130 |
|00001800| 2d 2d 2d 2d 0a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |----.***|********|
|00001810| 2a 2a 2a 2a 0a 2a 2a 2a | 20 31 33 34 2c 31 34 30 |****.***| 134,140|
|00001820| 20 2a 2a 2a 2a 0a 20 20 | 65 63 68 6f 20 22 20 22 | ****. |echo " "|
|00001830| 0a 20 20 0a 20 20 64 65 | 66 69 6e 65 3d 27 64 65 |. . de|fine='de|
|00001840| 66 69 6e 65 27 0a 21 20 | 75 6e 64 65 66 3d 27 2f |fine'.! |undef='/|
|00001850| 2a 75 6e 64 65 66 27 0a | 20 20 6c 69 62 70 74 68 |*undef'.| libpth|
|00001860| 3d 27 2f 75 73 72 2f 6c | 69 62 20 2f 75 73 72 2f |='/usr/l|ib /usr/|
|00001870| 6c 6f 63 61 6c 2f 6c 69 | 62 20 2f 6c 69 62 27 0a |local/li|b /lib'.|
|00001880| 20 20 73 6d 61 6c 6c 6d | 61 63 68 3d 27 70 64 70 | smallm|ach='pdp|
|00001890| 31 31 20 69 38 30 38 36 | 20 7a 38 30 30 30 20 69 |11 i8086| z8000 i|
|000018a0| 38 30 32 38 36 20 69 41 | 50 58 32 38 36 27 0a 20 |80286 iA|PX286'. |
|000018b0| 20 72 6d 6c 69 73 74 3d | 27 6b 69 74 5b 31 2d 39 | rmlist=|'kit[1-9|
|000018c0| 5d 69 73 64 6f 6e 65 20 | 6b 69 74 5b 31 2d 39 5d |]isdone |kit[1-9]|
|000018d0| 5b 30 2d 39 5d 69 73 64 | 6f 6e 65 27 0a 2d 2d 2d |[0-9]isd|one'.---|
|000018e0| 20 31 33 34 2c 31 34 30 | 20 2d 2d 2d 2d 0a 20 20 | 134,140| ----. |
|000018f0| 65 63 68 6f 20 22 20 22 | 0a 20 20 0a 20 20 64 65 |echo " "|. . de|
|00001900| 66 69 6e 65 3d 27 64 65 | 66 69 6e 65 27 0a 21 20 |fine='de|fine'.! |
|00001910| 75 6e 64 65 66 3d 27 75 | 6e 64 65 66 27 0a 20 20 |undef='u|ndef'. |
|00001920| 6c 69 62 70 74 68 3d 27 | 2f 75 73 72 2f 6c 69 62 |libpth='|/usr/lib|
|00001930| 20 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 6c 69 62 20 | /usr/lo|cal/lib |
|00001940| 2f 6c 69 62 27 0a 20 20 | 73 6d 61 6c 6c 6d 61 63 |/lib'. |smallmac|
|00001950| 68 3d 27 70 64 70 31 31 | 20 69 38 30 38 36 20 7a |h='pdp11| i8086 z|
|00001960| 38 30 30 30 20 69 38 30 | 32 38 36 20 69 41 50 58 |8000 i80|286 iAPX|
|00001970| 32 38 36 27 0a 20 20 72 | 6d 6c 69 73 74 3d 27 6b |286'. r|mlist='k|
|00001980| 69 74 5b 31 2d 39 5d 69 | 73 64 6f 6e 65 20 6b 69 |it[1-9]i|sdone ki|
|00001990| 74 5b 31 2d 39 5d 5b 30 | 2d 39 5d 69 73 64 6f 6e |t[1-9][0|-9]isdon|
|000019a0| 65 27 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |e'.*****|********|
|000019b0| 2a 2a 0a 2a 2a 2a 20 34 | 38 30 2c 34 39 30 20 2a |**.*** 4|80,490 *|
|000019c0| 2a 2a 2a 0a 20 20 09 65 | 63 68 6f 20 22 20 22 0a |***. .e|cho " ".|
|000019d0| 20 20 09 65 63 68 6f 20 | 22 6e 6d 20 64 69 64 6e | .echo |"nm didn|
|000019e0| 27 74 20 73 65 65 6d 20 | 74 6f 20 77 6f 72 6b 20 |'t seem |to work |
|000019f0| 72 69 67 68 74 2e 22 0a | 20 20 09 65 63 68 6f 20 |right.".| .echo |
|00001a00| 22 54 72 79 69 6e 67 20 | 61 72 20 69 6e 73 74 65 |"Trying |ar inste|
|00001a10| 61 64 2e 2e 2e 22 0a 21 | 20 09 69 66 20 61 72 20 |ad...".!| .if ar |
|00001a20| 74 20 24 6c 69 62 63 20 | 7c 20 73 65 64 20 2d 65 |t $libc || sed -e|
|00001a30| 20 27 73 2f 5c 2e 6f 24 | 2f 2f 27 20 3e 20 6c 69 | 's/\.o$|//' > li|
|00001a40| 62 63 2e 6c 69 73 74 3b | 20 74 68 65 6e 0a 20 20 |bc.list;| then. |
|00001a50| 09 20 20 20 20 65 63 68 | 6f 20 22 4f 6b 2e 22 0a |. ech|o "Ok.".|
|00001a60| 20 20 09 65 6c 73 65 0a | 21 20 09 20 20 20 20 65 | .else.|! . e|
|00001a70| 63 68 6f 20 22 54 68 61 | 74 20 64 69 64 6e 27 74 |cho "Tha|t didn't|
|00001a80| 20 77 6f 72 6b 20 65 69 | 74 68 65 72 2e 20 20 47 | work ei|ther. G|
|00001a90| 69 76 69 6e 67 20 75 70 | 2e 22 0a 21 20 09 20 20 |iving up|.".! . |
|00001aa0| 20 20 65 78 69 74 20 31 | 0a 20 20 09 66 69 0a 20 | exit 1|. .fi. |
|00001ab0| 20 20 20 20 20 66 69 0a | 20 20 66 69 0a 2d 2d 2d | fi.| fi.---|
|00001ac0| 20 34 38 30 2c 34 39 38 | 20 2d 2d 2d 2d 0a 20 20 | 480,498| ----. |
|00001ad0| 09 65 63 68 6f 20 22 20 | 22 0a 20 20 09 65 63 68 |.echo " |". .ech|
|00001ae0| 6f 20 22 6e 6d 20 64 69 | 64 6e 27 74 20 73 65 65 |o "nm di|dn't see|
|00001af0| 6d 20 74 6f 20 77 6f 72 | 6b 20 72 69 67 68 74 2e |m to wor|k right.|
|00001b00| 22 0a 20 20 09 65 63 68 | 6f 20 22 54 72 79 69 6e |". .ech|o "Tryin|
|00001b10| 67 20 61 72 20 69 6e 73 | 74 65 61 64 2e 2e 2e 22 |g ar ins|tead..."|
|00001b20| 0a 21 20 09 72 6d 6c 69 | 73 74 3d 22 24 72 6d 6c |.! .rmli|st="$rml|
|00001b30| 69 73 74 20 6c 69 62 63 | 2e 74 6d 70 22 0a 21 20 |ist libc|.tmp".! |
|00001b40| 09 69 66 20 61 72 20 74 | 20 24 6c 69 62 63 20 3e |.if ar t| $libc >|
|00001b50| 20 6c 69 62 63 2e 74 6d | 70 3b 20 74 68 65 6e 0a | libc.tm|p; then.|
|00001b60| 21 20 09 20 20 20 20 73 | 65 64 20 2d 65 20 27 73 |! . s|ed -e 's|
|00001b70| 2f 5c 2e 6f 24 2f 2f 27 | 20 3c 20 6c 69 62 63 2e |/\.o$//'| < libc.|
|00001b80| 74 6d 70 20 3e 20 6c 69 | 62 63 2e 6c 69 73 74 0a |tmp > li|bc.list.|
|00001b90| 20 20 09 20 20 20 20 65 | 63 68 6f 20 22 4f 6b 2e | . e|cho "Ok.|
|00001ba0| 22 0a 20 20 09 65 6c 73 | 65 0a 21 20 09 20 20 20 |". .els|e.! . |
|00001bb0| 20 65 63 68 6f 20 22 61 | 72 20 64 69 64 6e 27 74 | echo "a|r didn't|
|00001bc0| 20 73 65 65 6d 20 74 6f | 20 77 6f 72 6b 20 72 69 | seem to| work ri|
|00001bd0| 67 68 74 2e 22 0a 21 20 | 09 20 20 20 20 65 63 68 |ght.".! |. ech|
|00001be0| 6f 20 22 4d 61 79 62 65 | 20 74 68 69 73 20 69 73 |o "Maybe| this is|
|00001bf0| 20 61 20 43 72 61 79 2e | 2e 2e 74 72 79 69 6e 67 | a Cray.|..trying|
|00001c00| 20 62 6c 64 20 69 6e 73 | 74 65 61 64 2e 2e 2e 22 | bld ins|tead..."|
|00001c10| 0a 21 20 09 20 20 20 20 | 69 66 20 62 6c 64 20 74 |.! . |if bld t|
|00001c20| 20 24 6c 69 62 63 20 7c | 20 73 65 64 20 2d 65 20 | $libc || sed -e |
|00001c30| 27 73 2f 2e 2a 5c 2f 2f | 2f 27 20 2d 65 20 27 73 |'s/.*\//|/' -e 's|
|00001c40| 2f 5c 2e 6f 3a 2e 2a 24 | 2f 2f 27 20 3e 20 6c 69 |/\.o:.*$|//' > li|
|00001c50| 62 63 2e 6c 69 73 74 3b | 20 74 68 65 6e 0a 21 20 |bc.list;| then.! |
|00001c60| 09 09 65 63 68 6f 20 22 | 4f 6b 2e 22 0a 21 20 09 |..echo "|Ok.".! .|
|00001c70| 20 20 20 20 65 6c 73 65 | 0a 21 20 09 20 20 20 20 | else|.! . |
|00001c80| 09 65 63 68 6f 20 22 54 | 68 61 74 20 64 69 64 6e |.echo "T|hat didn|
|00001c90| 27 74 20 77 6f 72 6b 20 | 65 69 74 68 65 72 2e 20 |'t work |either. |
|00001ca0| 20 47 69 76 69 6e 67 20 | 75 70 2e 22 0a 21 20 09 | Giving |up.".! .|
|00001cb0| 20 20 20 20 09 65 78 69 | 74 20 31 0a 21 20 09 20 | .exi|t 1.! . |
|00001cc0| 20 20 20 66 69 0a 20 20 | 09 66 69 0a 20 20 20 20 | fi. |.fi. |
|00001cd0| 20 20 66 69 0a 20 20 66 | 69 0a 2a 2a 2a 2a 2a 2a | fi. f|i.******|
|00001ce0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 2a 2a 2a 20 36 32 |********|*.*** 62|
|00001cf0| 31 2c 36 32 37 20 2a 2a | 2a 2a 0a 20 20 45 4f 54 |1,627 **|**. EOT|
|00001d00| 0a 20 20 65 63 68 6f 20 | 27 4d 61 79 62 65 20 22 |. echo |'Maybe "|
|00001d10| 27 24 63 70 70 27 22 20 | 77 69 6c 6c 20 77 6f 72 |'$cpp'" |will wor|
|00001d20| 6b 2e 2e 2e 27 0a 20 20 | 24 63 70 70 20 3c 74 65 |k...'. |$cpp <te|
|00001d30| 73 74 63 70 70 2e 63 20 | 3e 74 65 73 74 63 70 70 |stcpp.c |>testcpp|
|00001d40| 2e 6f 75 74 20 32 3e 26 | 31 0a 21 20 69 66 20 24 |.out 2>&|1.! if $|
|00001d50| 63 6f 6e 74 61 69 6e 73 | 20 27 61 62 63 2e 78 79 |contains| 'abc.xy|
|00001d60| 7a 27 20 74 65 73 74 63 | 70 70 2e 6f 75 74 20 3e |z' testc|pp.out >|
|00001d70| 2f 64 65 76 2f 6e 75 6c | 6c 20 32 3e 26 31 20 3b |/dev/nul|l 2>&1 ;|
|00001d80| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 65 63 68 6f | then. | echo|
|00001d90| 20 22 59 75 70 2c 20 69 | 74 20 64 6f 65 73 2e 22 | "Yup, i|t does."|
|00001da0| 0a 20 20 20 20 20 20 63 | 70 70 73 74 64 69 6e 3d |. c|ppstdin=|
|00001db0| 22 24 63 70 70 22 0a 20 | 20 20 20 20 20 63 70 70 |"$cpp". | cpp|
|00001dc0| 6d 69 6e 75 73 3d 27 27 | 3b 0a 2d 2d 2d 20 36 32 |minus=''|;.--- 62|
|00001dd0| 39 2c 36 33 35 20 2d 2d | 2d 2d 0a 20 20 45 4f 54 |9,635 --|--. EOT|
|00001de0| 0a 20 20 65 63 68 6f 20 | 27 4d 61 79 62 65 20 22 |. echo |'Maybe "|
|00001df0| 27 24 63 70 70 27 22 20 | 77 69 6c 6c 20 77 6f 72 |'$cpp'" |will wor|
|00001e00| 6b 2e 2e 2e 27 0a 20 20 | 24 63 70 70 20 3c 74 65 |k...'. |$cpp <te|
|00001e10| 73 74 63 70 70 2e 63 20 | 3e 74 65 73 74 63 70 70 |stcpp.c |>testcpp|
|00001e20| 2e 6f 75 74 20 32 3e 26 | 31 0a 21 20 69 66 20 24 |.out 2>&|1.! if $|
|00001e30| 63 6f 6e 74 61 69 6e 73 | 20 27 61 62 63 2e 2a 78 |contains| 'abc.*x|
|00001e40| 79 7a 27 20 74 65 73 74 | 63 70 70 2e 6f 75 74 20 |yz' test|cpp.out |
|00001e50| 3e 2f 64 65 76 2f 6e 75 | 6c 6c 20 32 3e 26 31 20 |>/dev/nu|ll 2>&1 |
|00001e60| 3b 20 74 68 65 6e 0a 20 | 20 20 20 20 20 65 63 68 |; then. | ech|
|00001e70| 6f 20 22 59 75 70 2c 20 | 69 74 20 64 6f 65 73 2e |o "Yup, |it does.|
|00001e80| 22 0a 20 20 20 20 20 20 | 63 70 70 73 74 64 69 6e |". |cppstdin|
|00001e90| 3d 22 24 63 70 70 22 0a | 20 20 20 20 20 20 63 70 |="$cpp".| cp|
|00001ea0| 70 6d 69 6e 75 73 3d 27 | 27 3b 0a 2a 2a 2a 2a 2a |pminus='|';.*****|
|00001eb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 2a 2a 2a 20 36 |********|**.*** 6|
|00001ec0| 32 38 2c 36 33 34 20 2a | 2a 2a 2a 0a 20 20 65 6c |28,634 *|***. el|
|00001ed0| 73 65 0a 20 20 20 20 20 | 20 65 63 68 6f 20 27 4e |se. | echo 'N|
|00001ee0| 6f 70 65 2c 20 6d 61 79 | 62 65 20 22 27 24 63 70 |ope, may|be "'$cp|
|00001ef0| 70 27 20 2d 22 20 77 69 | 6c 6c 20 77 6f 72 6b 2e |p' -" wi|ll work.|
|00001f00| 2e 2e 27 0a 20 20 20 20 | 20 20 24 63 70 70 20 2d |..'. | $cpp -|
|00001f10| 20 3c 74 65 73 74 63 70 | 70 2e 63 20 3e 74 65 73 | <testcp|p.c >tes|
|00001f20| 74 63 70 70 2e 6f 75 74 | 20 32 3e 26 31 0a 21 20 |tcpp.out| 2>&1.! |
|00001f30| 20 20 20 20 69 66 20 24 | 63 6f 6e 74 61 69 6e 73 | if $|contains|
|00001f40| 20 27 61 62 63 2e 78 79 | 7a 27 20 74 65 73 74 63 | 'abc.xy|z' testc|
|00001f50| 70 70 2e 6f 75 74 20 3e | 2f 64 65 76 2f 6e 75 6c |pp.out >|/dev/nul|
|00001f60| 6c 20 32 3e 26 31 20 3b | 20 74 68 65 6e 0a 20 20 |l 2>&1 ;| then. |
|00001f70| 09 65 63 68 6f 20 22 59 | 75 70 2c 20 69 74 20 64 |.echo "Y|up, it d|
|00001f80| 6f 65 73 2e 22 0a 20 20 | 09 63 70 70 73 74 64 69 |oes.". |.cppstdi|
|00001f90| 6e 3d 22 24 63 70 70 22 | 0a 20 20 09 63 70 70 6d |n="$cpp"|. .cppm|
|00001fa0| 69 6e 75 73 3d 27 2d 27 | 3b 0a 2d 2d 2d 20 36 33 |inus='-'|;.--- 63|
|00001fb0| 36 2c 36 34 32 20 2d 2d | 2d 2d 0a 20 20 65 6c 73 |6,642 --|--. els|
|00001fc0| 65 0a 20 20 20 20 20 20 | 65 63 68 6f 20 27 4e 6f |e. |echo 'No|
|00001fd0| 70 65 2c 20 6d 61 79 62 | 65 20 22 27 24 63 70 70 |pe, mayb|e "'$cpp|
|00001fe0| 27 20 2d 22 20 77 69 6c | 6c 20 77 6f 72 6b 2e 2e |' -" wil|l work..|
|00001ff0| 2e 27 0a 20 20 20 20 20 | 20 24 63 70 70 20 2d 20 |.'. | $cpp - |
|00002000| 3c 74 65 73 74 63 70 70 | 2e 63 20 3e 74 65 73 74 |<testcpp|.c >test|
|00002010| 63 70 70 2e 6f 75 74 20 | 32 3e 26 31 0a 21 20 20 |cpp.out |2>&1.! |
|00002020| 20 20 20 69 66 20 24 63 | 6f 6e 74 61 69 6e 73 20 | if $c|ontains |
|00002030| 27 61 62 63 2e 2a 78 79 | 7a 27 20 74 65 73 74 63 |'abc.*xy|z' testc|
|00002040| 70 70 2e 6f 75 74 20 3e | 2f 64 65 76 2f 6e 75 6c |pp.out >|/dev/nul|
|00002050| 6c 20 32 3e 26 31 20 3b | 20 74 68 65 6e 0a 20 20 |l 2>&1 ;| then. |
|00002060| 09 65 63 68 6f 20 22 59 | 75 70 2c 20 69 74 20 64 |.echo "Y|up, it d|
|00002070| 6f 65 73 2e 22 0a 20 20 | 09 63 70 70 73 74 64 69 |oes.". |.cppstdi|
|00002080| 6e 3d 22 24 63 70 70 22 | 0a 20 20 09 63 70 70 6d |n="$cpp"|. .cppm|
|00002090| 69 6e 75 73 3d 27 2d 27 | 3b 0a 2a 2a 2a 2a 2a 2a |inus='-'|;.******|
|000020a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 2a 2a 2a 20 36 33 |********|*.*** 63|
|000020b0| 35 2c 36 34 31 20 2a 2a | 2a 2a 0a 20 20 20 20 20 |5,641 **|**. |
|000020c0| 20 65 6c 73 65 0a 20 20 | 09 65 63 68 6f 20 27 4e | else. |.echo 'N|
|000020d0| 6f 20 73 75 63 68 20 6c | 75 63 6b 2e 2e 2e 6d 61 |o such l|uck...ma|
|000020e0| 79 62 65 20 22 63 63 20 | 2d 45 22 20 77 69 6c 6c |ybe "cc |-E" will|
|000020f0| 20 77 6f 72 6b 2e 2e 2e | 27 0a 20 20 09 63 63 20 | work...|'. .cc |
|00002100| 2d 45 20 3c 74 65 73 74 | 63 70 70 2e 63 20 3e 74 |-E <test|cpp.c >t|
|00002110| 65 73 74 63 70 70 2e 6f | 75 74 20 32 3e 26 31 0a |estcpp.o|ut 2>&1.|
|00002120| 21 20 09 69 66 20 24 63 | 6f 6e 74 61 69 6e 73 20 |! .if $c|ontains |
|00002130| 27 61 62 63 2e 78 79 7a | 27 20 74 65 73 74 63 70 |'abc.xyz|' testcp|
|00002140| 70 2e 6f 75 74 20 3e 2f | 64 65 76 2f 6e 75 6c 6c |p.out >/|dev/null|
|00002150| 20 32 3e 26 31 20 3b 20 | 74 68 65 6e 0a 20 20 09 | 2>&1 ; |then. .|
|00002160| 20 20 20 20 65 63 68 6f | 20 22 49 74 20 77 6f 72 | echo| "It wor|
|00002170| 6b 73 21 22 0a 20 20 09 | 20 20 20 20 63 70 70 73 |ks!". .| cpps|
|00002180| 74 64 69 6e 3d 27 63 63 | 20 2d 45 27 0a 20 20 09 |tdin='cc| -E'. .|
|00002190| 20 20 20 20 63 70 70 6d | 69 6e 75 73 3d 27 27 3b | cppm|inus='';|
|000021a0| 0a 2d 2d 2d 20 36 34 33 | 2c 36 34 39 20 2d 2d 2d |.--- 643|,649 ---|
|000021b0| 2d 0a 20 20 20 20 20 20 | 65 6c 73 65 0a 20 20 09 |-. |else. .|
|000021c0| 65 63 68 6f 20 27 4e 6f | 20 73 75 63 68 20 6c 75 |echo 'No| such lu|
|000021d0| 63 6b 2e 2e 2e 6d 61 79 | 62 65 20 22 63 63 20 2d |ck...may|be "cc -|
|000021e0| 45 22 20 77 69 6c 6c 20 | 77 6f 72 6b 2e 2e 2e 27 |E" will |work...'|
|000021f0| 0a 20 20 09 63 63 20 2d | 45 20 3c 74 65 73 74 63 |. .cc -|E <testc|
|00002200| 70 70 2e 63 20 3e 74 65 | 73 74 63 70 70 2e 6f 75 |pp.c >te|stcpp.ou|
|00002210| 74 20 32 3e 26 31 0a 21 | 20 09 69 66 20 24 63 6f |t 2>&1.!| .if $co|
|00002220| 6e 74 61 69 6e 73 20 27 | 61 62 63 2e 2a 78 79 7a |ntains '|abc.*xyz|
|00002230| 27 20 74 65 73 74 63 70 | 70 2e 6f 75 74 20 3e 2f |' testcp|p.out >/|
|00002240| 64 65 76 2f 6e 75 6c 6c | 20 32 3e 26 31 20 3b 20 |dev/null| 2>&1 ; |
|00002250| 74 68 65 6e 0a 20 20 09 | 20 20 20 20 65 63 68 6f |then. .| echo|
|00002260| 20 22 49 74 20 77 6f 72 | 6b 73 21 22 0a 20 20 09 | "It wor|ks!". .|
|00002270| 20 20 20 20 63 70 70 73 | 74 64 69 6e 3d 27 63 63 | cpps|tdin='cc|
|00002280| 20 2d 45 27 0a 20 20 09 | 20 20 20 20 63 70 70 6d | -E'. .| cppm|
|00002290| 69 6e 75 73 3d 27 27 3b | 0a 2a 2a 2a 2a 2a 2a 2a |inus='';|.*******|
|000022a0| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 2a 2a 2a 20 36 34 32 |********|.*** 642|
|000022b0| 2c 36 34 38 20 2a 2a 2a | 2a 0a 20 20 09 65 6c 73 |,648 ***|*. .els|
|000022c0| 65 0a 20 20 09 20 20 20 | 20 65 63 68 6f 20 27 4e |e. . | echo 'N|
|000022d0| 69 78 65 64 20 61 67 61 | 69 6e 2e 2e 2e 6d 61 79 |ixed aga|in...may|
|000022e0| 62 65 20 22 63 63 20 2d | 45 20 2d 22 20 77 69 6c |be "cc -|E -" wil|
|000022f0| 6c 20 77 6f 72 6b 2e 2e | 2e 27 0a 20 20 09 20 20 |l work..|.'. . |
|00002300| 20 20 63 63 20 2d 45 20 | 2d 20 3c 74 65 73 74 63 | cc -E |- <testc|
|00002310| 70 70 2e 63 20 3e 74 65 | 73 74 63 70 70 2e 6f 75 |pp.c >te|stcpp.ou|
|00002320| 74 20 32 3e 26 31 0a 21 | 20 09 20 20 20 20 69 66 |t 2>&1.!| . if|
|00002330| 20 24 63 6f 6e 74 61 69 | 6e 73 20 27 61 62 63 2e | $contai|ns 'abc.|
|00002340| 78 79 7a 27 20 74 65 73 | 74 63 70 70 2e 6f 75 74 |xyz' tes|tcpp.out|
|00002350| 20 3e 2f 64 65 76 2f 6e | 75 6c 6c 20 32 3e 26 31 | >/dev/n|ull 2>&1|
|00002360| 20 3b 20 74 68 65 6e 0a | 20 20 09 09 65 63 68 6f | ; then.| ..echo|
|00002370| 20 22 48 6f 6f 72 61 79 | 2c 20 69 74 20 77 6f 72 | "Hooray|, it wor|
|00002380| 6b 73 21 20 20 49 20 77 | 61 73 20 62 65 67 69 6e |ks! I w|as begin|
|00002390| 6e 69 6e 67 20 74 6f 20 | 77 6f 6e 64 65 72 2e 22 |ning to |wonder."|
|000023a0| 0a 20 20 09 09 63 70 70 | 73 74 64 69 6e 3d 27 63 |. ..cpp|stdin='c|
|000023b0| 63 20 2d 45 27 0a 20 20 | 09 09 63 70 70 6d 69 6e |c -E'. |..cppmin|
|000023c0| 75 73 3d 27 2d 27 3b 0a | 2d 2d 2d 20 36 35 30 2c |us='-';.|--- 650,|
|000023d0| 36 35 36 20 2d 2d 2d 2d | 0a 20 20 09 65 6c 73 65 |656 ----|. .else|
|000023e0| 0a 20 20 09 20 20 20 20 | 65 63 68 6f 20 27 4e 69 |. . |echo 'Ni|
|000023f0| 78 65 64 20 61 67 61 69 | 6e 2e 2e 2e 6d 61 79 62 |xed agai|n...mayb|
|00002400| 65 20 22 63 63 20 2d 45 | 20 2d 22 20 77 69 6c 6c |e "cc -E| -" will|
|00002410| 20 77 6f 72 6b 2e 2e 2e | 27 0a 20 20 09 20 20 20 | work...|'. . |
|00002420| 20 63 63 20 2d 45 20 2d | 20 3c 74 65 73 74 63 70 | cc -E -| <testcp|
|00002430| 70 2e 63 20 3e 74 65 73 | 74 63 70 70 2e 6f 75 74 |p.c >tes|tcpp.out|
|00002440| 20 32 3e 26 31 0a 21 20 | 09 20 20 20 20 69 66 20 | 2>&1.! |. if |
|00002450| 24 63 6f 6e 74 61 69 6e | 73 20 27 61 62 63 2e 2a |$contain|s 'abc.*|
|00002460| 78 79 7a 27 20 74 65 73 | 74 63 70 70 2e 6f 75 74 |xyz' tes|tcpp.out|
|00002470| 20 3e 2f 64 65 76 2f 6e | 75 6c 6c 20 32 3e 26 31 | >/dev/n|ull 2>&1|
|00002480| 20 3b 20 74 68 65 6e 0a | 20 20 09 09 65 63 68 6f | ; then.| ..echo|
|00002490| 20 22 48 6f 6f 72 61 79 | 2c 20 69 74 20 77 6f 72 | "Hooray|, it wor|
|000024a0| 6b 73 21 20 20 49 20 77 | 61 73 20 62 65 67 69 6e |ks! I w|as begin|
|000024b0| 6e 69 6e 67 20 74 6f 20 | 77 6f 6e 64 65 72 2e 22 |ning to |wonder."|
|000024c0| 0a 20 20 09 09 63 70 70 | 73 74 64 69 6e 3d 27 63 |. ..cpp|stdin='c|
|000024d0| 63 20 2d 45 27 0a 20 20 | 09 09 63 70 70 6d 69 6e |c -E'. |..cppmin|
|000024e0| 75 73 3d 27 2d 27 3b 0a | 2a 2a 2a 2a 2a 2a 2a 2a |us='-';.|********|
|000024f0| 2a 2a 2a 2a 2a 2a 2a 0a | 2a 2a 2a 20 36 34 39 2c |*******.|*** 649,|
|00002500| 36 35 35 20 2a 2a 2a 2a | 0a 20 20 09 20 20 20 20 |655 ****|. . |
|00002510| 65 6c 73 65 0a 20 20 09 | 09 65 63 68 6f 20 27 4e |else. .|.echo 'N|
|00002520| 6f 70 65 2e 2e 2e 6d 61 | 79 62 65 20 22 63 63 20 |ope...ma|ybe "cc |
|00002530| 2d 50 22 20 77 69 6c 6c | 20 77 6f 72 6b 2e 2e 2e |-P" will| work...|
|00002540| 27 0a 20 20 09 09 63 63 | 20 2d 50 20 3c 74 65 73 |'. ..cc| -P <tes|
|00002550| 74 63 70 70 2e 63 20 3e | 74 65 73 74 63 70 70 2e |tcpp.c >|testcpp.|
|00002560| 6f 75 74 20 32 3e 26 31 | 0a 21 20 09 09 69 66 20 |out 2>&1|.! ..if |
|00002570| 24 63 6f 6e 74 61 69 6e | 73 20 27 61 62 63 2e 78 |$contain|s 'abc.x|
|00002580| 79 7a 27 20 74 65 73 74 | 63 70 70 2e 6f 75 74 20 |yz' test|cpp.out |
|00002590| 3e 2f 64 65 76 2f 6e 75 | 6c 6c 20 32 3e 26 31 20 |>/dev/nu|ll 2>&1 |
|000025a0| 3b 20 74 68 65 6e 0a 20 | 20 09 09 20 20 20 20 65 |; then. | .. e|
|000025b0| 63 68 6f 20 22 59 75 70 | 2c 20 74 68 61 74 20 64 |cho "Yup|, that d|
|000025c0| 6f 65 73 2e 22 0a 20 20 | 09 09 20 20 20 20 63 70 |oes.". |.. cp|
|000025d0| 70 73 74 64 69 6e 3d 27 | 63 63 20 2d 50 27 0a 20 |pstdin='|cc -P'. |
|000025e0| 20 09 09 20 20 20 20 63 | 70 70 6d 69 6e 75 73 3d | .. c|ppminus=|
|000025f0| 27 27 3b 0a 2d 2d 2d 20 | 36 35 37 2c 36 36 33 20 |'';.--- |657,663 |
|00002600| 2d 2d 2d 2d 0a 20 20 09 | 20 20 20 20 65 6c 73 65 |----. .| else|
|00002610| 0a 20 20 09 09 65 63 68 | 6f 20 27 4e 6f 70 65 2e |. ..ech|o 'Nope.|
|00002620| 2e 2e 6d 61 79 62 65 20 | 22 63 63 20 2d 50 22 20 |..maybe |"cc -P" |
|00002630| 77 69 6c 6c 20 77 6f 72 | 6b 2e 2e 2e 27 0a 20 20 |will wor|k...'. |
|00002640| 09 09 63 63 20 2d 50 20 | 3c 74 65 73 74 63 70 70 |..cc -P |<testcpp|
|00002650| 2e 63 20 3e 74 65 73 74 | 63 70 70 2e 6f 75 74 20 |.c >test|cpp.out |
|00002660| 32 3e 26 31 0a 21 20 09 | 09 69 66 20 24 63 6f 6e |2>&1.! .|.if $con|
|00002670| 74 61 69 6e 73 20 27 61 | 62 63 2e 2a 78 79 7a 27 |tains 'a|bc.*xyz'|
|00002680| 20 74 65 73 74 63 70 70 | 2e 6f 75 74 20 3e 2f 64 | testcpp|.out >/d|
|00002690| 65 76 2f 6e 75 6c 6c 20 | 32 3e 26 31 20 3b 20 74 |ev/null |2>&1 ; t|
|000026a0| 68 65 6e 0a 20 20 09 09 | 20 20 20 20 65 63 68 6f |hen. ..| echo|
|000026b0| 20 22 59 75 70 2c 20 74 | 68 61 74 20 64 6f 65 73 | "Yup, t|hat does|
|000026c0| 2e 22 0a 20 20 09 09 20 | 20 20 20 63 70 70 73 74 |.". .. | cppst|
|000026d0| 64 69 6e 3d 27 63 63 20 | 2d 50 27 0a 20 20 09 09 |din='cc |-P'. ..|
|000026e0| 20 20 20 20 63 70 70 6d | 69 6e 75 73 3d 27 27 3b | cppm|inus='';|
|000026f0| 0a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00002700| 0a 2a 2a 2a 20 36 35 36 | 2c 36 36 32 20 2a 2a 2a |.*** 656|,662 ***|
|00002710| 2a 0a 20 20 09 09 65 6c | 73 65 0a 20 20 09 09 20 |*. ..el|se. .. |
|00002720| 20 20 20 65 63 68 6f 20 | 27 4e 6f 70 65 2e 2e 2e | echo |'Nope...|
|00002730| 6d 61 79 62 65 20 22 63 | 63 20 2d 50 20 2d 22 20 |maybe "c|c -P -" |
|00002740| 77 69 6c 6c 20 77 6f 72 | 6b 2e 2e 2e 27 0a 20 20 |will wor|k...'. |
|00002750| 09 09 20 20 20 20 63 63 | 20 2d 50 20 2d 20 3c 74 |.. cc| -P - <t|
|00002760| 65 73 74 63 70 70 2e 63 | 20 3e 74 65 73 74 63 70 |estcpp.c| >testcp|
|00002770| 70 2e 6f 75 74 20 32 3e | 26 31 0a 21 20 09 09 20 |p.out 2>|&1.! .. |
|00002780| 20 20 20 69 66 20 24 63 | 6f 6e 74 61 69 6e 73 20 | if $c|ontains |
|00002790| 27 61 62 63 2e 78 79 7a | 27 20 74 65 73 74 63 70 |'abc.xyz|' testcp|
|000027a0| 70 2e 6f 75 74 20 3e 2f | 64 65 76 2f 6e 75 6c 6c |p.out >/|dev/null|
|000027b0| 20 32 3e 26 31 20 3b 20 | 74 68 65 6e 0a 20 20 09 | 2>&1 ; |then. .|
|000027c0| 09 09 65 63 68 6f 20 22 | 59 75 70 2c 20 74 68 61 |..echo "|Yup, tha|
|000027d0| 74 20 64 6f 65 73 2e 22 | 0a 20 20 09 09 09 63 70 |t does."|. ...cp|
|000027e0| 70 73 74 64 69 6e 3d 27 | 63 63 20 2d 50 27 0a 20 |pstdin='|cc -P'. |
|000027f0| 20 09 09 09 63 70 70 6d | 69 6e 75 73 3d 27 2d 27 | ...cppm|inus='-'|
|00002800| 3b 0a 2d 2d 2d 20 36 36 | 34 2c 36 37 30 20 2d 2d |;.--- 66|4,670 --|
|00002810| 2d 2d 0a 20 20 09 09 65 | 6c 73 65 0a 20 20 09 09 |--. ..e|lse. ..|
|00002820| 20 20 20 20 65 63 68 6f | 20 27 4e 6f 70 65 2e 2e | echo| 'Nope..|
|00002830| 2e 6d 61 79 62 65 20 22 | 63 63 20 2d 50 20 2d 22 |.maybe "|cc -P -"|
|00002840| 20 77 69 6c 6c 20 77 6f | 72 6b 2e 2e 2e 27 0a 20 | will wo|rk...'. |
|00002850| 20 09 09 20 20 20 20 63 | 63 20 2d 50 20 2d 20 3c | .. c|c -P - <|
|00002860| 74 65 73 74 63 70 70 2e | 63 20 3e 74 65 73 74 63 |testcpp.|c >testc|
|00002870| 70 70 2e 6f 75 74 20 32 | 3e 26 31 0a 21 20 09 09 |pp.out 2|>&1.! ..|
|00002880| 20 20 20 20 69 66 20 24 | 63 6f 6e 74 61 69 6e 73 | if $|contains|
|00002890| 20 27 61 62 63 2e 2a 78 | 79 7a 27 20 74 65 73 74 | 'abc.*x|yz' test|
|000028a0| 63 70 70 2e 6f 75 74 20 | 3e 2f 64 65 76 2f 6e 75 |cpp.out |>/dev/nu|
|000028b0| 6c 6c 20 32 3e 26 31 20 | 3b 20 74 68 65 6e 0a 20 |ll 2>&1 |; then. |
|000028c0| 20 09 09 09 65 63 68 6f | 20 22 59 75 70 2c 20 74 | ...echo| "Yup, t|
|000028d0| 68 61 74 20 64 6f 65 73 | 2e 22 0a 20 20 09 09 09 |hat does|.". ...|
|000028e0| 63 70 70 73 74 64 69 6e | 3d 27 63 63 20 2d 50 27 |cppstdin|='cc -P'|
|000028f0| 0a 20 20 09 09 09 63 70 | 70 6d 69 6e 75 73 3d 27 |. ...cp|pminus='|
|00002900| 2d 27 3b 0a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |-';.****|********|
|00002910| 2a 2a 2a 0a 2a 2a 2a 20 | 36 36 36 2c 36 37 32 20 |***.*** |666,672 |
|00002920| 2a 2a 2a 2a 0a 20 20 09 | 09 09 27 27 29 20 3b 3b |****. .|..'') ;;|
|00002930| 0a 20 20 09 09 09 2a 29 | 20 24 63 70 70 73 74 64 |. ...*)| $cppstd|
|00002940| 69 6e 20 24 63 70 70 6d | 69 6e 75 73 20 3c 74 65 |in $cppm|inus <te|
|00002950| 73 74 63 70 70 2e 63 20 | 3e 74 65 73 74 63 70 70 |stcpp.c |>testcpp|
|00002960| 2e 6f 75 74 20 32 3e 26 | 31 3b 3b 0a 20 20 09 09 |.out 2>&|1;;. ..|
|00002970| 09 65 73 61 63 0a 21 20 | 09 09 09 69 66 20 24 63 |.esac.! |...if $c|
|00002980| 6f 6e 74 61 69 6e 73 20 | 27 61 62 63 2e 78 79 7a |ontains |'abc.xyz|
|00002990| 27 20 74 65 73 74 63 70 | 70 2e 6f 75 74 20 3e 2f |' testcp|p.out >/|
|000029a0| 64 65 76 2f 6e 75 6c 6c | 20 32 3e 26 31 20 3b 20 |dev/null| 2>&1 ; |
|000029b0| 74 68 65 6e 0a 20 20 09 | 09 09 20 20 20 20 65 63 |then. .|.. ec|
|000029c0| 68 6f 20 22 48 6f 6f 72 | 61 79 2c 20 79 6f 75 20 |ho "Hoor|ay, you |
|000029d0| 64 69 64 21 20 20 49 20 | 77 61 73 20 62 65 67 69 |did! I |was begi|
|000029e0| 6e 6e 69 6e 67 20 74 6f | 20 77 6f 6e 64 65 72 2e |nning to| wonder.|
|000029f0| 22 0a 20 20 09 09 09 65 | 6c 73 65 0a 20 20 09 09 |". ...e|lse. ..|
|00002a00| 09 20 20 20 20 65 63 68 | 6f 20 27 55 68 2d 75 68 |. ech|o 'Uh-uh|
|00002a10| 2e 20 20 54 69 6d 65 20 | 74 6f 20 67 65 74 20 66 |. Time |to get f|
|00002a20| 61 6e 63 79 2e 2e 2e 27 | 0a 2d 2d 2d 20 36 37 34 |ancy...'|.--- 674|
|00002a30| 2c 36 38 30 20 2d 2d 2d | 2d 0a 20 20 09 09 09 27 |,680 ---|-. ...'|
|00002a40| 27 29 20 3b 3b 0a 20 20 | 09 09 09 2a 29 20 24 63 |') ;;. |...*) $c|
|00002a50| 70 70 73 74 64 69 6e 20 | 24 63 70 70 6d 69 6e 75 |ppstdin |$cppminu|
|00002a60| 73 20 3c 74 65 73 74 63 | 70 70 2e 63 20 3e 74 65 |s <testc|pp.c >te|
|00002a70| 73 74 63 70 70 2e 6f 75 | 74 20 32 3e 26 31 3b 3b |stcpp.ou|t 2>&1;;|
|00002a80| 0a 20 20 09 09 09 65 73 | 61 63 0a 21 20 09 09 09 |. ...es|ac.! ...|
|00002a90| 69 66 20 24 63 6f 6e 74 | 61 69 6e 73 20 27 61 62 |if $cont|ains 'ab|
|00002aa0| 63 2e 2a 78 79 7a 27 20 | 74 65 73 74 63 70 70 2e |c.*xyz' |testcpp.|
|00002ab0| 6f 75 74 20 3e 2f 64 65 | 76 2f 6e 75 6c 6c 20 32 |out >/de|v/null 2|
|00002ac0| 3e 26 31 20 3b 20 74 68 | 65 6e 0a 20 20 09 09 09 |>&1 ; th|en. ...|
|00002ad0| 20 20 20 20 65 63 68 6f | 20 22 48 6f 6f 72 61 79 | echo| "Hooray|
|00002ae0| 2c 20 79 6f 75 20 64 69 | 64 21 20 20 49 20 77 61 |, you di|d! I wa|
|00002af0| 73 20 62 65 67 69 6e 6e | 69 6e 67 20 74 6f 20 77 |s beginn|ing to w|
|00002b00| 6f 6e 64 65 72 2e 22 0a | 20 20 09 09 09 65 6c 73 |onder.".| ...els|
|00002b10| 65 0a 20 20 09 09 09 20 | 20 20 20 65 63 68 6f 20 |e. ... | echo |
|00002b20| 27 55 68 2d 75 68 2e 20 | 20 54 69 6d 65 20 74 6f |'Uh-uh. | Time to|
|00002b30| 20 67 65 74 20 66 61 6e | 63 79 2e 2e 2e 27 0a 2a | get fan|cy...'.*|
|00002b40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|00002b50| 2a 2a 20 36 37 34 2c 36 | 38 30 20 2a 2a 2a 2a 0a |** 674,6|80 ****.|
|00002b60| 20 20 09 09 09 20 20 20 | 20 63 70 70 73 74 64 69 | ... | cppstdi|
|00002b70| 6e 3d 27 28 63 61 74 20 | 3e 2f 74 6d 70 2f 24 24 |n='(cat |>/tmp/$$|
|00002b80| 2e 63 3b 20 63 63 20 2d | 45 20 2f 74 6d 70 2f 24 |.c; cc -|E /tmp/$|
|00002b90| 24 2e 63 3b 20 72 6d 20 | 2f 74 6d 70 2f 24 24 2e |$.c; rm |/tmp/$$.|
|00002ba0| 63 29 27 0a 20 20 09 09 | 09 20 20 20 20 63 70 70 |c)'. ..|. cpp|
|00002bb0| 6d 69 6e 75 73 3d 27 27 | 3b 0a 20 20 09 09 09 20 |minus=''|;. ... |
|00002bc0| 20 20 20 24 63 70 70 73 | 74 64 69 6e 20 3c 74 65 | $cpps|tdin <te|
|00002bd0| 73 74 63 70 70 2e 63 20 | 3e 74 65 73 74 63 70 70 |stcpp.c |>testcpp|
|00002be0| 2e 6f 75 74 20 32 3e 26 | 31 0a 21 20 09 09 09 20 |.out 2>&|1.! ... |
|00002bf0| 20 20 20 69 66 20 24 63 | 6f 6e 74 61 69 6e 73 20 | if $c|ontains |
|00002c00| 27 61 62 63 2e 78 79 7a | 27 20 74 65 73 74 63 70 |'abc.xyz|' testcp|
|00002c10| 70 2e 6f 75 74 20 3e 2f | 64 65 76 2f 6e 75 6c 6c |p.out >/|dev/null|
|00002c20| 20 32 3e 26 31 20 3b 20 | 74 68 65 6e 0a 20 20 09 | 2>&1 ; |then. .|
|00002c30| 09 09 09 65 63 68 6f 20 | 22 45 75 72 65 6b 61 21 |...echo |"Eureka!|
|00002c40| 2e 22 0a 20 20 09 09 09 | 20 20 20 20 65 6c 73 65 |.". ...| else|
|00002c50| 0a 20 20 09 09 09 09 64 | 66 6c 74 3d 62 6c 75 72 |. ....d|flt=blur|
|00002c60| 66 6c 0a 2d 2d 2d 20 36 | 38 32 2c 36 38 38 20 2d |fl.--- 6|82,688 -|
|00002c70| 2d 2d 2d 0a 20 20 09 09 | 09 20 20 20 20 63 70 70 |---. ..|. cpp|
|00002c80| 73 74 64 69 6e 3d 27 28 | 63 61 74 20 3e 2f 74 6d |stdin='(|cat >/tm|
|00002c90| 70 2f 24 24 2e 63 3b 20 | 63 63 20 2d 45 20 2f 74 |p/$$.c; |cc -E /t|
|00002ca0| 6d 70 2f 24 24 2e 63 3b | 20 72 6d 20 2f 74 6d 70 |mp/$$.c;| rm /tmp|
|00002cb0| 2f 24 24 2e 63 29 27 0a | 20 20 09 09 09 20 20 20 |/$$.c)'.| ... |
|00002cc0| 20 63 70 70 6d 69 6e 75 | 73 3d 27 27 3b 0a 20 20 | cppminu|s='';. |
|00002cd0| 09 09 09 20 20 20 20 24 | 63 70 70 73 74 64 69 6e |... $|cppstdin|
|00002ce0| 20 3c 74 65 73 74 63 70 | 70 2e 63 20 3e 74 65 73 | <testcp|p.c >tes|
|00002cf0| 74 63 70 70 2e 6f 75 74 | 20 32 3e 26 31 0a 21 20 |tcpp.out| 2>&1.! |
|00002d00| 09 09 09 20 20 20 20 69 | 66 20 24 63 6f 6e 74 61 |... i|f $conta|
|00002d10| 69 6e 73 20 27 61 62 63 | 2e 2a 78 79 7a 27 20 74 |ins 'abc|.*xyz' t|
|00002d20| 65 73 74 63 70 70 2e 6f | 75 74 20 3e 2f 64 65 76 |estcpp.o|ut >/dev|
|00002d30| 2f 6e 75 6c 6c 20 32 3e | 26 31 20 3b 20 74 68 65 |/null 2>|&1 ; the|
|00002d40| 6e 0a 20 20 09 09 09 09 | 65 63 68 6f 20 22 45 75 |n. ....|echo "Eu|
|00002d50| 72 65 6b 61 21 2e 22 0a | 20 20 09 09 09 20 20 20 |reka!.".| ... |
|00002d60| 20 65 6c 73 65 0a 20 20 | 09 09 09 09 64 66 6c 74 | else. |....dflt|
|00002d70| 3d 62 6c 75 72 66 6c 0a | 2a 2a 2a 2a 2a 2a 2a 2a |=blurfl.|********|
|00002d80| 2a 2a 2a 2a 2a 2a 2a 0a | 2a 2a 2a 20 36 38 33 2c |*******.|*** 683,|
|00002d90| 36 38 39 20 2a 2a 2a 2a | 0a 20 20 09 09 09 09 2e |689 ****|. .....|
|00002da0| 20 6d 79 72 65 61 64 0a | 20 20 09 09 09 09 63 70 | myread.| ....cp|
|00002db0| 70 73 74 64 69 6e 3d 22 | 24 61 6e 73 22 0a 20 20 |pstdin="|$ans". |
|00002dc0| 09 09 09 09 24 63 70 70 | 73 74 64 69 6e 20 3c 74 |....$cpp|stdin <t|
|00002dd0| 65 73 74 63 70 70 2e 63 | 20 3e 74 65 73 74 63 70 |estcpp.c| >testcp|
|00002de0| 70 2e 6f 75 74 20 32 3e | 26 31 0a 21 20 09 09 09 |p.out 2>|&1.! ...|
|00002df0| 09 69 66 20 24 63 6f 6e | 74 61 69 6e 73 20 27 61 |.if $con|tains 'a|
|00002e00| 62 63 2e 78 79 7a 27 20 | 74 65 73 74 63 70 70 2e |bc.xyz' |testcpp.|
|00002e10| 6f 75 74 20 3e 2f 64 65 | 76 2f 6e 75 6c 6c 20 32 |out >/de|v/null 2|
|00002e20| 3e 26 31 20 3b 20 74 68 | 65 6e 0a 20 20 09 09 09 |>&1 ; th|en. ...|
|00002e30| 09 20 20 20 20 65 63 68 | 6f 20 22 4f 4b 2c 20 74 |. ech|o "OK, t|
|00002e40| 68 61 74 20 77 69 6c 6c | 20 64 6f 2e 22 0a 20 20 |hat will| do.". |
|00002e50| 09 09 09 09 65 6c 73 65 | 0a 20 20 09 09 09 09 20 |....else|. .... |
|00002e60| 20 20 20 65 63 68 6f 20 | 22 53 6f 72 72 79 2c 20 | echo |"Sorry, |
|00002e70| 49 20 63 61 6e 27 74 20 | 67 65 74 20 74 68 61 74 |I can't |get that|
|00002e80| 20 74 6f 20 77 6f 72 6b | 2e 20 20 47 6f 20 66 69 | to work|. Go fi|
|00002e90| 6e 64 20 6f 6e 65 2e 22 | 0a 2d 2d 2d 20 36 39 31 |nd one."|.--- 691|
|00002ea0| 2c 36 39 37 20 2d 2d 2d | 2d 0a 20 20 09 09 09 09 |,697 ---|-. ....|
|00002eb0| 2e 20 6d 79 72 65 61 64 | 0a 20 20 09 09 09 09 63 |. myread|. ....c|
|00002ec0| 70 70 73 74 64 69 6e 3d | 22 24 61 6e 73 22 0a 20 |ppstdin=|"$ans". |
|00002ed0| 20 09 09 09 09 24 63 70 | 70 73 74 64 69 6e 20 3c | ....$cp|pstdin <|
|00002ee0| 74 65 73 74 63 70 70 2e | 63 20 3e 74 65 73 74 63 |testcpp.|c >testc|
|00002ef0| 70 70 2e 6f 75 74 20 32 | 3e 26 31 0a 21 20 09 09 |pp.out 2|>&1.! ..|
|00002f00| 09 09 69 66 20 24 63 6f | 6e 74 61 69 6e 73 20 27 |..if $co|ntains '|
|00002f10| 61 62 63 2e 2a 78 79 7a | 27 20 74 65 73 74 63 70 |abc.*xyz|' testcp|
|00002f20| 70 2e 6f 75 74 20 3e 2f | 64 65 76 2f 6e 75 6c 6c |p.out >/|dev/null|
|00002f30| 20 32 3e 26 31 20 3b 20 | 74 68 65 6e 0a 20 20 09 | 2>&1 ; |then. .|
|00002f40| 09 09 09 20 20 20 20 65 | 63 68 6f 20 22 4f 4b 2c |... e|cho "OK,|
|00002f50| 20 74 68 61 74 20 77 69 | 6c 6c 20 64 6f 2e 22 0a | that wi|ll do.".|
|00002f60| 20 20 09 09 09 09 65 6c | 73 65 0a 20 20 09 09 09 | ....el|se. ...|
|00002f70| 09 20 20 20 20 65 63 68 | 6f 20 22 53 6f 72 72 79 |. ech|o "Sorry|
|00002f80| 2c 20 49 20 63 61 6e 27 | 74 20 67 65 74 20 74 68 |, I can'|t get th|
|00002f90| 61 74 20 74 6f 20 77 6f | 72 6b 2e 20 20 47 6f 20 |at to wo|rk. Go |
|00002fa0| 66 69 6e 64 20 6f 6e 65 | 2e 22 0a 2a 2a 2a 2a 2a |find one|.".*****|
|00002fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 2a 2a 2a 20 37 |********|**.*** 7|
|00002fc0| 33 33 2c 37 33 38 20 2a | 2a 2a 2a 0a 2d 2d 2d 20 |33,738 *|***.--- |
|00002fd0| 37 34 31 2c 37 37 37 20 | 2d 2d 2d 2d 0a 20 20 20 |741,777 |----. |
|00002fe0| 20 20 20 64 5f 63 72 79 | 70 74 3d 22 24 75 6e 64 | d_cry|pt="$und|
|00002ff0| 65 66 22 0a 20 20 66 69 | 0a 20 20 0a 2b 20 3a 20 |ef". fi|. .+ : |
|00003000| 6e 6f 77 20 73 65 65 20 | 69 66 20 74 68 65 79 20 |now see |if they |
|00003010| 77 61 6e 74 20 74 6f 20 | 64 6f 20 73 65 74 75 69 |want to |do setui|
|00003020| 64 20 65 6d 75 6c 61 74 | 69 6f 6e 0a 2b 20 63 61 |d emulat|ion.+ ca|
|00003030| 73 65 20 22 24 64 5f 64 | 6f 73 75 69 64 22 20 69 |se "$d_d|osuid" i|
|00003040| 6e 0a 2b 20 27 27 29 20 | 69 66 20 62 73 64 3b 20 |n.+ '') |if bsd; |
|00003050| 74 68 65 6e 0a 2b 20 09 | 64 66 6c 74 3d 79 0a 2b |then.+ .|dflt=y.+|
|00003060| 20 20 20 20 20 65 6c 73 | 65 0a 2b 20 09 64 66 6c | els|e.+ .dfl|
|00003070| 74 3d 6e 0a 2b 20 20 20 | 20 20 66 69 0a 2b 20 20 |t=n.+ | fi.+ |
|00003080| 20 20 20 3b 3b 0a 2b 20 | 2a 75 6e 64 65 66 2a 29 | ;;.+ |*undef*)|
|00003090| 20 64 66 6c 74 3d 6e 3b | 3b 0a 2b 20 2a 29 20 64 | dflt=n;|;.+ *) d|
|000030a0| 66 6c 74 3d 79 3b 3b 0a | 2b 20 65 73 61 63 0a 2b |flt=y;;.|+ esac.+|
|000030b0| 20 63 61 74 20 3c 3c 45 | 4f 4d 0a 2b 20 20 0a 2b | cat <<E|OM.+ .+|
|000030c0| 20 53 6f 6d 65 20 73 69 | 74 65 73 20 68 61 76 65 | Some si|tes have|
|000030d0| 20 64 69 73 61 62 6c 65 | 64 20 73 65 74 75 69 64 | disable|d setuid|
|000030e0| 20 23 21 20 73 63 72 69 | 70 74 73 20 62 65 63 61 | #! scri|pts beca|
|000030f0| 75 73 65 20 6f 66 20 61 | 20 62 75 67 20 69 6e 20 |use of a| bug in |
|00003100| 74 68 65 20 6b 65 72 6e | 65 6c 0a 2b 20 74 68 61 |the kern|el.+ tha|
|00003110| 74 20 70 72 65 76 65 6e | 74 73 20 74 68 65 6d 20 |t preven|ts them |
|00003120| 66 72 6f 6d 20 62 65 69 | 6e 67 20 73 65 63 75 72 |from bei|ng secur|
|00003130| 65 2e 20 20 49 66 20 79 | 6f 75 20 61 72 65 20 6f |e. If y|ou are o|
|00003140| 6e 20 73 75 63 68 20 61 | 20 73 79 73 74 65 6d 2c |n such a| system,|
|00003150| 20 74 68 65 0a 2b 20 73 | 65 74 75 69 64 2f 73 65 | the.+ s|etuid/se|
|00003160| 74 67 69 64 20 62 69 74 | 73 20 6f 6e 20 73 63 72 |tgid bit|s on scr|
|00003170| 69 70 74 73 20 61 72 65 | 20 63 75 72 72 65 6e 74 |ipts are| current|
|00003180| 6c 79 20 75 73 65 6c 65 | 73 73 2e 20 20 49 74 20 |ly usele|ss. It |
|00003190| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 66 6f 72 0a |is possi|ble for.|
|000031a0| 2b 20 24 70 61 63 6b 61 | 67 65 20 74 6f 20 64 65 |+ $packa|ge to de|
|000031b0| 74 65 63 74 20 74 68 6f | 73 65 20 62 69 74 73 20 |tect tho|se bits |
|000031c0| 61 6e 64 20 65 6d 75 6c | 61 74 65 20 73 65 74 75 |and emul|ate setu|
|000031d0| 69 64 2f 73 65 74 67 69 | 64 20 69 6e 20 61 20 73 |id/setgi|d in a s|
|000031e0| 65 63 75 72 65 20 66 61 | 73 68 69 6f 6e 0a 2b 20 |ecure fa|shion.+ |
|000031f0| 75 6e 74 69 6c 20 61 20 | 62 65 74 74 65 72 20 73 |until a |better s|
|00003200| 6f 6c 75 74 69 6f 6e 20 | 69 73 20 64 65 76 69 73 |olution |is devis|
|00003210| 65 64 20 66 6f 72 20 74 | 68 65 20 6b 65 72 6e 65 |ed for t|he kerne|
|00003220| 6c 20 70 72 6f 62 6c 65 | 6d 2e 0a 2b 20 0a 2b 20 |l proble|m..+ .+ |
|00003230| 45 4f 4d 0a 2b 20 72 70 | 3d 22 44 6f 20 79 6f 75 |EOM.+ rp|="Do you|
|00003240| 20 77 61 6e 74 20 74 6f | 20 64 6f 20 73 65 74 75 | want to| do setu|
|00003250| 69 64 2f 73 65 74 67 69 | 64 20 65 6d 75 6c 61 74 |id/setgi|d emulat|
|00003260| 69 6f 6e 3f 20 5b 24 64 | 66 6c 74 5d 22 0a 2b 20 |ion? [$d|flt]".+ |
|00003270| 65 63 68 6f 20 24 6e 20 | 22 24 72 70 20 24 63 22 |echo $n |"$rp $c"|
|00003280| 0a 2b 20 2e 20 6d 79 72 | 65 61 64 0a 2b 20 63 61 |.+ . myr|ead.+ ca|
|00003290| 73 65 20 22 24 61 6e 73 | 22 20 69 6e 0a 2b 20 27 |se "$ans|" in.+ '|
|000032a0| 27 29 20 24 61 6e 73 3d | 22 24 64 66 6c 74 22 3b |') $ans=|"$dflt";|
|000032b0| 3b 0a 2b 20 65 73 61 63 | 0a 2b 20 63 61 73 65 20 |;.+ esac|.+ case |
|000032c0| 22 24 61 6e 73 22 20 69 | 6e 0a 2b 20 79 2a 29 20 |"$ans" i|n.+ y*) |
|000032d0| 20 64 5f 64 6f 73 75 69 | 64 3d 22 24 64 65 66 69 | d_dosui|d="$defi|
|000032e0| 6e 65 22 3b 3b 0a 2b 20 | 2a 29 20 64 5f 64 6f 73 |ne";;.+ |*) d_dos|
|000032f0| 75 69 64 3d 22 24 75 6e | 64 65 66 22 3b 3b 0a 2b |uid="$un|def";;.+|
|00003300| 20 65 73 61 63 0a 2b 20 | 0a 20 20 3a 20 73 65 65 | esac.+ |. : see|
|00003310| 20 69 66 20 66 63 68 6d | 6f 64 20 65 78 69 73 74 | if fchm|od exist|
|00003320| 73 0a 20 20 65 63 68 6f | 20 22 20 22 0a 20 20 69 |s. echo| " ". i|
|00003330| 66 20 24 63 6f 6e 74 61 | 69 6e 73 20 27 5e 66 63 |f $conta|ins '^fc|
|00003340| 68 6d 6f 64 24 27 20 6c | 69 62 63 2e 6c 69 73 74 |hmod$' l|ibc.list|
|00003350| 20 3e 2f 64 65 76 2f 6e | 75 6c 6c 20 32 3e 26 31 | >/dev/n|ull 2>&1|
|00003360| 3b 20 74 68 65 6e 0a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |; then.*|********|
|00003370| 2a 2a 2a 2a 2a 2a 0a 2a | 2a 2a 20 31 33 33 34 2c |******.*|** 1334,|
|00003380| 31 33 34 31 20 2a 2a 2a | 2a 0a 20 20 2a 73 70 6c |1341 ***|*. *spl|
|00003390| 69 74 29 0a 20 20 20 20 | 20 20 63 61 73 65 20 22 |it). | case "|
|000033a0| 24 73 70 6c 69 74 22 20 | 69 6e 0a 20 20 20 20 20 |$split" |in. |
|000033b0| 20 27 27 29 20 0a 21 20 | 09 69 66 20 24 63 6f 6e | '') .! |.if $con|
|000033c0| 74 61 69 6e 73 20 27 2d | 69 27 20 24 6d 61 6e 73 |tains '-|i' $mans|
|000033d0| 72 63 2f 6c 64 2e 31 20 | 3e 2f 64 65 76 2f 6e 75 |rc/ld.1 |>/dev/nu|
|000033e0| 6c 6c 20 32 3e 26 31 20 | 7c 7c 20 5c 0a 21 20 09 |ll 2>&1 ||| \.! .|
|000033f0| 20 20 20 24 63 6f 6e 74 | 61 69 6e 73 20 27 2d 69 | $cont|ains '-i|
|00003400| 27 20 24 6d 61 6e 73 72 | 63 2f 63 63 2e 31 20 3e |' $mansr|c/cc.1 >|
|00003410| 2f 64 65 76 2f 6e 75 6c | 6c 20 32 3e 26 31 3b 20 |/dev/nul|l 2>&1; |
|00003420| 74 68 65 6e 0a 20 20 09 | 20 20 20 20 64 66 6c 74 |then. .| dflt|
|00003430| 3d 27 2d 69 27 0a 20 20 | 09 65 6c 73 65 0a 20 20 |='-i'. |.else. |
|00003440| 09 20 20 20 20 64 66 6c | 74 3d 27 6e 6f 6e 65 27 |. dfl|t='none'|
|00003450| 0a 2d 2d 2d 20 31 33 37 | 33 2c 31 33 38 30 20 2d |.--- 137|3,1380 -|
|00003460| 2d 2d 2d 0a 20 20 2a 73 | 70 6c 69 74 29 0a 20 20 |---. *s|plit). |
|00003470| 20 20 20 20 63 61 73 65 | 20 22 24 73 70 6c 69 74 | case| "$split|
|00003480| 22 20 69 6e 0a 20 20 20 | 20 20 20 27 27 29 20 0a |" in. | '') .|
|00003490| 21 20 09 69 66 20 24 63 | 6f 6e 74 61 69 6e 73 20 |! .if $c|ontains |
|000034a0| 27 5c 2d 69 27 20 24 6d | 61 6e 73 72 63 2f 6c 64 |'\-i' $m|ansrc/ld|
|000034b0| 2e 31 20 3e 2f 64 65 76 | 2f 6e 75 6c 6c 20 32 3e |.1 >/dev|/null 2>|
|000034c0| 26 31 20 7c 7c 20 5c 0a | 21 20 09 20 20 20 24 63 |&1 || \.|! . $c|
|000034d0| 6f 6e 74 61 69 6e 73 20 | 27 5c 2d 69 27 20 24 6d |ontains |'\-i' $m|
|000034e0| 61 6e 73 72 63 2f 63 63 | 2e 31 20 3e 2f 64 65 76 |ansrc/cc|.1 >/dev|
|000034f0| 2f 6e 75 6c 6c 20 32 3e | 26 31 3b 20 74 68 65 6e |/null 2>|&1; then|
|00003500| 0a 20 20 09 20 20 20 20 | 64 66 6c 74 3d 27 2d 69 |. . |dflt='-i|
|00003510| 27 0a 20 20 09 65 6c 73 | 65 0a 20 20 09 20 20 20 |'. .els|e. . |
|00003520| 20 64 66 6c 74 3d 27 6e | 6f 6e 65 27 0a 2a 2a 2a | dflt='n|one'.***|
|00003530| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00003540| 20 31 35 39 34 2c 31 35 | 39 39 20 2a 2a 2a 2a 0a | 1594,15|99 ****.|
|00003550| 2d 2d 2d 20 31 36 33 33 | 2c 31 36 33 39 20 2d 2d |--- 1633|,1639 --|
|00003560| 2d 2d 0a 20 20 64 5f 62 | 63 6f 70 79 3d 27 24 64 |--. d_b|copy='$d|
|00003570| 5f 62 63 6f 70 79 27 0a | 20 20 64 5f 63 68 61 72 |_bcopy'.| d_char|
|00003580| 73 70 72 66 3d 27 24 64 | 5f 63 68 61 72 73 70 72 |sprf='$d|_charspr|
|00003590| 66 27 0a 20 20 64 5f 63 | 72 79 70 74 3d 27 24 64 |f'. d_c|rypt='$d|
|000035a0| 5f 63 72 79 70 74 27 0a | 2b 20 64 5f 64 6f 73 75 |_crypt'.|+ d_dosu|
|000035b0| 69 64 3d 27 24 64 5f 64 | 6f 73 75 69 64 27 0a 20 |id='$d_d|osuid'. |
|000035c0| 20 64 5f 66 63 68 6d 6f | 64 3d 27 24 64 5f 66 63 | d_fchmo|d='$d_fc|
|000035d0| 68 6d 6f 64 27 0a 20 20 | 64 5f 66 63 68 6f 77 6e |hmod'. |d_fchown|
|000035e0| 3d 27 24 64 5f 66 63 68 | 6f 77 6e 27 0a 20 20 64 |='$d_fch|own'. d|
|000035f0| 5f 67 65 74 67 72 70 73 | 3d 27 24 64 5f 67 65 74 |_getgrps|='$d_get|
|00003600| 67 72 70 73 27 0a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |grps'.**|********|
|00003610| 2a 2a 2a 2a 2a 0a 2a 2a | 2a 20 31 36 34 33 2c 31 |*****.**|* 1643,1|
|00003620| 36 34 39 20 2a 2a 2a 2a | 0a 20 20 70 72 69 76 6c |649 ****|. privl|
|00003630| 69 62 3d 27 24 70 72 69 | 76 6c 69 62 27 0a 20 20 |ib='$pri|vlib'. |
|00003640| 43 4f 4e 46 49 47 3d 74 | 72 75 65 0a 20 20 45 4f |CONFIG=t|rue. EO|
|00003650| 54 0a 21 20 20 0a 20 20 | 43 4f 4e 46 49 47 3d 74 |T.! . |CONFIG=t|
|00003660| 72 75 65 0a 20 20 0a 20 | 20 65 63 68 6f 20 22 20 |rue. . | echo " |
|00003670| 22 0a 2d 2d 2d 20 31 36 | 38 33 2c 31 36 38 39 20 |".--- 16|83,1689 |
|00003680| 2d 2d 2d 2d 0a 20 20 70 | 72 69 76 6c 69 62 3d 27 |----. p|rivlib='|
|00003690| 24 70 72 69 76 6c 69 62 | 27 0a 20 20 43 4f 4e 46 |$privlib|'. CONF|
|000036a0| 49 47 3d 74 72 75 65 0a | 20 20 45 4f 54 0a 21 20 |IG=true.| EOT.! |
|000036b0| 0a 20 20 43 4f 4e 46 49 | 47 3d 74 72 75 65 0a 20 |. CONFI|G=true. |
|000036c0| 20 0a 20 20 65 63 68 6f | 20 22 20 22 0a 2a 2a 2a | . echo| " ".***|
|000036d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|000036e0| 20 31 37 31 36 2c 31 37 | 32 30 20 2a 2a 2a 2a 0a | 1716,17|20 ****.|
|000036f0| 2d 2d 2d 20 31 37 35 36 | 2c 31 37 36 33 20 2d 2d |--- 1756|,1763 --|
|00003700| 2d 2d 0a 20 20 66 69 0a | 20 20 0a 20 20 24 72 6d |--. fi.| . $rm|
|00003710| 20 2d 66 20 6b 69 74 2a | 69 73 64 6f 6e 65 0a 2b | -f kit*|isdone.+|
|00003720| 20 3a 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 | : the f|ollowing|
|00003730| 20 69 73 20 63 75 72 72 | 65 6e 74 6c 79 20 75 73 | is curr|ently us|
|00003740| 65 6c 65 73 73 0a 20 20 | 63 64 20 55 55 20 26 26 |eless. |cd UU &&|
|00003750| 20 24 72 6d 20 2d 66 20 | 24 72 6d 6c 69 73 74 0a | $rm -f |$rmlist.|
|00003760| 2b 20 3a 20 73 69 6e 63 | 65 20 74 68 69 73 20 72 |+ : sinc|e this r|
|00003770| 65 6d 6f 76 65 73 20 69 | 74 20 61 6c 6c 20 61 6e |emoves i|t all an|
|00003780| 79 77 61 79 0a 2b 20 63 | 64 20 2e 2e 20 26 26 20 |yway.+ c|d .. && |
|00003790| 24 72 6d 20 2d 72 66 20 | 55 55 0a 20 20 3a 20 65 |$rm -rf |UU. : e|
|000037a0| 6e 64 20 6f 66 20 43 6f | 6e 66 69 67 75 72 65 0a |nd of Co|nfigure.|
|000037b0| 0a 49 6e 64 65 78 3a 20 | 4d 61 6b 65 66 69 6c 65 |.Index: |Makefile|
|000037c0| 2e 53 48 0a 50 72 65 72 | 65 71 3a 20 32 2e 30 0a |.SH.Prer|eq: 2.0.|
|000037d0| 2a 2a 2a 20 4d 61 6b 65 | 66 69 6c 65 2e 53 48 2e |*** Make|file.SH.|
|000037e0| 6f 6c 64 09 54 75 65 20 | 4a 75 6e 20 32 38 20 31 |old.Tue |Jun 28 1|
|000037f0| 36 3a 34 30 3a 31 34 20 | 31 39 38 38 0a 2d 2d 2d |6:40:14 |1988.---|
|00003800| 20 4d 61 6b 65 66 69 6c | 65 2e 53 48 09 54 75 65 | Makefil|e.SH.Tue|
|00003810| 20 4a 75 6e 20 32 38 20 | 31 36 3a 34 30 3a 31 35 | Jun 28 |16:40:15|
|00003820| 20 31 39 38 38 0a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | 1988.**|********|
|00003830| 2a 2a 2a 2a 2a 0a 2a 2a | 2a 20 31 38 2c 32 38 20 |*****.**|* 18,28 |
|00003840| 2a 2a 2a 2a 0a 20 20 2a | 29 20 73 6c 6e 3d 27 6c |****. *|) sln='l|
|00003850| 6e 27 3b 3b 0a 20 20 65 | 73 61 63 0a 20 20 0a 20 |n';;. e|sac. . |
|00003860| 20 65 63 68 6f 20 22 45 | 78 74 72 61 63 74 69 6e | echo "E|xtractin|
|00003870| 67 20 4d 61 6b 65 66 69 | 6c 65 20 28 77 69 74 68 |g Makefi|le (with|
|00003880| 20 76 61 72 69 61 62 6c | 65 20 73 75 62 73 74 69 | variabl|e substi|
|00003890| 74 75 74 69 6f 6e 73 29 | 22 0a 20 20 63 61 74 20 |tutions)|". cat |
|000038a0| 3e 4d 61 6b 65 66 69 6c | 65 20 3c 3c 21 47 52 4f |>Makefil|e <<!GRO|
|000038b0| 4b 21 54 48 49 53 21 0a | 21 20 23 20 24 48 65 61 |K!THIS!.|! # $Hea|
|000038c0| 64 65 72 3a 20 4d 61 6b | 65 66 69 6c 65 2e 53 48 |der: Mak|efile.SH|
|000038d0| 2c 76 20 32 2e 30 20 38 | 38 2f 30 36 2f 30 35 20 |,v 2.0 8|8/06/05 |
|000038e0| 30 30 3a 30 37 3a 35 34 | 20 72 6f 6f 74 20 45 78 |00:07:54| root Ex|
|000038f0| 70 20 24 0a 20 20 23 0a | 20 20 23 20 24 4c 6f 67 |p $. #.| # $Log|
|00003900| 3a 09 4d 61 6b 65 66 69 | 6c 65 2e 53 48 2c 76 20 |:.Makefi|le.SH,v |
|00003910| 24 0a 20 20 23 20 52 65 | 76 69 73 69 6f 6e 20 32 |$. # Re|vision 2|
|00003920| 2e 30 20 20 38 38 2f 30 | 36 2f 30 35 20 20 30 30 |.0 88/0|6/05 00|
|00003930| 3a 30 37 3a 35 34 20 20 | 72 6f 6f 74 0a 20 20 23 |:07:54 |root. #|
|00003940| 20 42 61 73 65 6c 69 6e | 65 20 76 65 72 73 69 6f | Baselin|e versio|
|00003950| 6e 20 32 2e 30 2e 0a 20 | 20 23 20 0a 2d 2d 2d 20 |n 2.0.. | # .--- |
|00003960| 31 38 2c 33 37 20 2d 2d | 2d 2d 0a 20 20 2a 29 20 |18,37 --|--. *) |
|00003970| 73 6c 6e 3d 27 6c 6e 27 | 3b 3b 0a 20 20 65 73 61 |sln='ln'|;;. esa|
|00003980| 63 0a 20 20 0a 2b 20 63 | 61 73 65 20 22 24 64 5f |c. .+ c|ase "$d_|
|00003990| 64 6f 73 75 69 64 22 20 | 69 6e 0a 2b 20 2a 64 65 |dosuid" |in.+ *de|
|000039a0| 66 69 6e 65 2a 29 20 73 | 75 69 64 70 65 72 6c 3d |fine*) s|uidperl=|
|000039b0| 27 73 75 69 64 70 65 72 | 6c 27 20 3b 3b 0a 2b 20 |'suidper|l' ;;.+ |
|000039c0| 2a 29 20 73 75 69 64 70 | 65 72 6c 3d 27 27 3b 3b |*) suidp|erl='';;|
|000039d0| 0a 2b 20 65 73 61 63 0a | 2b 20 0a 20 20 65 63 68 |.+ esac.|+ . ech|
|000039e0| 6f 20 22 45 78 74 72 61 | 63 74 69 6e 67 20 4d 61 |o "Extra|cting Ma|
|000039f0| 6b 65 66 69 6c 65 20 28 | 77 69 74 68 20 76 61 72 |kefile (|with var|
|00003a00| 69 61 62 6c 65 20 73 75 | 62 73 74 69 74 75 74 69 |iable su|bstituti|
|00003a10| 6f 6e 73 29 22 0a 20 20 | 63 61 74 20 3e 4d 61 6b |ons)". |cat >Mak|
|00003a20| 65 66 69 6c 65 20 3c 3c | 21 47 52 4f 4b 21 54 48 |efile <<|!GROK!TH|
|00003a30| 49 53 21 0a 21 20 23 20 | 24 48 65 61 64 65 72 3a |IS!.! # |$Header:|
|00003a40| 20 4d 61 6b 65 66 69 6c | 65 2e 53 48 2c 76 20 32 | Makefil|e.SH,v 2|
|00003a50| 2e 30 2e 31 2e 31 20 38 | 38 2f 30 36 2f 32 38 20 |.0.1.1 8|8/06/28 |
|00003a60| 31 36 3a 32 36 3a 30 34 | 20 72 6f 6f 74 20 45 78 |16:26:04| root Ex|
|00003a70| 70 20 24 0a 20 20 23 0a | 20 20 23 20 24 4c 6f 67 |p $. #.| # $Log|
|00003a80| 3a 09 4d 61 6b 65 66 69 | 6c 65 2e 53 48 2c 76 20 |:.Makefi|le.SH,v |
|00003a90| 24 0a 2b 20 23 20 52 65 | 76 69 73 69 6f 6e 20 32 |$.+ # Re|vision 2|
|00003aa0| 2e 30 2e 31 2e 31 20 20 | 38 38 2f 30 36 2f 32 38 |.0.1.1 |88/06/28|
|00003ab0| 20 20 31 36 3a 32 36 3a | 30 34 20 20 72 6f 6f 74 | 16:26:|04 root|
|00003ac0| 0a 2b 20 23 20 70 61 74 | 63 68 31 3a 20 73 75 70 |.+ # pat|ch1: sup|
|00003ad0| 70 6f 72 74 20 66 6f 72 | 20 44 4f 53 55 49 44 0a |port for| DOSUID.|
|00003ae0| 2b 20 23 20 70 61 74 63 | 68 31 3a 20 72 65 61 6c |+ # patc|h1: real|
|00003af0| 63 6c 65 61 6e 20 6e 6f | 77 20 6b 6e 6f 77 73 20 |clean no|w knows |
|00003b00| 61 62 6f 75 74 20 7e 20 | 65 78 74 65 6e 73 69 6f |about ~ |extensio|
|00003b10| 6e 0a 2b 20 23 20 0a 20 | 20 23 20 52 65 76 69 73 |n.+ # . | # Revis|
|00003b20| 69 6f 6e 20 32 2e 30 20 | 20 38 38 2f 30 36 2f 30 |ion 2.0 | 88/06/0|
|00003b30| 35 20 20 30 30 3a 30 37 | 3a 35 34 20 20 72 6f 6f |5 00:07|:54 roo|
|00003b40| 74 0a 20 20 23 20 42 61 | 73 65 6c 69 6e 65 20 76 |t. # Ba|seline v|
|00003b50| 65 72 73 69 6f 6e 20 32 | 2e 30 2e 0a 20 20 23 20 |ersion 2|.0.. # |
|00003b60| 0a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00003b70| 0a 2a 2a 2a 20 34 32 2c | 35 33 20 2a 2a 2a 2a 0a |.*** 42,|53 ****.|
|00003b80| 20 20 53 4c 4e 20 3d 20 | 24 73 6c 6e 0a 20 20 0a | SLN = |$sln. .|
|00003b90| 20 20 6c 69 62 73 20 3d | 20 24 6c 69 62 6e 6d 20 | libs =| $libnm |
|00003ba0| 2d 6c 6d 0a 2d 20 21 47 | 52 4f 4b 21 54 48 49 53 |-lm.- !G|ROK!THIS|
|00003bb0| 21 0a 20 20 0a 21 20 63 | 61 74 20 3e 3e 4d 61 6b |!. .! c|at >>Mak|
|00003bc0| 65 66 69 6c 65 20 3c 3c | 27 21 4e 4f 21 53 55 42 |efile <<|'!NO!SUB|
|00003bd0| 53 21 27 0a 20 20 0a 21 | 20 70 75 62 6c 69 63 20 |S!'. .!| public |
|00003be0| 3d 20 70 65 72 6c 20 70 | 65 72 6c 64 62 0a 20 20 |= perl p|erldb. |
|00003bf0| 0a 20 20 70 72 69 76 61 | 74 65 20 3d 20 0a 20 20 |. priva|te = . |
|00003c00| 0a 20 20 6d 61 6e 70 61 | 67 65 73 20 3d 20 70 65 |. manpa|ges = pe|
|00003c10| 72 6c 2e 6d 61 6e 20 70 | 65 72 6c 64 62 2e 6d 61 |rl.man p|erldb.ma|
|00003c20| 6e 0a 2d 2d 2d 20 35 31 | 2c 36 32 20 2d 2d 2d 2d |n.--- 51|,62 ----|
|00003c30| 0a 20 20 53 4c 4e 20 3d | 20 24 73 6c 6e 0a 20 20 |. SLN =| $sln. |
|00003c40| 0a 20 20 6c 69 62 73 20 | 3d 20 24 6c 69 62 6e 6d |. libs |= $libnm|
|00003c50| 20 2d 6c 6d 0a 20 20 0a | 21 20 70 75 62 6c 69 63 | -lm. .|! public|
|00003c60| 20 3d 20 70 65 72 6c 20 | 70 65 72 6c 64 62 20 24 | = perl |perldb $|
|00003c70| 73 75 69 64 70 65 72 6c | 0a 20 20 0a 21 20 21 47 |suidperl|. .! !G|
|00003c80| 52 4f 4b 21 54 48 49 53 | 21 0a 20 20 0a 2b 20 63 |ROK!THIS|!. .+ c|
|00003c90| 61 74 20 3e 3e 4d 61 6b | 65 66 69 6c 65 20 3c 3c |at >>Mak|efile <<|
|00003ca0| 27 21 4e 4f 21 53 55 42 | 53 21 27 0a 20 20 70 72 |'!NO!SUB|S!'. pr|
|00003cb0| 69 76 61 74 65 20 3d 20 | 0a 20 20 0a 20 20 6d 61 |ivate = |. . ma|
|00003cc0| 6e 70 61 67 65 73 20 3d | 20 70 65 72 6c 2e 6d 61 |npages =| perl.ma|
|00003cd0| 6e 20 70 65 72 6c 64 62 | 2e 6d 61 6e 0a 2a 2a 2a |n perldb|.man.***|
|00003ce0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00003cf0| 20 36 37 2c 37 33 20 2a | 2a 2a 2a 0a 20 20 63 20 | 67,73 *|***. c |
|00003d00| 3d 20 24 28 63 31 29 20 | 24 28 63 32 29 0a 20 20 |= $(c1) |$(c2). |
|00003d10| 0a 20 20 6f 62 6a 31 20 | 3d 20 61 72 67 2e 6f 20 |. obj1 |= arg.o |
|00003d20| 61 72 72 61 79 2e 6f 20 | 63 6d 64 2e 6f 20 64 75 |array.o |cmd.o du|
|00003d30| 6d 70 2e 6f 20 65 76 61 | 6c 2e 6f 20 66 6f 72 6d |mp.o eva|l.o form|
|00003d40| 2e 6f 20 68 61 73 68 2e | 6f 20 24 28 6d 61 6c 6c |.o hash.|o $(mall|
|00003d50| 6f 63 6f 62 6a 29 0a 21 | 20 6f 62 6a 32 20 3d 20 |ocobj).!| obj2 = |
|00003d60| 70 65 72 6c 79 2e 6f 20 | 72 65 67 65 78 70 2e 6f |perly.o |regexp.o|
|00003d70| 20 73 74 61 62 2e 6f 20 | 73 74 72 2e 6f 20 74 6f | stab.o |str.o to|
|00003d80| 6b 65 2e 6f 20 75 74 69 | 6c 2e 6f 20 76 65 72 73 |ke.o uti|l.o vers|
|00003d90| 69 6f 6e 2e 6f 0a 20 20 | 0a 20 20 6f 62 6a 20 3d |ion.o. |. obj =|
|00003da0| 20 24 28 6f 62 6a 31 29 | 20 24 28 6f 62 6a 32 29 | $(obj1)| $(obj2)|
|00003db0| 0a 20 20 0a 2d 2d 2d 20 | 37 36 2c 38 32 20 2d 2d |. .--- |76,82 --|
|00003dc0| 2d 2d 0a 20 20 63 20 3d | 20 24 28 63 31 29 20 24 |--. c =| $(c1) $|
|00003dd0| 28 63 32 29 0a 20 20 0a | 20 20 6f 62 6a 31 20 3d |(c2). .| obj1 =|
|00003de0| 20 61 72 67 2e 6f 20 61 | 72 72 61 79 2e 6f 20 63 | arg.o a|rray.o c|
|00003df0| 6d 64 2e 6f 20 64 75 6d | 70 2e 6f 20 65 76 61 6c |md.o dum|p.o eval|
|00003e00| 2e 6f 20 66 6f 72 6d 2e | 6f 20 68 61 73 68 2e 6f |.o form.|o hash.o|
|00003e10| 20 24 28 6d 61 6c 6c 6f | 63 6f 62 6a 29 0a 21 20 | $(mallo|cobj).! |
|00003e20| 6f 62 6a 32 20 3d 20 72 | 65 67 65 78 70 2e 6f 20 |obj2 = r|egexp.o |
|00003e30| 73 74 61 62 2e 6f 20 73 | 74 72 2e 6f 20 74 6f 6b |stab.o s|tr.o tok|
|00003e40| 65 2e 6f 20 75 74 69 6c | 2e 6f 20 76 65 72 73 69 |e.o util|.o versi|
|00003e50| 6f 6e 2e 6f 0a 20 20 0a | 20 20 6f 62 6a 20 3d 20 |on.o. .| obj = |
|00003e60| 24 28 6f 62 6a 31 29 20 | 24 28 6f 62 6a 32 29 0a |$(obj1) |$(obj2).|
|00003e70| 20 20 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | .*****|********|
|00003e80| 2a 2a 0a 2a 2a 2a 20 38 | 34 2c 39 32 20 2a 2a 2a |**.*** 8|4,92 ***|
|00003e90| 2a 0a 20 20 61 6c 6c 3a | 20 24 28 70 75 62 6c 69 |*. all:| $(publi|
|00003ea0| 63 29 20 24 28 70 72 69 | 76 61 74 65 29 20 24 28 |c) $(pri|vate) $(|
|00003eb0| 75 74 69 6c 29 0a 20 20 | 09 74 6f 75 63 68 20 61 |util). |.touch a|
|00003ec0| 6c 6c 0a 20 20 0a 21 20 | 70 65 72 6c 3a 20 24 28 |ll. .! |perl: $(|
|00003ed0| 6f 62 6a 29 20 70 65 72 | 6c 2e 6f 0a 21 20 09 24 |obj) per|l.o.! .$|
|00003ee0| 28 43 43 29 20 24 28 4c | 44 46 4c 41 47 53 29 20 |(CC) $(L|DFLAGS) |
|00003ef0| 24 28 4c 41 52 47 45 29 | 20 24 28 6f 62 6a 29 20 |$(LARGE)| $(obj) |
|00003f00| 70 65 72 6c 2e 6f 20 24 | 28 6c 69 62 73 29 20 2d |perl.o $|(libs) -|
|00003f10| 6f 20 70 65 72 6c 0a 20 | 20 0a 20 20 70 65 72 6c |o perl. | . perl|
|00003f20| 2e 63 20 70 65 72 6c 79 | 2e 68 3a 20 70 65 72 6c |.c perly|.h: perl|
|00003f30| 2e 79 0a 20 20 09 40 20 | 65 63 68 6f 20 45 78 70 |.y. .@ |echo Exp|
|00003f40| 65 63 74 20 33 37 20 73 | 68 69 66 74 2f 72 65 64 |ect 37 s|hift/red|
|00003f50| 75 63 65 20 65 72 72 6f | 72 73 2e 2e 2e 0a 20 20 |uce erro|rs.... |
|00003f60| 09 79 61 63 63 20 2d 64 | 20 70 65 72 6c 2e 79 0a |.yacc -d| perl.y.|
|00003f70| 2d 2d 2d 20 39 33 2c 31 | 32 31 20 2d 2d 2d 2d 0a |--- 93,1|21 ----.|
|00003f80| 20 20 61 6c 6c 3a 20 24 | 28 70 75 62 6c 69 63 29 | all: $|(public)|
|00003f90| 20 24 28 70 72 69 76 61 | 74 65 29 20 24 28 75 74 | $(priva|te) $(ut|
|00003fa0| 69 6c 29 0a 20 20 09 74 | 6f 75 63 68 20 61 6c 6c |il). .t|ouch all|
|00003fb0| 0a 20 20 0a 21 20 70 65 | 72 6c 3a 20 70 65 72 6c |. .! pe|rl: perl|
|00003fc0| 79 2e 6f 20 24 28 6f 62 | 6a 29 20 70 65 72 6c 2e |y.o $(ob|j) perl.|
|00003fd0| 6f 0a 21 20 09 24 28 43 | 43 29 20 24 28 4c 44 46 |o.! .$(C|C) $(LDF|
|00003fe0| 4c 41 47 53 29 20 24 28 | 4c 41 52 47 45 29 20 70 |LAGS) $(|LARGE) p|
|00003ff0| 65 72 6c 79 2e 6f 20 24 | 28 6f 62 6a 29 20 70 65 |erly.o $|(obj) pe|
|00004000| 72 6c 2e 6f 20 24 28 6c | 69 62 73 29 20 2d 6f 20 |rl.o $(l|ibs) -o |
|00004010| 70 65 72 6c 0a 20 20 0a | 2b 20 21 4e 4f 21 53 55 |perl. .|+ !NO!SU|
|00004020| 42 53 21 0a 2b 20 0a 2b | 20 63 61 73 65 20 22 24 |BS!.+ .+| case "$|
|00004030| 64 5f 64 6f 73 75 69 64 | 22 20 69 6e 0a 2b 20 2a |d_dosuid|" in.+ *|
|00004040| 64 65 66 69 6e 65 2a 29 | 0a 2b 20 20 20 20 20 63 |define*)|.+ c|
|00004050| 61 74 20 3e 3e 4d 61 6b | 65 66 69 6c 65 20 3c 3c |at >>Mak|efile <<|
|00004060| 27 21 4e 4f 21 53 55 42 | 53 21 27 0a 2b 20 0a 2b |'!NO!SUB|S!'.+ .+|
|00004070| 20 73 75 69 64 70 65 72 | 6c 3a 20 73 70 65 72 6c | suidper|l: sperl|
|00004080| 79 2e 6f 20 24 28 6f 62 | 6a 29 20 70 65 72 6c 2e |y.o $(ob|j) perl.|
|00004090| 6f 0a 2b 20 09 24 28 43 | 43 29 20 24 28 4c 44 46 |o.+ .$(C|C) $(LDF|
|000040a0| 4c 41 47 53 29 20 24 28 | 4c 41 52 47 45 29 20 73 |LAGS) $(|LARGE) s|
|000040b0| 70 65 72 6c 79 2e 6f 20 | 24 28 6f 62 6a 29 20 70 |perly.o |$(obj) p|
|000040c0| 65 72 6c 2e 6f 20 24 28 | 6c 69 62 73 29 20 2d 6f |erl.o $(|libs) -o|
|000040d0| 20 73 75 69 64 70 65 72 | 6c 0a 2b 20 0a 2b 20 73 | suidper|l.+ .+ s|
|000040e0| 70 65 72 6c 79 2e 6f 3a | 20 70 65 72 6c 79 2e 63 |perly.o:| perly.c|
|000040f0| 0a 2b 20 09 2f 62 69 6e | 2f 72 6d 20 2d 66 20 73 |.+ ./bin|/rm -f s|
|00004100| 70 65 72 6c 79 2e 63 0a | 2b 20 09 6c 6e 20 70 65 |perly.c.|+ .ln pe|
|00004110| 72 6c 79 2e 63 20 73 70 | 65 72 6c 79 2e 63 0a 2b |rly.c sp|erly.c.+|
|00004120| 20 09 24 28 43 43 29 20 | 2d 63 20 2d 44 49 41 4d | .$(CC) |-c -DIAM|
|00004130| 53 55 49 44 20 24 28 43 | 46 4c 41 47 53 29 20 24 |SUID $(C|FLAGS) $|
|00004140| 28 4c 41 52 47 45 29 20 | 73 70 65 72 6c 79 2e 63 |(LARGE) |sperly.c|
|00004150| 0a 2b 20 09 2f 62 69 6e | 2f 72 6d 20 2d 66 20 73 |.+ ./bin|/rm -f s|
|00004160| 70 65 72 6c 79 2e 63 0a | 2b 20 21 4e 4f 21 53 55 |perly.c.|+ !NO!SU|
|00004170| 42 53 21 0a 2b 20 20 20 | 20 20 3b 3b 0a 2b 20 65 |BS!.+ | ;;.+ e|
|00004180| 73 61 63 0a 2b 20 0a 2b | 20 63 61 74 20 3e 3e 4d |sac.+ .+| cat >>M|
|00004190| 61 6b 65 66 69 6c 65 20 | 3c 3c 27 21 4e 4f 21 53 |akefile |<<'!NO!S|
|000041a0| 55 42 53 21 27 0a 2b 20 | 0a 20 20 70 65 72 6c 2e |UBS!'.+ |. perl.|
|000041b0| 63 20 70 65 72 6c 79 2e | 68 3a 20 70 65 72 6c 2e |c perly.|h: perl.|
|000041c0| 79 0a 20 20 09 40 20 65 | 63 68 6f 20 45 78 70 65 |y. .@ e|cho Expe|
|000041d0| 63 74 20 33 37 20 73 68 | 69 66 74 2f 72 65 64 75 |ct 37 sh|ift/redu|
|000041e0| 63 65 20 65 72 72 6f 72 | 73 2e 2e 2e 0a 20 20 09 |ce error|s.... .|
|000041f0| 79 61 63 63 20 2d 64 20 | 70 65 72 6c 2e 79 0a 2a |yacc -d |perl.y.*|
|00004200| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|00004210| 2a 2a 20 31 30 38 2c 31 | 31 37 20 2a 2a 2a 2a 0a |** 108,1|17 ****.|
|00004220| 20 20 09 65 78 70 6f 72 | 74 20 50 41 54 48 20 7c | .expor|t PATH ||
|00004230| 7c 20 65 78 69 74 20 31 | 0a 20 20 09 2d 20 6d 76 || exit 1|. .- mv|
|00004240| 20 24 28 62 69 6e 29 2f | 70 65 72 6c 20 24 28 62 | $(bin)/|perl $(b|
|00004250| 69 6e 29 2f 70 65 72 6c | 2e 6f 6c 64 20 32 3e 2f |in)/perl|.old 2>/|
|00004260| 64 65 76 2f 6e 75 6c 6c | 0a 20 20 09 2d 20 69 66 |dev/null|. .- if|
|00004270| 20 74 65 73 74 20 60 70 | 77 64 60 20 21 3d 20 24 | test `p|wd` != $|
|00004280| 28 62 69 6e 29 3b 20 74 | 68 65 6e 20 63 70 20 24 |(bin); t|hen cp $|
|00004290| 28 70 75 62 6c 69 63 29 | 20 24 28 62 69 6e 29 3b |(public)| $(bin);|
|000042a0| 20 66 69 0a 21 20 09 63 | 64 20 24 28 62 69 6e 29 | fi.! .c|d $(bin)|
|000042b0| 3b 20 5c 0a 20 20 66 6f | 72 20 70 75 62 20 69 6e |; \. fo|r pub in|
|000042c0| 20 24 28 70 75 62 6c 69 | 63 29 3b 20 64 6f 20 5c | $(publi|c); do \|
|000042d0| 0a 20 20 63 68 6d 6f 64 | 20 2b 78 20 60 62 61 73 |. chmod| +x `bas|
|000042e0| 65 6e 61 6d 65 20 24 24 | 70 75 62 60 3b 20 5c 0a |ename $$|pub`; \.|
|000042f0| 20 20 64 6f 6e 65 0a 20 | 20 09 2d 20 74 65 73 74 | done. | .- test|
|00004300| 20 24 28 62 69 6e 29 20 | 3d 20 2f 75 73 72 2f 62 | $(bin) |= /usr/b|
|00004310| 69 6e 20 7c 7c 20 72 6d | 20 2d 66 20 2f 75 73 72 |in || rm| -f /usr|
|00004320| 2f 62 69 6e 2f 70 65 72 | 6c 0a 20 20 09 2d 20 74 |/bin/per|l. .- t|
|00004330| 65 73 74 20 24 28 62 69 | 6e 29 20 3d 20 2f 75 73 |est $(bi|n) = /us|
|00004340| 72 2f 62 69 6e 20 7c 7c | 20 24 28 53 4c 4e 29 20 |r/bin ||| $(SLN) |
|00004350| 24 28 62 69 6e 29 2f 70 | 65 72 6c 20 2f 75 73 72 |$(bin)/p|erl /usr|
|00004360| 2f 62 69 6e 20 7c 7c 20 | 63 70 20 24 28 62 69 6e |/bin || |cp $(bin|
|00004370| 29 2f 70 65 72 6c 20 2f | 75 73 72 2f 62 69 6e 0a |)/perl /|usr/bin.|
|00004380| 20 20 09 63 68 6d 6f 64 | 20 2b 78 20 6d 61 6b 65 | .chmod| +x make|
|00004390| 64 69 72 0a 2d 2d 2d 20 | 31 33 37 2c 31 35 37 20 |dir.--- |137,157 |
|000043a0| 2d 2d 2d 2d 0a 20 20 09 | 65 78 70 6f 72 74 20 50 |----. .|export P|
|000043b0| 41 54 48 20 7c 7c 20 65 | 78 69 74 20 31 0a 20 20 |ATH || e|xit 1. |
|000043c0| 09 2d 20 6d 76 20 24 28 | 62 69 6e 29 2f 70 65 72 |.- mv $(|bin)/per|
|000043d0| 6c 20 24 28 62 69 6e 29 | 2f 70 65 72 6c 2e 6f 6c |l $(bin)|/perl.ol|
|000043e0| 64 20 32 3e 2f 64 65 76 | 2f 6e 75 6c 6c 0a 20 20 |d 2>/dev|/null. |
|000043f0| 09 2d 20 69 66 20 74 65 | 73 74 20 60 70 77 64 60 |.- if te|st `pwd`|
|00004400| 20 21 3d 20 24 28 62 69 | 6e 29 3b 20 74 68 65 6e | != $(bi|n); then|
|00004410| 20 63 70 20 24 28 70 75 | 62 6c 69 63 29 20 24 28 | cp $(pu|blic) $(|
|00004420| 62 69 6e 29 3b 20 66 69 | 0a 21 20 09 2d 20 63 64 |bin); fi|.! .- cd|
|00004430| 20 24 28 62 69 6e 29 3b | 20 5c 0a 20 20 66 6f 72 | $(bin);| \. for|
|00004440| 20 70 75 62 20 69 6e 20 | 24 28 70 75 62 6c 69 63 | pub in |$(public|
|00004450| 29 3b 20 64 6f 20 5c 0a | 20 20 63 68 6d 6f 64 20 |); do \.| chmod |
|00004460| 2b 78 20 60 62 61 73 65 | 6e 61 6d 65 20 24 24 70 |+x `base|name $$p|
|00004470| 75 62 60 3b 20 5c 0a 20 | 20 64 6f 6e 65 0a 2b 20 |ub`; \. | done.+ |
|00004480| 21 4e 4f 21 53 55 42 53 | 21 0a 2b 20 0a 2b 20 63 |!NO!SUBS|!.+ .+ c|
|00004490| 61 73 65 20 22 24 64 5f | 64 6f 73 75 69 64 22 20 |ase "$d_|dosuid" |
|000044a0| 69 6e 0a 2b 20 2a 64 65 | 66 69 6e 65 2a 29 0a 2b |in.+ *de|fine*).+|
|000044b0| 20 20 20 20 20 63 61 74 | 20 3e 3e 4d 61 6b 65 66 | cat| >>Makef|
|000044c0| 69 6c 65 20 3c 3c 27 21 | 4e 4f 21 53 55 42 53 21 |ile <<'!|NO!SUBS!|
|000044d0| 27 0a 2b 20 09 2d 20 63 | 68 6d 6f 64 20 34 37 31 |'.+ .- c|hmod 471|
|000044e0| 31 20 24 28 62 69 6e 29 | 2f 73 75 69 64 70 65 72 |1 $(bin)|/suidper|
|000044f0| 6c 20 32 3e 2f 64 65 76 | 2f 6e 75 6c 6c 0a 2b 20 |l 2>/dev|/null.+ |
|00004500| 21 4e 4f 21 53 55 42 53 | 21 0a 2b 20 20 20 20 20 |!NO!SUBS|!.+ |
|00004510| 3b 3b 0a 2b 20 65 73 61 | 63 0a 2b 20 0a 2b 20 63 |;;.+ esa|c.+ .+ c|
|00004520| 61 74 20 3e 3e 4d 61 6b | 65 66 69 6c 65 20 3c 3c |at >>Mak|efile <<|
|00004530| 27 21 4e 4f 21 53 55 42 | 53 21 27 0a 20 20 09 2d |'!NO!SUB|S!'. .-|
|00004540| 20 74 65 73 74 20 24 28 | 62 69 6e 29 20 3d 20 2f | test $(|bin) = /|
|00004550| 75 73 72 2f 62 69 6e 20 | 7c 7c 20 72 6d 20 2d 66 |usr/bin ||| rm -f|
|00004560| 20 2f 75 73 72 2f 62 69 | 6e 2f 70 65 72 6c 0a 20 | /usr/bi|n/perl. |
|00004570| 20 09 2d 20 74 65 73 74 | 20 24 28 62 69 6e 29 20 | .- test| $(bin) |
|00004580| 3d 20 2f 75 73 72 2f 62 | 69 6e 20 7c 7c 20 24 28 |= /usr/b|in || $(|
|00004590| 53 4c 4e 29 20 24 28 62 | 69 6e 29 2f 70 65 72 6c |SLN) $(b|in)/perl|
|000045a0| 20 2f 75 73 72 2f 62 69 | 6e 20 7c 7c 20 63 70 20 | /usr/bi|n || cp |
|000045b0| 24 28 62 69 6e 29 2f 70 | 65 72 6c 20 2f 75 73 72 |$(bin)/p|erl /usr|
|000045c0| 2f 62 69 6e 0a 20 20 09 | 63 68 6d 6f 64 20 2b 78 |/bin. .|chmod +x|
|000045d0| 20 6d 61 6b 65 64 69 72 | 0a 2a 2a 2a 2a 2a 2a 2a | makedir|.*******|
|000045e0| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 2a 2a 2a 20 31 33 34 |********|.*** 134|
|000045f0| 2c 31 34 30 20 2a 2a 2a | 2a 0a 20 20 09 72 6d 20 |,140 ***|*. .rm |
|00004600| 2d 66 20 2a 2e 6f 0a 20 | 20 0a 20 20 72 65 61 6c |-f *.o. | . real|
|00004610| 63 6c 65 61 6e 3a 0a 21 | 20 09 72 6d 20 2d 66 20 |clean:.!| .rm -f |
|00004620| 70 65 72 6c 20 2a 2e 6f | 72 69 67 20 2a 2f 2a 2e |perl *.o|rig */*.|
|00004630| 6f 72 69 67 20 2a 2e 6f | 20 63 6f 72 65 20 24 28 |orig *.o| core $(|
|00004640| 61 64 64 65 64 62 79 63 | 6f 6e 66 29 0a 20 20 0a |addedbyc|onf). .|
|00004650| 20 20 23 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | # The |followin|
|00004660| 67 20 6c 69 6e 74 20 68 | 61 73 20 70 72 61 63 74 |g lint h|as pract|
|00004670| 69 63 61 6c 6c 79 20 65 | 76 65 72 79 74 68 69 6e |ically e|verythin|
|00004680| 67 20 74 75 72 6e 65 64 | 20 6f 6e 2e 20 20 55 6e |g turned| on. Un|
|00004690| 66 6f 72 74 75 6e 61 74 | 65 6c 79 2c 0a 20 20 23 |fortunat|ely,. #|
|000046a0| 20 79 6f 75 20 68 61 76 | 65 20 74 6f 20 77 61 64 | you hav|e to wad|
|000046b0| 65 20 74 68 72 6f 75 67 | 68 20 61 20 6c 6f 74 20 |e throug|h a lot |
|000046c0| 6f 66 20 6d 75 6d 62 6f | 20 6a 75 6d 62 6f 20 74 |of mumbo| jumbo t|
|000046d0| 68 61 74 20 63 61 6e 27 | 74 20 62 65 20 73 75 70 |hat can'|t be sup|
|000046e0| 70 72 65 73 73 65 64 2e | 0a 2d 2d 2d 20 31 37 34 |pressed.|.--- 174|
|000046f0| 2c 31 38 30 20 2d 2d 2d | 2d 0a 20 20 09 72 6d 20 |,180 ---|-. .rm |
|00004700| 2d 66 20 2a 2e 6f 0a 20 | 20 0a 20 20 72 65 61 6c |-f *.o. | . real|
|00004710| 63 6c 65 61 6e 3a 0a 21 | 20 09 72 6d 20 2d 66 20 |clean:.!| .rm -f |
|00004720| 70 65 72 6c 20 2a 2e 6f | 72 69 67 20 2a 2f 2a 2e |perl *.o|rig */*.|
|00004730| 6f 72 69 67 20 2a 7e 20 | 2a 2f 2a 7e 20 2a 2e 6f |orig *~ |*/*~ *.o|
|00004740| 20 63 6f 72 65 20 24 28 | 61 64 64 65 64 62 79 63 | core $(|addedbyc|
|00004750| 6f 6e 66 29 0a 20 20 0a | 20 20 23 20 54 68 65 20 |onf). .| # The |
|00004760| 66 6f 6c 6c 6f 77 69 6e | 67 20 6c 69 6e 74 20 68 |followin|g lint h|
|00004770| 61 73 20 70 72 61 63 74 | 69 63 61 6c 6c 79 20 65 |as pract|ically e|
|00004780| 76 65 72 79 74 68 69 6e | 67 20 74 75 72 6e 65 64 |verythin|g turned|
|00004790| 20 6f 6e 2e 20 20 55 6e | 66 6f 72 74 75 6e 61 74 | on. Un|fortunat|
|000047a0| 65 6c 79 2c 0a 20 20 23 | 20 79 6f 75 20 68 61 76 |ely,. #| you hav|
|000047b0| 65 20 74 6f 20 77 61 64 | 65 20 74 68 72 6f 75 67 |e to wad|e throug|
|000047c0| 68 20 61 20 6c 6f 74 20 | 6f 66 20 6d 75 6d 62 6f |h a lot |of mumbo|
|000047d0| 20 6a 75 6d 62 6f 20 74 | 68 61 74 20 63 61 6e 27 | jumbo t|hat can'|
|000047e0| 74 20 62 65 20 73 75 70 | 70 72 65 73 73 65 64 2e |t be sup|pressed.|
|000047f0| 0a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00004800| 0a 2a 2a 2a 20 31 36 33 | 2c 31 36 39 20 2a 2a 2a |.*** 163|,169 ***|
|00004810| 2a 0a 20 20 09 65 63 68 | 6f 20 24 28 73 68 29 20 |*. .ech|o $(sh) |
|00004820| 7c 20 74 72 20 27 20 27 | 20 27 5c 30 31 32 27 20 || tr ' '| '\012' |
|00004830| 3e 2e 73 68 6c 69 73 74 | 0a 20 20 0a 20 20 23 20 |>.shlist|. . # |
|00004840| 41 55 54 4f 4d 41 54 49 | 43 41 4c 4c 59 20 47 45 |AUTOMATI|CALLY GE|
|00004850| 4e 45 52 41 54 45 44 20 | 4d 41 4b 45 20 44 45 50 |NERATED |MAKE DEP|
|00004860| 45 4e 44 45 4e 43 49 45 | 53 2d 2d 50 55 54 20 4e |ENDENCIE|S--PUT N|
|00004870| 4f 54 48 49 4e 47 20 42 | 45 4c 4f 57 20 54 48 49 |OTHING B|ELOW THI|
|00004880| 53 20 4c 49 4e 45 0a 21 | 20 24 28 6f 62 6a 29 3a |S LINE.!| $(obj):|
|00004890| 0a 20 20 09 40 20 65 63 | 68 6f 20 22 59 6f 75 20 |. .@ ec|ho "You |
|000048a0| 68 61 76 65 6e 27 74 20 | 64 6f 6e 65 20 61 20 22 |haven't |done a "|
|000048b0| 27 22 6d 61 6b 65 20 64 | 65 70 65 6e 64 22 20 79 |'"make d|epend" y|
|000048c0| 65 74 21 27 3b 20 65 78 | 69 74 20 31 0a 20 20 6d |et!'; ex|it 1. m|
|000048d0| 61 6b 65 64 65 70 65 6e | 64 3a 20 6d 61 6b 65 64 |akedepen|d: maked|
|000048e0| 65 70 65 6e 64 2e 53 48 | 0a 20 20 09 2f 62 69 6e |epend.SH|. ./bin|
|000048f0| 2f 73 68 20 6d 61 6b 65 | 64 65 70 65 6e 64 2e 53 |/sh make|depend.S|
|00004900| 48 0a 2d 2d 2d 20 32 30 | 33 2c 32 30 39 20 2d 2d |H.--- 20|3,209 --|
|00004910| 2d 2d 0a 20 20 09 65 63 | 68 6f 20 24 28 73 68 29 |--. .ec|ho $(sh)|
|00004920| 20 7c 20 74 72 20 27 20 | 27 20 27 5c 30 31 32 27 | | tr ' |' '\012'|
|00004930| 20 3e 2e 73 68 6c 69 73 | 74 0a 20 20 0a 20 20 23 | >.shlis|t. . #|
|00004940| 20 41 55 54 4f 4d 41 54 | 49 43 41 4c 4c 59 20 47 | AUTOMAT|ICALLY G|
|00004950| 45 4e 45 52 41 54 45 44 | 20 4d 41 4b 45 20 44 45 |ENERATED| MAKE DE|
|00004960| 50 45 4e 44 45 4e 43 49 | 45 53 2d 2d 50 55 54 20 |PENDENCI|ES--PUT |
|00004970| 4e 4f 54 48 49 4e 47 20 | 42 45 4c 4f 57 20 54 48 |NOTHING |BELOW TH|
|00004980| 49 53 20 4c 49 4e 45 0a | 21 20 70 65 72 6c 79 2e |IS LINE.|! perly.|
|00004990| 6f 20 24 28 6f 62 6a 29 | 3a 0a 20 20 09 40 20 65 |o $(obj)|:. .@ e|
|000049a0| 63 68 6f 20 22 59 6f 75 | 20 68 61 76 65 6e 27 74 |cho "You| haven't|
|000049b0| 20 64 6f 6e 65 20 61 20 | 22 27 22 6d 61 6b 65 20 | done a |"'"make |
|000049c0| 64 65 70 65 6e 64 22 20 | 79 65 74 21 27 3b 20 65 |depend" |yet!'; e|
|000049d0| 78 69 74 20 31 0a 20 20 | 6d 61 6b 65 64 65 70 65 |xit 1. |makedepe|
|000049e0| 6e 64 3a 20 6d 61 6b 65 | 64 65 70 65 6e 64 2e 53 |nd: make|depend.S|
|000049f0| 48 0a 20 20 09 2f 62 69 | 6e 2f 73 68 20 6d 61 6b |H. ./bi|n/sh mak|
|00004a00| 65 64 65 70 65 6e 64 2e | 53 48 0a 0a 49 6e 64 65 |edepend.|SH..Inde|
|00004a10| 78 3a 20 63 6f 6e 66 69 | 67 2e 68 2e 53 48 0a 2a |x: confi|g.h.SH.*|
|00004a20| 2a 2a 20 63 6f 6e 66 69 | 67 2e 68 2e 53 48 2e 6f |** confi|g.h.SH.o|
|00004a30| 6c 64 09 54 75 65 20 4a | 75 6e 20 32 38 20 31 36 |ld.Tue J|un 28 16|
|00004a40| 3a 34 30 3a 31 39 20 31 | 39 38 38 0a 2d 2d 2d 20 |:40:19 1|988.--- |
|00004a50| 63 6f 6e 66 69 67 2e 68 | 2e 53 48 09 54 75 65 20 |config.h|.SH.Tue |
|00004a60| 4a 75 6e 20 32 38 20 31 | 36 3a 34 30 3a 32 30 20 |Jun 28 1|6:40:20 |
|00004a70| 31 39 38 38 0a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |1988.***|********|
|00004a80| 2a 2a 2a 2a 0a 2a 2a 2a | 20 31 31 2c 31 37 20 2a |****.***| 11,17 *|
|00004a90| 2a 2a 2a 0a 20 20 20 20 | 20 20 3b 3b 0a 20 20 65 |***. | ;;. e|
|00004aa0| 73 61 63 0a 20 20 65 63 | 68 6f 20 22 45 78 74 72 |sac. ec|ho "Extr|
|00004ab0| 61 63 74 69 6e 67 20 63 | 6f 6e 66 69 67 2e 68 20 |acting c|onfig.h |
|00004ac0| 28 77 69 74 68 20 76 61 | 72 69 61 62 6c 65 20 73 |(with va|riable s|
|00004ad0| 75 62 73 74 69 74 75 74 | 69 6f 6e 73 29 22 0a 21 |ubstitut|ions)".!|
|00004ae0| 20 63 61 74 20 3c 3c 21 | 47 52 4f 4b 21 54 48 49 | cat <<!|GROK!THI|
|00004af0| 53 21 20 3e 63 6f 6e 66 | 69 67 2e 68 0a 20 20 2f |S! >conf|ig.h. /|
|00004b00| 2a 20 63 6f 6e 66 69 67 | 2e 68 0a 20 20 20 2a 20 |* config|.h. * |
|00004b10| 54 68 69 73 20 66 69 6c | 65 20 77 61 73 20 70 72 |This fil|e was pr|
|00004b20| 6f 64 75 63 65 64 20 62 | 79 20 72 75 6e 6e 69 6e |oduced b|y runnin|
|00004b30| 67 20 74 68 65 20 63 6f | 6e 66 69 67 2e 68 2e 53 |g the co|nfig.h.S|
|00004b40| 48 20 73 63 72 69 70 74 | 2c 20 77 68 69 63 68 0a |H script|, which.|
|00004b50| 20 20 20 2a 20 67 65 74 | 73 20 69 74 73 20 76 61 | * get|s its va|
|00004b60| 6c 75 65 73 20 66 72 6f | 6d 20 63 6f 6e 66 69 67 |lues fro|m config|
|00004b70| 2e 73 68 2c 20 77 68 69 | 63 68 20 69 73 20 67 65 |.sh, whi|ch is ge|
|00004b80| 6e 65 72 61 6c 6c 79 20 | 70 72 6f 64 75 63 65 64 |nerally |produced|
|00004b90| 20 62 79 0a 2d 2d 2d 20 | 31 31 2c 31 37 20 2d 2d | by.--- |11,17 --|
|00004ba0| 2d 2d 0a 20 20 20 20 20 | 20 3b 3b 0a 20 20 65 73 |--. | ;;. es|
|00004bb0| 61 63 0a 20 20 65 63 68 | 6f 20 22 45 78 74 72 61 |ac. ech|o "Extra|
|00004bc0| 63 74 69 6e 67 20 63 6f | 6e 66 69 67 2e 68 20 28 |cting co|nfig.h (|
|00004bd0| 77 69 74 68 20 76 61 72 | 69 61 62 6c 65 20 73 75 |with var|iable su|
|00004be0| 62 73 74 69 74 75 74 69 | 6f 6e 73 29 22 0a 21 20 |bstituti|ons)".! |
|00004bf0| 73 65 64 20 3c 3c 21 47 | 52 4f 4b 21 54 48 49 53 |sed <<!G|ROK!THIS|
|00004c00| 21 20 3e 63 6f 6e 66 69 | 67 2e 68 20 2d 65 20 27 |! >confi|g.h -e '|
|00004c10| 73 21 5e 23 75 6e 64 65 | 66 21 2f 5c 2a 23 75 6e |s!^#unde|f!/\*#un|
|00004c20| 64 65 66 21 27 0a 20 20 | 2f 2a 20 63 6f 6e 66 69 |def!'. |/* confi|
|00004c30| 67 2e 68 0a 20 20 20 2a | 20 54 68 69 73 20 66 69 |g.h. *| This fi|
|00004c40| 6c 65 20 77 61 73 20 70 | 72 6f 64 75 63 65 64 20 |le was p|roduced |
|00004c50| 62 79 20 72 75 6e 6e 69 | 6e 67 20 74 68 65 20 63 |by runni|ng the c|
|00004c60| 6f 6e 66 69 67 2e 68 2e | 53 48 20 73 63 72 69 70 |onfig.h.|SH scrip|
|00004c70| 74 2c 20 77 68 69 63 68 | 0a 20 20 20 2a 20 67 65 |t, which|. * ge|
|00004c80| 74 73 20 69 74 73 20 76 | 61 6c 75 65 73 20 66 72 |ts its v|alues fr|
|00004c90| 6f 6d 20 63 6f 6e 66 69 | 67 2e 73 68 2c 20 77 68 |om confi|g.sh, wh|
|00004ca0| 69 63 68 20 69 73 20 67 | 65 6e 65 72 61 6c 6c 79 |ich is g|enerally|
|00004cb0| 20 70 72 6f 64 75 63 65 | 64 20 62 79 0a 2a 2a 2a | produce|d by.***|
|00004cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00004cd0| 20 37 30 2c 37 35 20 2a | 2a 2a 2a 0a 2d 2d 2d 20 | 70,75 *|***.--- |
|00004ce0| 37 30 2c 39 30 20 2d 2d | 2d 2d 0a 20 20 20 2a 09 |70,90 --|--. *.|
|00004cf0| 74 6f 20 65 6e 63 72 79 | 70 74 20 70 61 73 73 77 |to encry|pt passw|
|00004d00| 6f 72 64 73 20 61 6e 64 | 20 74 68 65 20 6c 69 6b |ords and| the lik|
|00004d10| 65 2e 0a 20 20 20 2a 2f | 0a 20 20 23 24 64 5f 63 |e.. */|. #$d_c|
|00004d20| 72 79 70 74 09 43 52 59 | 50 54 09 09 2f 2a 2a 2f |rypt.CRY|PT../**/|
|00004d30| 0a 2b 20 0a 2b 20 2f 2a | 20 44 4f 53 55 49 44 3a |.+ .+ /*| DOSUID:|
|00004d40| 0a 2b 20 20 2a 09 54 68 | 69 73 20 73 79 6d 62 6f |.+ *.Th|is symbo|
|00004d50| 6c 2c 20 69 66 20 64 65 | 66 69 6e 65 64 2c 20 69 |l, if de|fined, i|
|00004d60| 6e 64 69 63 61 74 65 73 | 20 74 68 61 74 20 74 68 |ndicates| that th|
|00004d70| 65 20 43 20 70 72 6f 67 | 72 61 6d 20 73 68 6f 75 |e C prog|ram shou|
|00004d80| 6c 64 0a 2b 20 20 2a 09 | 63 68 65 63 6b 20 74 68 |ld.+ *.|check th|
|00004d90| 65 20 73 63 72 69 70 74 | 20 74 68 61 74 20 69 74 |e script| that it|
|00004da0| 20 69 73 20 65 78 65 63 | 75 74 69 6e 67 20 66 6f | is exec|uting fo|
|00004db0| 72 20 73 65 74 75 69 64 | 2f 73 65 74 67 69 64 20 |r setuid|/setgid |
|00004dc0| 62 69 74 73 2c 20 61 6e | 64 0a 2b 20 20 2a 09 61 |bits, an|d.+ *.a|
|00004dd0| 74 74 65 6d 70 74 20 74 | 6f 20 65 6d 75 6c 61 74 |ttempt t|o emulat|
|00004de0| 65 20 73 65 74 75 69 64 | 2f 73 65 74 67 69 64 20 |e setuid|/setgid |
|00004df0| 6f 6e 20 73 79 73 74 65 | 6d 73 20 74 68 61 74 20 |on syste|ms that |
|00004e00| 68 61 76 65 20 64 69 73 | 61 62 6c 65 64 0a 2b 20 |have dis|abled.+ |
|00004e10| 20 2a 09 73 65 74 75 69 | 64 20 23 21 20 73 63 72 | *.setui|d #! scr|
|00004e20| 69 70 74 73 20 62 65 63 | 61 75 73 65 20 74 68 65 |ipts bec|ause the|
|00004e30| 20 6b 65 72 6e 65 6c 20 | 63 61 6e 27 74 20 64 6f | kernel |can't do|
|00004e40| 20 69 74 20 73 65 63 75 | 72 65 6c 79 2e 0a 2b 20 | it secu|rely..+ |
|00004e50| 20 2a 09 49 74 20 69 73 | 20 75 70 20 74 6f 20 74 | *.It is| up to t|
|00004e60| 68 65 20 70 61 63 6b 61 | 67 65 20 64 65 73 69 67 |he packa|ge desig|
|00004e70| 6e 65 72 20 74 6f 20 6d | 61 6b 65 20 73 75 72 65 |ner to m|ake sure|
|00004e80| 20 74 68 61 74 20 74 68 | 69 73 20 65 6d 75 6c 61 | that th|is emula|
|00004e90| 74 69 6f 6e 0a 2b 20 20 | 2a 09 69 73 20 64 6f 6e |tion.+ |*.is don|
|00004ea0| 65 20 73 65 63 75 72 65 | 6c 79 2e 20 20 41 6d 6f |e secure|ly. Amo|
|00004eb0| 6e 67 20 6f 74 68 65 72 | 20 74 68 69 6e 67 73 2c |ng other| things,|
|00004ec0| 20 69 74 20 73 68 6f 75 | 6c 64 20 64 6f 20 61 6e | it shou|ld do an|
|00004ed0| 20 66 73 74 61 74 20 6f | 6e 0a 2b 20 20 2a 09 74 | fstat o|n.+ *.t|
|00004ee0| 68 65 20 73 63 72 69 70 | 74 20 69 74 20 6a 75 73 |he scrip|t it jus|
|00004ef0| 74 20 6f 70 65 6e 65 64 | 20 74 6f 20 6d 61 6b 65 |t opened| to make|
|00004f00| 20 73 75 72 65 20 69 74 | 20 72 65 61 6c 6c 79 20 | sure it| really |
|00004f10| 69 73 20 61 20 73 65 74 | 75 69 64 2f 73 65 74 67 |is a set|uid/setg|
|00004f20| 69 64 0a 2b 20 20 2a 09 | 73 63 72 69 70 74 2c 20 |id.+ *.|script, |
|00004f30| 69 74 20 73 68 6f 75 6c | 64 20 6d 61 6b 65 20 73 |it shoul|d make s|
|00004f40| 75 72 65 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |ure the |argument|
|00004f50| 73 20 70 61 73 73 65 64 | 20 63 6f 72 72 65 73 70 |s passed| corresp|
|00004f60| 6f 6e 64 20 65 78 61 63 | 74 6c 79 0a 2b 20 20 2a |ond exac|tly.+ *|
|00004f70| 09 74 6f 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |.to the |argument|
|00004f80| 20 6f 6e 20 74 68 65 20 | 23 21 20 6c 69 6e 65 2c | on the |#! line,|
|00004f90| 20 61 6e 64 20 69 74 20 | 73 68 6f 75 6c 64 20 6e | and it |should n|
|00004fa0| 6f 74 20 74 72 75 73 74 | 20 61 6e 79 0a 2b 20 20 |ot trust| any.+ |
|00004fb0| 2a 09 73 75 62 70 72 6f | 63 65 73 73 65 73 20 74 |*.subpro|cesses t|
|00004fc0| 6f 20 77 68 69 63 68 20 | 69 74 20 6d 75 73 74 20 |o which |it must |
|00004fd0| 70 61 73 73 20 74 68 65 | 20 66 69 6c 65 6e 61 6d |pass the| filenam|
|00004fe0| 65 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 74 68 |e rather| than th|
|00004ff0| 65 0a 2b 20 20 2a 09 66 | 69 6c 65 20 64 65 73 63 |e.+ *.f|ile desc|
|00005000| 72 69 70 74 6f 72 20 6f | 66 20 74 68 65 20 73 63 |riptor o|f the sc|
|00005010| 72 69 70 74 20 74 6f 20 | 62 65 20 65 78 65 63 75 |ript to |be execu|
|00005020| 74 65 64 2e 0a 2b 20 20 | 2a 2f 0a 2b 20 23 24 64 |ted..+ |*/.+ #$d|
|00005030| 5f 64 6f 73 75 69 64 20 | 44 4f 53 55 49 44 09 09 |_dosuid |DOSUID..|
|00005040| 2f 2a 2a 2f 0a 20 20 0a | 20 20 2f 2a 20 46 43 48 |/**/. .| /* FCH|
|00005050| 4d 4f 44 3a 0a 20 20 20 | 2a 09 54 68 69 73 20 73 |MOD:. |*.This s|
|00005060| 79 6d 62 6f 6c 2c 20 69 | 66 20 64 65 66 69 6e 65 |ymbol, i|f define|
|00005070| 64 2c 20 69 6e 64 69 63 | 61 74 65 73 20 74 68 61 |d, indic|ates tha|
|00005080| 74 20 74 68 65 20 66 63 | 68 6d 6f 64 20 72 6f 75 |t the fc|hmod rou|
|00005090| 74 69 6e 65 20 69 73 20 | 61 76 61 69 6c 61 62 6c |tine is |availabl|
|000050a0| 65 0a 0a 49 6e 64 65 78 | 3a 20 70 65 72 6c 2e 6d |e..Index|: perl.m|
|000050b0| 61 6e 2e 31 0a 50 72 65 | 72 65 71 3a 20 32 2e 30 |an.1.Pre|req: 2.0|
|000050c0| 0a 2a 2a 2a 20 70 65 72 | 6c 2e 6d 61 6e 2e 31 2e |.*** per|l.man.1.|
|000050d0| 6f 6c 64 09 54 75 65 20 | 4a 75 6e 20 32 38 20 31 |old.Tue |Jun 28 1|
|000050e0| 36 3a 34 30 3a 32 37 20 | 31 39 38 38 0a 2d 2d 2d |6:40:27 |1988.---|
|000050f0| 20 70 65 72 6c 2e 6d 61 | 6e 2e 31 09 54 75 65 20 | perl.ma|n.1.Tue |
|00005100| 4a 75 6e 20 32 38 20 31 | 36 3a 34 30 3a 32 39 20 |Jun 28 1|6:40:29 |
|00005110| 31 39 38 38 0a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |1988.***|********|
|00005120| 2a 2a 2a 2a 0a 2a 2a 2a | 20 31 2c 37 20 2a 2a 2a |****.***| 1,7 ***|
|00005130| 2a 0a 20 20 2e 72 6e 20 | 27 27 20 7d 60 0a 21 20 |*. .rn |'' }`.! |
|00005140| 27 27 27 20 24 48 65 61 | 64 65 72 3a 20 70 65 72 |''' $Hea|der: per|
|00005150| 6c 2e 6d 61 6e 2e 31 2c | 76 20 32 2e 30 20 38 38 |l.man.1,|v 2.0 88|
|00005160| 2f 30 36 2f 30 35 20 30 | 30 3a 30 39 3a 32 33 20 |/06/05 0|0:09:23 |
|00005170| 72 6f 6f 74 20 45 78 70 | 20 24 0a 20 20 27 27 27 |root Exp| $. '''|
|00005180| 20 0a 20 20 27 27 27 20 | 24 4c 6f 67 3a 09 70 65 | . ''' |$Log:.pe|
|00005190| 72 6c 2e 6d 61 6e 2e 31 | 2c 76 20 24 0a 20 20 27 |rl.man.1|,v $. '|
|000051a0| 27 27 20 52 65 76 69 73 | 69 6f 6e 20 32 2e 30 20 |'' Revis|ion 2.0 |
|000051b0| 20 38 38 2f 30 36 2f 30 | 35 20 20 30 30 3a 30 39 | 88/06/0|5 00:09|
|000051c0| 3a 32 33 20 20 72 6f 6f | 74 0a 20 20 27 27 27 20 |:23 roo|t. ''' |
|000051d0| 42 61 73 65 6c 69 6e 65 | 20 76 65 72 73 69 6f 6e |Baseline| version|
|000051e0| 20 32 2e 30 2e 0a 20 20 | 27 27 27 20 0a 2d 2d 2d | 2.0.. |''' .---|
|000051f0| 20 31 2c 31 31 20 2d 2d | 2d 2d 0a 20 20 2e 72 6e | 1,11 --|--. .rn|
|00005200| 20 27 27 20 7d 60 0a 21 | 20 27 27 27 20 24 48 65 | '' }`.!| ''' $He|
|00005210| 61 64 65 72 3a 20 70 65 | 72 6c 2e 6d 61 6e 2e 31 |ader: pe|rl.man.1|
|00005220| 2c 76 20 32 2e 30 2e 31 | 2e 31 20 38 38 2f 30 36 |,v 2.0.1|.1 88/06|
|00005230| 2f 32 38 20 31 36 3a 32 | 38 3a 30 39 20 72 6f 6f |/28 16:2|8:09 roo|
|00005240| 74 20 45 78 70 20 24 0a | 20 20 27 27 27 20 0a 20 |t Exp $.| ''' . |
|00005250| 20 27 27 27 20 24 4c 6f | 67 3a 09 70 65 72 6c 2e | ''' $Lo|g:.perl.|
|00005260| 6d 61 6e 2e 31 2c 76 20 | 24 0a 2b 20 27 27 27 20 |man.1,v |$.+ ''' |
|00005270| 52 65 76 69 73 69 6f 6e | 20 32 2e 30 2e 31 2e 31 |Revision| 2.0.1.1|
|00005280| 20 20 38 38 2f 30 36 2f | 32 38 20 20 31 36 3a 32 | 88/06/|28 16:2|
|00005290| 38 3a 30 39 20 20 72 6f | 6f 74 0a 2b 20 27 27 27 |8:09 ro|ot.+ '''|
|000052a0| 20 70 61 74 63 68 31 3a | 20 66 69 78 65 64 20 73 | patch1:| fixed s|
|000052b0| 6f 6d 65 20 71 75 6f 74 | 65 73 0a 2b 20 27 27 27 |ome quot|es.+ '''|
|000052c0| 20 70 61 74 63 68 31 3a | 20 63 6c 61 72 69 66 69 | patch1:| clarifi|
|000052d0| 65 64 20 73 79 6e 74 61 | 78 20 6f 66 20 4c 49 53 |ed synta|x of LIS|
|000052e0| 54 0a 2b 20 27 27 27 20 | 0a 20 20 27 27 27 20 52 |T.+ ''' |. ''' R|
|000052f0| 65 76 69 73 69 6f 6e 20 | 32 2e 30 20 20 38 38 2f |evision |2.0 88/|
|00005300| 30 36 2f 30 35 20 20 30 | 30 3a 30 39 3a 32 33 20 |06/05 0|0:09:23 |
|00005310| 20 72 6f 6f 74 0a 20 20 | 27 27 27 20 42 61 73 65 | root. |''' Base|
|00005320| 6c 69 6e 65 20 76 65 72 | 73 69 6f 6e 20 32 2e 30 |line ver|sion 2.0|
|00005330| 2e 0a 20 20 27 27 27 20 | 0a 2a 2a 2a 2a 2a 2a 2a |.. ''' |.*******|
|00005340| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 2a 2a 2a 20 32 39 32 |********|.*** 292|
|00005350| 2c 32 39 38 20 2a 2a 2a | 2a 0a 20 20 2e 54 50 20 |,298 ***|*. .TP |
|00005360| 35 0a 20 20 2e 42 20 5c | 2d 55 0a 20 20 61 6c 6c |5. .B \|-U. all|
|00005370| 6f 77 73 20 70 65 72 6c | 20 74 6f 20 64 6f 20 75 |ows perl| to do u|
|00005380| 6e 73 61 66 65 20 6f 70 | 65 72 61 74 69 6f 6e 73 |nsafe op|erations|
|00005390| 2e 0a 21 20 43 75 72 72 | 65 6e 74 6c 79 20 74 68 |..! Curr|ently th|
|000053a0| 65 20 6f 6e 6c 79 20 22 | 75 6e 73 61 66 65 22 20 |e only "|unsafe" |
|000053b0| 6f 70 65 72 61 74 69 6f | 6e 20 69 73 20 74 68 65 |operatio|n is the|
|000053c0| 20 75 6e 6c 69 6e 6b 69 | 6e 67 20 6f 66 20 64 69 | unlinki|ng of di|
|000053d0| 72 65 63 74 6f 72 69 65 | 73 20 77 68 69 6c 65 0a |rectorie|s while.|
|000053e0| 20 20 72 75 6e 6e 69 6e | 67 20 61 73 20 73 75 70 | runnin|g as sup|
|000053f0| 65 72 75 73 65 72 2e 0a | 20 20 2e 54 50 20 35 0a |eruser..| .TP 5.|
|00005400| 20 20 2e 42 20 5c 2d 76 | 0a 2d 2d 2d 20 32 39 36 | .B \-v|.--- 296|
|00005410| 2c 33 30 32 20 2d 2d 2d | 2d 0a 20 20 2e 54 50 20 |,302 ---|-. .TP |
|00005420| 35 0a 20 20 2e 42 20 5c | 2d 55 0a 20 20 61 6c 6c |5. .B \|-U. all|
|00005430| 6f 77 73 20 70 65 72 6c | 20 74 6f 20 64 6f 20 75 |ows perl| to do u|
|00005440| 6e 73 61 66 65 20 6f 70 | 65 72 61 74 69 6f 6e 73 |nsafe op|erations|
|00005450| 2e 0a 21 20 43 75 72 72 | 65 6e 74 6c 79 20 74 68 |..! Curr|ently th|
|00005460| 65 20 6f 6e 6c 79 20 5c | 2a 28 4c 22 75 6e 73 61 |e only \|*(L"unsa|
|00005470| 66 65 5c 2a 28 52 22 20 | 6f 70 65 72 61 74 69 6f |fe\*(R" |operatio|
|00005480| 6e 20 69 73 20 74 68 65 | 20 75 6e 6c 69 6e 6b 69 |n is the| unlinki|
|00005490| 6e 67 20 6f 66 20 64 69 | 72 65 63 74 6f 72 69 65 |ng of di|rectorie|
|000054a0| 73 20 77 68 69 6c 65 0a | 20 20 72 75 6e 6e 69 6e |s while.| runnin|
|000054b0| 67 20 61 73 20 73 75 70 | 65 72 75 73 65 72 2e 0a |g as sup|eruser..|
|000054c0| 20 20 2e 54 50 20 35 0a | 20 20 2e 42 20 5c 2d 76 | .TP 5.| .B \-v|
|000054d0| 0a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|000054e0| 0a 2a 2a 2a 20 37 33 31 | 2c 37 33 38 20 2a 2a 2a |.*** 731|,738 ***|
|000054f0| 2a 0a 20 20 2e 50 50 0a | 20 20 54 68 65 20 66 6f |*. .PP.| The fo|
|00005500| 72 65 61 63 68 20 6c 6f | 6f 70 20 69 74 65 72 61 |reach lo|op itera|
|00005510| 74 65 73 20 6f 76 65 72 | 20 61 20 6e 6f 72 6d 61 |tes over| a norma|
|00005520| 6c 20 61 72 72 61 79 20 | 76 61 6c 75 65 20 61 6e |l array |value an|
|00005530| 64 20 73 65 74 73 20 74 | 68 65 20 76 61 72 69 61 |d sets t|he varia|
|00005540| 62 6c 65 0a 20 20 56 41 | 52 20 74 6f 20 62 65 20 |ble. VA|R to be |
|00005550| 65 61 63 68 20 65 6c 65 | 6d 65 6e 74 20 6f 66 20 |each ele|ment of |
|00005560| 74 68 65 20 61 72 72 61 | 79 20 69 6e 20 74 75 72 |the arra|y in tur|
|00005570| 6e 2e 0a 21 20 54 68 65 | 20 22 66 6f 72 65 61 63 |n..! The| "foreac|
|00005580| 68 22 20 6b 65 79 77 6f | 72 64 20 69 73 20 61 63 |h" keywo|rd is ac|
|00005590| 74 75 61 6c 6c 79 20 69 | 64 65 6e 74 69 63 61 6c |tually i|dentical|
|000055a0| 20 74 6f 20 74 68 65 20 | 22 66 6f 72 22 20 6b 65 | to the |"for" ke|
|000055b0| 79 77 6f 72 64 2c 0a 21 | 20 73 6f 20 79 6f 75 20 |yword,.!| so you |
|000055c0| 63 61 6e 20 75 73 65 20 | 22 66 6f 72 65 61 63 68 |can use |"foreach|
|000055d0| 22 20 66 6f 72 20 72 65 | 61 64 61 62 69 6c 69 74 |" for re|adabilit|
|000055e0| 79 20 6f 72 20 22 66 6f | 72 22 20 66 6f 72 20 62 |y or "fo|r" for b|
|000055f0| 72 65 76 69 74 79 2e 0a | 20 20 49 66 20 56 41 52 |revity..| If VAR|
|00005600| 20 69 73 20 6f 6d 69 74 | 74 65 64 2c 20 24 5f 20 | is omit|ted, $_ |
|00005610| 69 73 20 73 65 74 20 74 | 6f 20 65 61 63 68 20 76 |is set t|o each v|
|00005620| 61 6c 75 65 2e 0a 20 20 | 49 66 20 41 52 52 41 59 |alue.. |If ARRAY|
|00005630| 20 69 73 20 61 6e 20 61 | 63 74 75 61 6c 20 61 72 | is an a|ctual ar|
|00005640| 72 61 79 20 28 61 73 20 | 6f 70 70 6f 73 65 64 20 |ray (as |opposed |
|00005650| 74 6f 20 61 6e 20 65 78 | 70 72 65 73 73 69 6f 6e |to an ex|pression|
|00005660| 20 72 65 74 75 72 6e 69 | 6e 67 20 61 6e 20 61 72 | returni|ng an ar|
|00005670| 72 61 79 0a 20 20 76 61 | 6c 75 65 29 2c 20 79 6f |ray. va|lue), yo|
|00005680| 75 20 63 61 6e 20 6d 6f | 64 69 66 79 20 65 61 63 |u can mo|dify eac|
|00005690| 68 20 65 6c 65 6d 65 6e | 74 20 6f 66 20 74 68 65 |h elemen|t of the|
|000056a0| 20 61 72 72 61 79 0a 2d | 2d 2d 20 37 33 35 2c 37 | array.-|-- 735,7|
|000056b0| 34 32 20 2d 2d 2d 2d 0a | 20 20 2e 50 50 0a 20 20 |42 ----.| .PP. |
|000056c0| 54 68 65 20 66 6f 72 65 | 61 63 68 20 6c 6f 6f 70 |The fore|ach loop|
|000056d0| 20 69 74 65 72 61 74 65 | 73 20 6f 76 65 72 20 61 | iterate|s over a|
|000056e0| 20 6e 6f 72 6d 61 6c 20 | 61 72 72 61 79 20 76 61 | normal |array va|
|000056f0| 6c 75 65 20 61 6e 64 20 | 73 65 74 73 20 74 68 65 |lue and |sets the|
|00005700| 20 76 61 72 69 61 62 6c | 65 0a 20 20 56 41 52 20 | variabl|e. VAR |
|00005710| 74 6f 20 62 65 20 65 61 | 63 68 20 65 6c 65 6d 65 |to be ea|ch eleme|
|00005720| 6e 74 20 6f 66 20 74 68 | 65 20 61 72 72 61 79 20 |nt of th|e array |
|00005730| 69 6e 20 74 75 72 6e 2e | 0a 21 20 54 68 65 20 5c |in turn.|.! The \|
|00005740| 2a 28 4c 22 66 6f 72 65 | 61 63 68 5c 2a 28 52 22 |*(L"fore|ach\*(R"|
|00005750| 20 6b 65 79 77 6f 72 64 | 20 69 73 20 61 63 74 75 | keyword| is actu|
|00005760| 61 6c 6c 79 20 69 64 65 | 6e 74 69 63 61 6c 20 74 |ally ide|ntical t|
|00005770| 6f 20 74 68 65 20 5c 2a | 28 4c 22 66 6f 72 5c 2a |o the \*|(L"for\*|
|00005780| 28 52 22 20 6b 65 79 77 | 6f 72 64 2c 0a 21 20 73 |(R" keyw|ord,.! s|
|00005790| 6f 20 79 6f 75 20 63 61 | 6e 20 75 73 65 20 5c 2a |o you ca|n use \*|
|000057a0| 28 4c 22 66 6f 72 65 61 | 63 68 5c 2a 28 52 22 20 |(L"forea|ch\*(R" |
|000057b0| 66 6f 72 20 72 65 61 64 | 61 62 69 6c 69 74 79 20 |for read|ability |
|000057c0| 6f 72 20 5c 2a 28 4c 22 | 66 6f 72 5c 2a 28 52 22 |or \*(L"|for\*(R"|
|000057d0| 20 66 6f 72 20 62 72 65 | 76 69 74 79 2e 0a 20 20 | for bre|vity.. |
|000057e0| 49 66 20 56 41 52 20 69 | 73 20 6f 6d 69 74 74 65 |If VAR i|s omitte|
|000057f0| 64 2c 20 24 5f 20 69 73 | 20 73 65 74 20 74 6f 20 |d, $_ is| set to |
|00005800| 65 61 63 68 20 76 61 6c | 75 65 2e 0a 20 20 49 66 |each val|ue.. If|
|00005810| 20 41 52 52 41 59 20 69 | 73 20 61 6e 20 61 63 74 | ARRAY i|s an act|
|00005820| 75 61 6c 20 61 72 72 61 | 79 20 28 61 73 20 6f 70 |ual arra|y (as op|
|00005830| 70 6f 73 65 64 20 74 6f | 20 61 6e 20 65 78 70 72 |posed to| an expr|
|00005840| 65 73 73 69 6f 6e 20 72 | 65 74 75 72 6e 69 6e 67 |ession r|eturning|
|00005850| 20 61 6e 20 61 72 72 61 | 79 0a 20 20 76 61 6c 75 | an arra|y. valu|
|00005860| 65 29 2c 20 79 6f 75 20 | 63 61 6e 20 6d 6f 64 69 |e), you |can modi|
|00005870| 66 79 20 65 61 63 68 20 | 65 6c 65 6d 65 6e 74 20 |fy each |element |
|00005880| 6f 66 20 74 68 65 20 61 | 72 72 61 79 0a 2a 2a 2a |of the a|rray.***|
|00005890| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|000058a0| 20 39 30 39 2c 39 31 36 | 20 2a 2a 2a 2a 0a 20 20 | 909,916| ****. |
|000058b0| 28 49 74 20 64 6f 65 73 | 6e 27 74 20 62 65 63 6f |(It does|n't beco|
|000058c0| 6d 65 20 66 61 6c 73 65 | 20 74 69 6c 6c 20 74 68 |me false| till th|
|000058d0| 65 20 6e 65 78 74 20 74 | 69 6d 65 20 74 68 65 20 |e next t|ime the |
|000058e0| 72 61 6e 67 65 20 6f 70 | 65 72 61 74 6f 72 20 65 |range op|erator e|
|000058f0| 76 61 6c 75 61 74 65 64 | 2e 0a 20 20 49 74 20 63 |valuated|.. It c|
|00005900| 61 6e 20 62 65 63 6f 6d | 65 20 66 61 6c 73 65 20 |an becom|e false |
|00005910| 6f 6e 20 74 68 65 20 73 | 61 6d 65 20 65 76 61 6c |on the s|ame eval|
|00005920| 75 61 74 69 6f 6e 20 69 | 74 20 62 65 63 61 6d 65 |uation i|t became|
|00005930| 20 74 72 75 65 2c 20 62 | 75 74 20 69 74 20 73 74 | true, b|ut it st|
|00005940| 69 6c 6c 20 72 65 74 75 | 72 6e 73 0a 20 20 74 72 |ill retu|rns. tr|
|00005950| 75 65 20 6f 6e 63 65 2e | 29 0a 21 20 54 68 65 20 |ue once.|).! The |
|00005960| 72 69 67 68 74 20 6f 70 | 65 72 61 6e 64 20 69 73 |right op|erand is|
|00005970| 20 6e 6f 74 20 65 76 61 | 6c 75 61 74 65 64 20 77 | not eva|luated w|
|00005980| 68 69 6c 65 20 74 68 65 | 20 6f 70 65 72 61 74 6f |hile the| operato|
|00005990| 72 20 69 73 20 69 6e 20 | 74 68 65 20 22 66 61 6c |r is in |the "fal|
|000059a0| 73 65 22 20 73 74 61 74 | 65 2c 0a 21 20 61 6e 64 |se" stat|e,.! and|
|000059b0| 20 74 68 65 20 6c 65 66 | 74 20 6f 70 65 72 61 6e | the lef|t operan|
|000059c0| 64 20 69 73 20 6e 6f 74 | 20 65 76 61 6c 75 61 74 |d is not| evaluat|
|000059d0| 65 64 20 77 68 69 6c 65 | 20 74 68 65 20 6f 70 65 |ed while| the ope|
|000059e0| 72 61 74 6f 72 20 69 73 | 20 69 6e 20 74 68 65 20 |rator is| in the |
|000059f0| 22 74 72 75 65 22 20 73 | 74 61 74 65 2e 0a 20 20 |"true" s|tate.. |
|00005a00| 54 68 65 20 2e 2e 20 6f | 70 65 72 61 74 6f 72 20 |The .. o|perator |
|00005a10| 69 73 20 70 72 69 6d 61 | 72 69 6c 79 20 69 6e 74 |is prima|rily int|
|00005a20| 65 6e 64 65 64 20 66 6f | 72 20 64 6f 69 6e 67 20 |ended fo|r doing |
|00005a30| 6c 69 6e 65 20 6e 75 6d | 62 65 72 20 72 61 6e 67 |line num|ber rang|
|00005a40| 65 73 20 61 66 74 65 72 | 0a 20 20 74 68 65 20 66 |es after|. the f|
|00005a50| 61 73 68 69 6f 6e 20 6f | 66 20 5c 66 49 73 65 64 |ashion o|f \fIsed|
|00005a60| 5c 66 52 20 6f 72 20 5c | 66 49 61 77 6b 5c 66 52 |\fR or \|fIawk\fR|
|00005a70| 2e 0a 20 20 54 68 65 20 | 70 72 65 63 65 64 65 6e |.. The |preceden|
|00005a80| 63 65 20 69 73 20 61 20 | 6c 69 74 74 6c 65 20 6c |ce is a |little l|
|00005a90| 6f 77 65 72 20 74 68 61 | 6e 20 7c 7c 20 61 6e 64 |ower tha|n || and|
|00005aa0| 20 26 26 2e 0a 2d 2d 2d | 20 39 31 33 2c 39 32 30 | &&..---| 913,920|
|00005ab0| 20 2d 2d 2d 2d 0a 20 20 | 28 49 74 20 64 6f 65 73 | ----. |(It does|
|00005ac0| 6e 27 74 20 62 65 63 6f | 6d 65 20 66 61 6c 73 65 |n't beco|me false|
|00005ad0| 20 74 69 6c 6c 20 74 68 | 65 20 6e 65 78 74 20 74 | till th|e next t|
|00005ae0| 69 6d 65 20 74 68 65 20 | 72 61 6e 67 65 20 6f 70 |ime the |range op|
|00005af0| 65 72 61 74 6f 72 20 65 | 76 61 6c 75 61 74 65 64 |erator e|valuated|
|00005b00| 2e 0a 20 20 49 74 20 63 | 61 6e 20 62 65 63 6f 6d |.. It c|an becom|
|00005b10| 65 20 66 61 6c 73 65 20 | 6f 6e 20 74 68 65 20 73 |e false |on the s|
|00005b20| 61 6d 65 20 65 76 61 6c | 75 61 74 69 6f 6e 20 69 |ame eval|uation i|
|00005b30| 74 20 62 65 63 61 6d 65 | 20 74 72 75 65 2c 20 62 |t became| true, b|
|00005b40| 75 74 20 69 74 20 73 74 | 69 6c 6c 20 72 65 74 75 |ut it st|ill retu|
|00005b50| 72 6e 73 0a 20 20 74 72 | 75 65 20 6f 6e 63 65 2e |rns. tr|ue once.|
|00005b60| 29 0a 21 20 54 68 65 20 | 72 69 67 68 74 20 6f 70 |).! The |right op|
|00005b70| 65 72 61 6e 64 20 69 73 | 20 6e 6f 74 20 65 76 61 |erand is| not eva|
|00005b80| 6c 75 61 74 65 64 20 77 | 68 69 6c 65 20 74 68 65 |luated w|hile the|
|00005b90| 20 6f 70 65 72 61 74 6f | 72 20 69 73 20 69 6e 20 | operato|r is in |
|00005ba0| 74 68 65 20 5c 2a 28 4c | 22 66 61 6c 73 65 5c 2a |the \*(L|"false\*|
|00005bb0| 28 52 22 20 73 74 61 74 | 65 2c 0a 21 20 61 6e 64 |(R" stat|e,.! and|
|00005bc0| 20 74 68 65 20 6c 65 66 | 74 20 6f 70 65 72 61 6e | the lef|t operan|
|00005bd0| 64 20 69 73 20 6e 6f 74 | 20 65 76 61 6c 75 61 74 |d is not| evaluat|
|00005be0| 65 64 20 77 68 69 6c 65 | 20 74 68 65 20 6f 70 65 |ed while| the ope|
|00005bf0| 72 61 74 6f 72 20 69 73 | 20 69 6e 20 74 68 65 20 |rator is| in the |
|00005c00| 5c 2a 28 4c 22 74 72 75 | 65 5c 2a 28 52 22 20 73 |\*(L"tru|e\*(R" s|
|00005c10| 74 61 74 65 2e 0a 20 20 | 54 68 65 20 2e 2e 20 6f |tate.. |The .. o|
|00005c20| 70 65 72 61 74 6f 72 20 | 69 73 20 70 72 69 6d 61 |perator |is prima|
|00005c30| 72 69 6c 79 20 69 6e 74 | 65 6e 64 65 64 20 66 6f |rily int|ended fo|
|00005c40| 72 20 64 6f 69 6e 67 20 | 6c 69 6e 65 20 6e 75 6d |r doing |line num|
|00005c50| 62 65 72 20 72 61 6e 67 | 65 73 20 61 66 74 65 72 |ber rang|es after|
|00005c60| 0a 20 20 74 68 65 20 66 | 61 73 68 69 6f 6e 20 6f |. the f|ashion o|
|00005c70| 66 20 5c 66 49 73 65 64 | 5c 66 52 20 6f 72 20 5c |f \fIsed|\fR or \|
|00005c80| 66 49 61 77 6b 5c 66 52 | 2e 0a 20 20 54 68 65 20 |fIawk\fR|.. The |
|00005c90| 70 72 65 63 65 64 65 6e | 63 65 20 69 73 20 61 20 |preceden|ce is a |
|00005ca0| 6c 69 74 74 6c 65 20 6c | 6f 77 65 72 20 74 68 61 |little l|ower tha|
|00005cb0| 6e 20 7c 7c 20 61 6e 64 | 20 26 26 2e 0a 2a 2a 2a |n || and| &&..***|
|00005cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00005cd0| 20 31 30 35 37 2c 31 30 | 36 32 20 2a 2a 2a 2a 0a | 1057,10|62 ****.|
|00005ce0| 2d 2d 2d 20 31 30 36 31 | 2c 31 30 36 37 20 2d 2d |--- 1061|,1067 --|
|00005cf0| 2d 2d 0a 20 20 53 75 63 | 68 20 61 20 6c 69 73 74 |--. Suc|h a list|
|00005d00| 20 63 61 6e 20 63 6f 6e | 73 69 73 74 20 6f 66 20 | can con|sist of |
|00005d10| 61 6e 79 20 63 6f 6d 62 | 69 6e 61 74 69 6f 6e 20 |any comb|ination |
|00005d20| 6f 66 20 73 63 61 6c 61 | 72 20 61 72 67 75 6d 65 |of scala|r argume|
|00005d30| 6e 74 73 20 6f 72 20 61 | 72 72 61 79 73 3b 0a 20 |nts or a|rrays;. |
|00005d40| 20 74 68 65 20 61 72 72 | 61 79 73 20 77 69 6c 6c | the arr|ays will|
|00005d50| 20 62 65 20 69 6e 63 6c | 75 64 65 64 20 69 6e 20 | be incl|uded in |
|00005d60| 74 68 65 20 6c 69 73 74 | 20 61 73 20 69 66 20 65 |the list| as if e|
|00005d70| 61 63 68 20 69 6e 64 69 | 76 69 64 75 61 6c 20 65 |ach indi|vidual e|
|00005d80| 6c 65 6d 65 6e 74 20 77 | 65 72 65 0a 20 20 69 6e |lement w|ere. in|
|00005d90| 74 65 72 70 6f 6c 61 74 | 65 64 20 61 74 20 74 68 |terpolat|ed at th|
|00005da0| 61 74 20 70 6f 69 6e 74 | 20 69 6e 20 74 68 65 20 |at point| in the |
|00005db0| 6c 69 73 74 2e 0a 2b 20 | 45 6c 65 6d 65 6e 74 73 |list..+ |Elements|
|00005dc0| 20 6f 66 20 74 68 65 20 | 4c 49 53 54 20 73 68 6f | of the |LIST sho|
|00005dd0| 75 6c 64 20 62 65 20 73 | 65 70 61 72 61 74 65 64 |uld be s|eparated|
|00005de0| 20 62 79 20 63 6f 6d 6d | 61 73 2e 0a 20 20 2e 49 | by comm|as.. .I|
|00005df0| 70 20 22 2f 50 41 54 54 | 45 52 4e 2f 69 22 20 38 |p "/PATT|ERN/i" 8|
|00005e00| 20 34 0a 20 20 53 65 61 | 72 63 68 65 73 20 61 20 | 4. Sea|rches a |
|00005e10| 73 74 72 69 6e 67 20 66 | 6f 72 20 61 20 70 61 74 |string f|or a pat|
|00005e20| 74 65 72 6e 2c 20 61 6e | 64 20 72 65 74 75 72 6e |tern, an|d return|
|00005e30| 73 20 74 72 75 65 20 28 | 31 29 20 6f 72 20 66 61 |s true (|1) or fa|
|00005e40| 6c 73 65 20 28 27 27 29 | 2e 0a 20 20 49 66 20 6e |lse ('')|.. If n|
|00005e50| 6f 20 73 74 72 69 6e 67 | 20 69 73 20 73 70 65 63 |o string| is spec|
|00005e60| 69 66 69 65 64 20 76 69 | 61 20 74 68 65 20 3d 7e |ified vi|a the =~|
|00005e70| 20 6f 72 20 21 7e 20 6f | 70 65 72 61 74 6f 72 2c | or !~ o|perator,|
|00005e80| 0a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00005e90| 0a 2a 2a 2a 20 31 32 33 | 34 2c 31 32 34 32 20 2a |.*** 123|4,1242 *|
|00005ea0| 2a 2a 2a 0a 20 20 49 66 | 20 74 68 65 20 76 61 6c |***. If| the val|
|00005eb0| 75 65 20 6f 66 20 45 58 | 50 52 20 64 6f 65 73 20 |ue of EX|PR does |
|00005ec0| 6e 6f 74 20 65 6e 64 20 | 69 6e 20 61 20 6e 65 77 |not end |in a new|
|00005ed0| 6c 69 6e 65 2c 20 74 68 | 65 20 63 75 72 72 65 6e |line, th|e curren|
|00005ee0| 74 20 73 63 72 69 70 74 | 20 6c 69 6e 65 0a 20 20 |t script| line. |
|00005ef0| 6e 75 6d 62 65 72 20 61 | 6e 64 20 69 6e 70 75 74 |number a|nd input|
|00005f00| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 20 28 69 66 | line nu|mber (if|
|00005f10| 20 61 6e 79 29 20 61 72 | 65 20 61 6c 73 6f 20 70 | any) ar|e also p|
|00005f20| 72 69 6e 74 65 64 2c 20 | 61 6e 64 20 61 20 6e 65 |rinted, |and a ne|
|00005f30| 77 6c 69 6e 65 20 69 73 | 0a 20 20 73 75 70 70 6c |wline is|. suppl|
|00005f40| 69 65 64 2e 0a 21 20 48 | 69 6e 74 3a 20 73 6f 6d |ied..! H|int: som|
|00005f50| 65 74 69 6d 65 73 20 61 | 70 70 65 6e 64 69 6e 67 |etimes a|ppending|
|00005f60| 20 22 2c 20 73 74 6f 70 | 70 65 64 22 20 74 6f 20 | ", stop|ped" to |
|00005f70| 79 6f 75 72 20 6d 65 73 | 73 61 67 65 20 77 69 6c |your mes|sage wil|
|00005f80| 6c 20 63 61 75 73 65 20 | 69 74 20 74 6f 20 6d 61 |l cause |it to ma|
|00005f90| 6b 65 0a 21 20 62 65 74 | 74 65 72 20 73 65 6e 73 |ke.! bet|ter sens|
|00005fa0| 65 20 77 68 65 6e 20 74 | 68 65 20 73 74 72 69 6e |e when t|he strin|
|00005fb0| 67 20 22 61 74 20 66 6f | 6f 20 6c 69 6e 65 20 31 |g "at fo|o line 1|
|00005fc0| 32 33 22 20 69 73 20 61 | 70 70 65 6e 64 65 64 2e |23" is a|ppended.|
|00005fd0| 0a 21 20 53 75 70 70 6f | 73 65 20 79 6f 75 20 61 |.! Suppo|se you a|
|00005fe0| 72 65 20 72 75 6e 6e 69 | 6e 67 20 73 63 72 69 70 |re runni|ng scrip|
|00005ff0| 74 20 22 63 61 6e 61 73 | 74 61 22 2e 0a 20 20 2e |t "canas|ta".. .|
|00006000| 6e 66 0a 20 20 0a 20 20 | 2e 6e 65 20 37 0a 2d 2d |nf. . |.ne 7.--|
|00006010| 2d 20 31 32 33 39 2c 31 | 32 34 37 20 2d 2d 2d 2d |- 1239,1|247 ----|
|00006020| 0a 20 20 49 66 20 74 68 | 65 20 76 61 6c 75 65 20 |. If th|e value |
|00006030| 6f 66 20 45 58 50 52 20 | 64 6f 65 73 20 6e 6f 74 |of EXPR |does not|
|00006040| 20 65 6e 64 20 69 6e 20 | 61 20 6e 65 77 6c 69 6e | end in |a newlin|
|00006050| 65 2c 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |e, the c|urrent s|
|00006060| 63 72 69 70 74 20 6c 69 | 6e 65 0a 20 20 6e 75 6d |cript li|ne. num|
|00006070| 62 65 72 20 61 6e 64 20 | 69 6e 70 75 74 20 6c 69 |ber and |input li|
|00006080| 6e 65 20 6e 75 6d 62 65 | 72 20 28 69 66 20 61 6e |ne numbe|r (if an|
|00006090| 79 29 20 61 72 65 20 61 | 6c 73 6f 20 70 72 69 6e |y) are a|lso prin|
|000060a0| 74 65 64 2c 20 61 6e 64 | 20 61 20 6e 65 77 6c 69 |ted, and| a newli|
|000060b0| 6e 65 20 69 73 0a 20 20 | 73 75 70 70 6c 69 65 64 |ne is. |supplied|
|000060c0| 2e 0a 21 20 48 69 6e 74 | 3a 20 73 6f 6d 65 74 69 |..! Hint|: someti|
|000060d0| 6d 65 73 20 61 70 70 65 | 6e 64 69 6e 67 20 5c 2a |mes appe|nding \*|
|000060e0| 28 4c 22 2c 20 73 74 6f | 70 70 65 64 5c 2a 28 52 |(L", sto|pped\*(R|
|000060f0| 22 20 74 6f 20 79 6f 75 | 72 20 6d 65 73 73 61 67 |" to you|r messag|
|00006100| 65 20 77 69 6c 6c 20 63 | 61 75 73 65 20 69 74 20 |e will c|ause it |
|00006110| 74 6f 20 6d 61 6b 65 0a | 21 20 62 65 74 74 65 72 |to make.|! better|
|00006120| 20 73 65 6e 73 65 20 77 | 68 65 6e 20 74 68 65 20 | sense w|hen the |
|00006130| 73 74 72 69 6e 67 20 5c | 2a 28 4c 22 61 74 20 66 |string \|*(L"at f|
|00006140| 6f 6f 20 6c 69 6e 65 20 | 31 32 33 5c 2a 28 52 22 |oo line |123\*(R"|
|00006150| 20 69 73 20 61 70 70 65 | 6e 64 65 64 2e 0a 21 20 | is appe|nded..! |
|00006160| 53 75 70 70 6f 73 65 20 | 79 6f 75 20 61 72 65 20 |Suppose |you are |
|00006170| 72 75 6e 6e 69 6e 67 20 | 73 63 72 69 70 74 20 5c |running |script \|
|00006180| 2a 28 4c 22 63 61 6e 61 | 73 74 61 5c 2a 28 52 22 |*(L"cana|sta\*(R"|
|00006190| 2e 0a 20 20 2e 6e 66 0a | 20 20 0a 20 20 2e 6e 65 |.. .nf.| . .ne|
|000061a0| 20 37 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | 7.*****|********|
|000061b0| 2a 2a 0a 2a 2a 2a 20 31 | 32 36 37 2c 31 32 37 33 |**.*** 1|267,1273|
|000061c0| 20 2a 2a 2a 2a 0a 20 20 | 28 53 65 65 20 74 68 65 | ****. |(See the|
|000061d0| 20 73 65 63 74 69 6f 6e | 20 6f 6e 20 73 75 62 72 | section| on subr|
|000061e0| 6f 75 74 69 6e 65 73 20 | 6c 61 74 65 72 20 6f 6e |outines |later on|
|000061f0| 2e 29 0a 20 20 53 55 42 | 52 4f 55 54 49 4e 45 20 |.). SUB|ROUTINE |
|00006200| 6d 61 79 20 62 65 20 61 | 20 73 63 61 6c 61 72 20 |may be a| scalar |
|00006210| 76 61 72 69 61 62 6c 65 | 2c 20 69 6e 20 77 68 69 |variable|, in whi|
|00006220| 63 68 20 63 61 73 65 20 | 74 68 65 20 76 61 72 69 |ch case |the vari|
|00006230| 61 62 6c 65 20 63 6f 6e | 74 61 69 6e 73 0a 20 20 |able con|tains. |
|00006240| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00006250| 73 75 62 72 6f 75 74 69 | 6e 65 20 74 6f 20 65 78 |subrouti|ne to ex|
|00006260| 65 63 75 74 65 2e 0a 21 | 20 54 68 65 20 70 61 72 |ecute..!| The par|
|00006270| 65 6e 74 68 65 73 65 73 | 20 61 72 65 20 72 65 71 |entheses| are req|
|00006280| 75 69 72 65 64 20 74 6f | 20 61 76 6f 69 64 20 63 |uired to| avoid c|
|00006290| 6f 6e 66 75 73 69 6f 6e | 20 77 69 74 68 20 74 68 |onfusion| with th|
|000062a0| 65 20 6e 65 78 74 20 66 | 6f 72 6d 20 6f 66 20 22 |e next f|orm of "|
|000062b0| 64 6f 22 2e 0a 20 20 2e | 49 70 20 22 64 6f 20 45 |do".. .|Ip "do E|
|000062c0| 58 50 52 22 20 38 20 33 | 0a 20 20 55 73 65 73 20 |XPR" 8 3|. Uses |
|000062d0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 45 58 50 |the valu|e of EXP|
|000062e0| 52 20 61 73 20 61 20 66 | 69 6c 65 6e 61 6d 65 20 |R as a f|ilename |
|000062f0| 61 6e 64 20 65 78 65 63 | 75 74 65 73 20 74 68 65 |and exec|utes the|
|00006300| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 74 68 65 | content|s of the|
|00006310| 20 66 69 6c 65 0a 20 20 | 61 73 20 61 20 70 65 72 | file. |as a per|
|00006320| 6c 20 73 63 72 69 70 74 | 2e 0a 2d 2d 2d 20 31 32 |l script|..--- 12|
|00006330| 37 32 2c 31 32 37 38 20 | 2d 2d 2d 2d 0a 20 20 28 |72,1278 |----. (|
|00006340| 53 65 65 20 74 68 65 20 | 73 65 63 74 69 6f 6e 20 |See the |section |
|00006350| 6f 6e 20 73 75 62 72 6f | 75 74 69 6e 65 73 20 6c |on subro|utines l|
|00006360| 61 74 65 72 20 6f 6e 2e | 29 0a 20 20 53 55 42 52 |ater on.|). SUBR|
|00006370| 4f 55 54 49 4e 45 20 6d | 61 79 20 62 65 20 61 20 |OUTINE m|ay be a |
|00006380| 73 63 61 6c 61 72 20 76 | 61 72 69 61 62 6c 65 2c |scalar v|ariable,|
|00006390| 20 69 6e 20 77 68 69 63 | 68 20 63 61 73 65 20 74 | in whic|h case t|
|000063a0| 68 65 20 76 61 72 69 61 | 62 6c 65 20 63 6f 6e 74 |he varia|ble cont|
|000063b0| 61 69 6e 73 0a 20 20 74 | 68 65 20 6e 61 6d 65 20 |ains. t|he name |
|000063c0| 6f 66 20 74 68 65 20 73 | 75 62 72 6f 75 74 69 6e |of the s|ubroutin|
|000063d0| 65 20 74 6f 20 65 78 65 | 63 75 74 65 2e 0a 21 20 |e to exe|cute..! |
|000063e0| 54 68 65 20 70 61 72 65 | 6e 74 68 65 73 65 73 20 |The pare|ntheses |
|000063f0| 61 72 65 20 72 65 71 75 | 69 72 65 64 20 74 6f 20 |are requ|ired to |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.