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: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 78 61 | 6e 74 68 21 6d 63 6e 63 |Path: xa|nth!mcnc|
|00000010| 21 72 75 74 67 65 72 73 | 21 74 75 74 2e 63 69 73 |!rutgers|!tut.cis|
|00000020| 2e 6f 68 69 6f 2d 73 74 | 61 74 65 2e 65 64 75 21 |.ohio-st|ate.edu!|
|00000030| 63 77 6a 63 63 21 68 61 | 6c 21 6e 63 6f 61 73 74 |cwjcc!ha|l!ncoast|
|00000040| 21 61 6c 6c 62 65 72 79 | 0a 46 72 6f 6d 3a 20 67 |!allbery|.From: g|
|00000050| 65 6f 72 67 65 40 72 65 | 62 65 6c 2e 55 55 43 50 |eorge@re|bel.UUCP|
|00000060| 20 28 47 65 6f 72 67 65 | 20 4d 2e 20 53 69 70 65 | (George| M. Sipe|
|00000070| 29 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 63 6f |).Newsgr|oups: co|
|00000080| 6d 70 2e 73 6f 75 72 63 | 65 73 2e 6d 69 73 63 0a |mp.sourc|es.misc.|
|00000090| 53 75 62 6a 65 63 74 3a | 20 76 30 34 69 31 32 30 |Subject:| v04i120|
|000000a0| 3a 20 6d 61 6b 65 20 61 | 6e 79 20 63 6f 6d 6d 61 |: make a|ny comma|
|000000b0| 6e 64 20 73 63 72 65 65 | 6e 20 6f 72 69 65 6e 74 |nd scree|n orient|
|000000c0| 65 64 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |ed.Messa|ge-ID: <|
|000000d0| 34 38 33 34 33 40 72 65 | 62 65 6c 2e 55 55 43 50 |48343@re|bel.UUCP|
|000000e0| 3e 0a 44 61 74 65 3a 20 | 31 31 20 4f 63 74 20 38 |>.Date: |11 Oct 8|
|000000f0| 38 20 30 32 3a 32 30 3a | 33 38 20 47 4d 54 0a 53 |8 02:20:|38 GMT.S|
|00000100| 65 6e 64 65 72 3a 20 61 | 6c 6c 62 65 72 79 40 6e |ender: a|llbery@n|
|00000110| 63 6f 61 73 74 2e 55 55 | 43 50 0a 52 65 70 6c 79 |coast.UU|CP.Reply|
|00000120| 2d 54 6f 3a 20 67 65 6f | 72 67 65 40 72 65 62 65 |-To: geo|rge@rebe|
|00000130| 6c 2e 55 55 43 50 20 28 | 47 65 6f 72 67 65 20 4d |l.UUCP (|George M|
|00000140| 2e 20 53 69 70 65 29 0a | 4f 72 67 61 6e 69 7a 61 |. Sipe).|Organiza|
|00000150| 74 69 6f 6e 3a 20 54 6f | 6c 65 72 61 6e 74 20 53 |tion: To|lerant S|
|00000160| 79 73 74 65 6d 73 2c 20 | 41 74 6c 61 6e 74 61 20 |ystems, |Atlanta |
|00000170| 47 41 0a 4c 69 6e 65 73 | 3a 20 35 30 30 0a 41 70 |GA.Lines|: 500.Ap|
|00000180| 70 72 6f 76 65 64 3a 20 | 61 6c 6c 62 65 72 79 40 |proved: |allbery@|
|00000190| 6e 63 6f 61 73 74 2e 55 | 55 43 50 0a 0a 50 6f 73 |ncoast.U|UCP..Pos|
|000001a0| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|000001b0| 75 6d 65 20 34 2c 20 49 | 73 73 75 65 20 31 32 30 |ume 4, I|ssue 120|
|000001c0| 0a 53 75 62 6d 69 74 74 | 65 64 2d 62 79 3a 20 22 |.Submitt|ed-by: "|
|000001d0| 47 65 6f 72 67 65 20 4d | 2e 20 53 69 70 65 22 20 |George M|. Sipe" |
|000001e0| 3c 67 65 6f 72 67 65 40 | 72 65 62 65 6c 2e 55 55 |<george@|rebel.UU|
|000001f0| 43 50 3e 0a 41 72 63 68 | 69 76 65 2d 6e 61 6d 65 |CP>.Arch|ive-name|
|00000200| 3a 20 76 69 73 0a 0a 23 | 21 20 2f 62 69 6e 2f 73 |: vis..#|! /bin/s|
|00000210| 68 0a 23 20 54 68 69 73 | 20 69 73 20 61 20 73 68 |h.# This| is a sh|
|00000220| 65 6c 6c 20 61 72 63 68 | 69 76 65 2c 20 6d 65 61 |ell arch|ive, mea|
|00000230| 6e 69 6e 67 3a 0a 23 20 | 31 2e 20 52 65 6d 6f 76 |ning:.# |1. Remov|
|00000240| 65 20 65 76 65 72 79 74 | 68 69 6e 67 20 61 62 6f |e everyt|hing abo|
|00000250| 76 65 20 74 68 65 20 23 | 21 20 2f 62 69 6e 2f 73 |ve the #|! /bin/s|
|00000260| 68 20 6c 69 6e 65 2e 0a | 23 20 32 2e 20 53 61 76 |h line..|# 2. Sav|
|00000270| 65 20 74 68 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |e the re|sulting |
|00000280| 74 65 78 74 20 69 6e 20 | 61 20 66 69 6c 65 2e 0a |text in |a file..|
|00000290| 23 20 33 2e 20 45 78 65 | 63 75 74 65 20 74 68 65 |# 3. Exe|cute the|
|000002a0| 20 66 69 6c 65 20 77 69 | 74 68 20 2f 62 69 6e 2f | file wi|th /bin/|
|000002b0| 73 68 20 28 6e 6f 74 20 | 63 73 68 29 20 74 6f 20 |sh (not |csh) to |
|000002c0| 63 72 65 61 74 65 3a 0a | 23 09 52 45 41 44 4d 45 |create:.|#.README|
|000002d0| 0a 23 09 4d 61 6b 65 66 | 69 6c 65 0a 23 09 76 69 |.#.Makef|ile.#.vi|
|000002e0| 73 2e 6d 61 6e 0a 23 09 | 76 69 73 2e 63 0a 23 20 |s.man.#.|vis.c.# |
|000002f0| 54 68 69 73 20 61 72 63 | 68 69 76 65 20 63 72 65 |This arc|hive cre|
|00000300| 61 74 65 64 3a 20 46 72 | 69 20 4a 75 6c 20 32 32 |ated: Fr|i Jul 22|
|00000310| 20 31 34 3a 33 37 3a 32 | 35 20 31 39 38 38 0a 65 | 14:37:2|5 1988.e|
|00000320| 78 70 6f 72 74 20 50 41 | 54 48 3b 20 50 41 54 48 |xport PA|TH; PATH|
|00000330| 3d 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 24 |=/bin:/u|sr/bin:$|
|00000340| 50 41 54 48 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |PATH.if |test -f |
|00000350| 27 52 45 41 44 4d 45 27 | 0a 74 68 65 6e 0a 09 65 |'README'|.then..e|
|00000360| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|00000370| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00000380| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 52 45 |xisting |file 'RE|
|00000390| 41 44 4d 45 27 22 0a 65 | 6c 73 65 0a 73 65 64 20 |ADME'".e|lse.sed |
|000003a0| 27 73 2f 5e 58 2f 2f 27 | 20 3c 3c 20 5c 53 48 41 |'s/^X//'| << \SHA|
|000003b0| 52 5f 45 4f 46 20 3e 20 | 27 52 45 41 44 4d 45 27 |R_EOF > |'README'|
|000003c0| 0a 58 56 69 73 20 72 65 | 70 65 61 74 65 64 6c 79 |.XVis re|peatedly|
|000003d0| 20 65 78 65 63 75 74 65 | 73 20 61 20 73 70 65 63 | execute|s a spec|
|000003e0| 69 66 69 65 64 20 63 6f | 6d 6d 61 6e 64 20 61 6e |ified co|mmand an|
|000003f0| 64 20 72 65 66 72 65 73 | 68 65 73 20 74 68 65 20 |d refres|hes the |
|00000400| 64 69 73 70 6c 61 79 0a | 58 6f 66 20 69 74 73 20 |display.|Xof its |
|00000410| 6f 75 74 70 75 74 20 6f | 6e 20 74 68 65 20 73 63 |output o|n the sc|
|00000420| 72 65 65 6e 2e 20 20 54 | 68 69 73 20 68 61 73 20 |reen. T|his has |
|00000430| 74 68 65 20 65 66 66 65 | 63 74 20 6f 66 20 6d 61 |the effe|ct of ma|
|00000440| 6b 69 6e 67 20 61 6e 79 | 0a 58 6e 6f 72 6d 61 6c |king any|.Xnormal|
|00000450| 6c 79 20 6e 6f 6e 2d 73 | 63 72 65 65 6e 20 6f 72 |ly non-s|creen or|
|00000460| 69 65 6e 74 65 64 20 63 | 6f 6d 6d 61 6e 64 20 69 |iented c|ommand i|
|00000470| 6e 74 6f 20 61 20 73 63 | 72 65 65 6e 20 6f 72 69 |nto a sc|reen ori|
|00000480| 65 6e 74 65 64 20 6f 6e | 65 2e 0a 58 0a 58 54 68 |ented on|e..X.XTh|
|00000490| 65 20 66 69 72 73 74 20 | 6c 69 6e 65 20 6f 6e 20 |e first |line on |
|000004a0| 74 68 65 20 6f 75 74 70 | 75 74 20 73 63 72 65 65 |the outp|ut scree|
|000004b0| 6e 20 69 73 20 72 65 73 | 65 72 76 65 64 20 66 6f |n is res|erved fo|
|000004c0| 72 20 76 69 73 20 73 74 | 61 74 75 73 20 61 6e 64 |r vis st|atus and|
|000004d0| 20 77 69 6c 6c 0a 58 63 | 6f 6e 74 61 69 6e 20 74 | will.Xc|ontain t|
|000004e0| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6f 6e 20 74 68 |he comma|nd on th|
|000004f0| 65 20 6c 65 66 74 20 73 | 69 64 65 20 77 69 74 68 |e left s|ide with|
|00000500| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 65 78 65 | the cur|rent exe|
|00000510| 63 75 74 69 6f 6e 20 63 | 6f 75 6e 74 0a 58 6f 6e |cution c|ount.Xon|
|00000520| 20 74 68 65 20 72 69 67 | 68 74 20 73 69 64 65 2e | the rig|ht side.|
|00000530| 20 20 49 66 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 | If com|mand is |
|00000540| 74 6f 6f 20 6c 6f 6e 67 | 20 74 6f 20 66 69 74 2c |too long| to fit,|
|00000550| 20 76 69 73 20 77 69 6c | 6c 20 74 72 75 6e 63 61 | vis wil|l trunca|
|00000560| 74 65 20 69 74 0a 58 69 | 6e 20 74 68 65 20 73 74 |te it.Xi|n the st|
|00000570| 61 74 75 73 20 6c 69 6e | 65 20 61 6e 64 20 61 70 |atus lin|e and ap|
|00000580| 70 65 6e 64 20 61 6e 20 | 65 6c 6c 69 70 73 69 73 |pend an |ellipsis|
|00000590| 20 28 22 2e 2e 2e 22 29 | 2e 0a 58 0a 58 54 68 65 | ("...")|..X.XThe|
|000005a0| 20 6f 75 74 70 75 74 20 | 6f 66 20 74 68 65 20 63 | output |of the c|
|000005b0| 6f 6d 6d 61 6e 64 20 6e | 6f 72 6d 61 6c 6c 79 20 |ommand n|ormally |
|000005c0| 62 65 67 69 6e 73 20 6f | 6e 20 74 68 65 20 74 68 |begins o|n the th|
|000005d0| 69 72 64 20 6c 69 6e 65 | 20 61 6e 64 0a 58 63 6f |ird line| and.Xco|
|000005e0| 6e 74 69 6e 75 65 73 20 | 74 6f 20 74 68 65 20 65 |ntinues |to the e|
|000005f0| 6e 64 20 6f 66 20 74 68 | 65 20 73 63 72 65 65 6e |nd of th|e screen|
|00000600| 2e 20 20 4c 69 6e 65 73 | 20 77 68 69 63 68 20 63 |. Lines| which c|
|00000610| 61 6e 20 6e 6f 74 20 66 | 69 74 20 77 69 6c 6c 20 |an not f|it will |
|00000620| 62 65 0a 58 64 69 73 63 | 61 72 64 65 64 2e 20 20 |be.Xdisc|arded. |
|00000630| 57 68 65 6e 20 74 68 69 | 73 20 6f 63 63 75 72 73 |When thi|s occurs|
|00000640| 2c 20 76 69 73 20 77 69 | 6c 6c 20 61 75 74 6f 6d |, vis wi|ll autom|
|00000650| 61 74 69 63 61 6c 6c 79 | 20 70 6c 61 63 65 20 74 |atically| place t|
|00000660| 68 65 20 6f 75 74 70 75 | 74 0a 58 6f 66 20 66 6f |he outpu|t.Xof fo|
|00000670| 6c 6c 6f 77 69 6e 67 20 | 70 61 73 73 65 73 20 73 |llowing |passes s|
|00000680| 74 61 72 74 69 6e 67 20 | 6f 6e 20 6c 69 6e 65 20 |tarting |on line |
|00000690| 74 77 6f 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |two in o|rder to |
|000006a0| 6d 61 78 69 6d 69 7a 65 | 20 74 68 65 0a 58 61 6d |maximize| the.Xam|
|000006b0| 6f 75 6e 74 20 6f 66 20 | 64 69 73 70 6c 61 79 65 |ount of |displaye|
|000006c0| 64 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 0a 58 |d inform|ation..X|
|000006d0| 0a 58 53 65 65 20 74 68 | 65 20 6d 61 6e 75 61 6c |.XSee th|e manual|
|000006e0| 20 70 61 67 65 20 66 6f | 72 20 61 20 63 6f 6d 70 | page fo|r a comp|
|000006f0| 6c 65 74 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |lete inf|ormation|
|00000700| 2e 0a 58 0a 58 0a 58 20 | 20 20 20 20 43 6f 70 79 |..X.X.X | Copy|
|00000710| 72 69 67 68 74 20 28 63 | 29 20 31 39 38 38 20 62 |right (c|) 1988 b|
|00000720| 79 20 47 65 6f 72 67 65 | 20 4d 2e 20 53 69 70 65 |y George| M. Sipe|
|00000730| 2e 20 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |. All r|ights re|
|00000740| 73 65 72 76 65 64 2e 0a | 58 0a 58 54 68 69 73 20 |served..|X.XThis |
|00000750| 73 6f 66 74 77 61 72 65 | 20 6d 61 79 20 6f 6e 6c |software| may onl|
|00000760| 79 20 62 65 20 72 65 64 | 69 73 74 72 69 62 75 74 |y be red|istribut|
|00000770| 65 64 20 77 69 74 68 6f | 75 74 20 66 65 65 20 61 |ed witho|ut fee a|
|00000780| 6e 64 20 77 69 74 68 6f | 75 74 20 61 6e 79 0a 58 |nd witho|ut any.X|
|00000790| 6f 74 68 65 72 20 66 6f | 72 6d 20 6f 66 20 6d 6f |other fo|rm of mo|
|000007a0| 6e 65 74 61 72 79 20 67 | 61 69 6e 20 28 69 6e 63 |netary g|ain (inc|
|000007b0| 6c 75 64 69 6e 67 20 73 | 6f 6c 64 2c 20 72 65 6e |luding s|old, ren|
|000007c0| 74 65 64 2c 20 6c 65 61 | 73 65 64 2c 20 6f 72 0a |ted, lea|sed, or.|
|000007d0| 58 74 72 61 64 65 64 29 | 2c 20 75 6e 6c 65 73 73 |Xtraded)|, unless|
|000007e0| 20 74 68 65 20 65 78 70 | 72 65 73 73 20 77 72 69 | the exp|ress wri|
|000007f0| 74 74 65 6e 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |tten per|mission |
|00000800| 6f 66 20 74 68 65 20 63 | 6f 70 79 72 69 67 68 74 |of the c|opyright|
|00000810| 20 68 6f 6c 64 65 72 0a | 58 69 73 20 6f 62 74 61 | holder.|Xis obta|
|00000820| 69 6e 65 64 20 69 6e 20 | 61 64 76 61 6e 63 65 2e |ined in |advance.|
|00000830| 0a 58 0a 58 54 68 69 73 | 20 63 6f 70 79 72 69 67 |.X.XThis| copyrig|
|00000840| 68 74 20 6e 6f 74 69 63 | 65 20 6d 75 73 74 20 62 |ht notic|e must b|
|00000850| 65 20 72 65 70 72 6f 64 | 75 63 65 64 20 69 6e 20 |e reprod|uced in |
|00000860| 69 74 73 20 65 6e 74 69 | 72 65 74 79 20 6f 6e 20 |its enti|rety on |
|00000870| 61 6c 6c 20 63 6f 70 69 | 65 73 0a 58 6f 66 20 74 |all copi|es.Xof t|
|00000880| 68 69 73 20 73 6f 66 74 | 77 61 72 65 2e 20 20 46 |his soft|ware. F|
|00000890| 75 72 74 68 65 72 2c 20 | 61 63 6b 6e 6f 77 6c 65 |urther, |acknowle|
|000008a0| 64 67 6d 65 6e 74 20 6f | 66 20 74 68 65 20 61 75 |dgment o|f the au|
|000008b0| 74 68 6f 72 73 68 69 70 | 20 6f 66 20 74 68 69 73 |thorship| of this|
|000008c0| 0a 58 73 6f 66 74 77 61 | 72 65 20 6d 75 73 74 20 |.Xsoftwa|re must |
|000008d0| 6e 6f 74 20 62 65 20 72 | 65 6d 6f 76 65 64 20 66 |not be r|emoved f|
|000008e0| 72 6f 6d 20 69 74 73 20 | 63 75 72 72 65 6e 74 20 |rom its |current |
|000008f0| 6f 72 20 64 65 72 69 76 | 65 64 0a 58 64 6f 63 75 |or deriv|ed.Xdocu|
|00000900| 6d 65 6e 74 61 74 69 6f | 6e 2e 0a 58 0a 58 4e 6f |mentatio|n..X.XNo|
|00000910| 20 65 78 70 72 65 73 73 | 65 64 20 6f 72 20 69 6d | express|ed or im|
|00000920| 70 6c 69 65 64 20 77 61 | 72 72 61 6e 74 79 20 69 |plied wa|rranty i|
|00000930| 73 20 6d 61 64 65 20 66 | 6f 72 20 74 68 69 73 20 |s made f|or this |
|00000940| 73 6f 66 74 77 61 72 65 | 2e 20 20 4e 6f 20 70 61 |software|. No pa|
|00000950| 72 74 79 0a 58 63 6f 6e | 6e 65 63 74 65 64 20 77 |rty.Xcon|nected w|
|00000960| 69 74 68 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 |ith this| softwar|
|00000970| 65 20 61 73 73 75 6d 65 | 73 20 61 6e 79 20 6c 69 |e assume|s any li|
|00000980| 61 62 69 6c 69 74 79 20 | 6f 72 20 72 65 73 70 6f |ability |or respo|
|00000990| 6e 73 69 62 69 6c 69 74 | 79 0a 58 66 6f 72 20 69 |nsibilit|y.Xfor i|
|000009a0| 74 73 20 75 73 65 2c 20 | 74 68 65 20 63 6f 72 72 |ts use, |the corr|
|000009b0| 65 63 74 6e 65 73 73 20 | 6f 66 20 69 74 73 20 6f |ectness |of its o|
|000009c0| 70 65 72 61 74 69 6f 6e | 2c 20 6f 72 20 69 74 73 |peration|, or its|
|000009d0| 20 66 69 74 6e 65 73 73 | 20 66 6f 72 20 61 6e 79 | fitness| for any|
|000009e0| 0a 58 70 75 72 70 6f 73 | 65 2e 0a 58 0a 58 41 6e |.Xpurpos|e..X.XAn|
|000009f0| 79 20 64 69 73 74 72 69 | 62 75 74 6f 72 20 6f 66 |y distri|butor of|
|00000a00| 20 63 6f 70 69 65 73 20 | 6f 66 20 74 68 69 73 20 | copies |of this |
|00000a10| 73 6f 66 74 77 61 72 65 | 20 73 68 61 6c 6c 20 67 |software| shall g|
|00000a20| 72 61 6e 74 20 74 68 65 | 20 72 65 63 69 70 69 65 |rant the| recipie|
|00000a30| 6e 74 0a 58 70 65 72 6d | 69 73 73 69 6f 6e 20 66 |nt.Xperm|ission f|
|00000a40| 6f 72 20 66 75 72 74 68 | 65 72 20 72 65 64 69 73 |or furth|er redis|
|00000a50| 74 72 69 62 75 74 69 6f | 6e 20 61 73 20 70 65 72 |tributio|n as per|
|00000a60| 6d 69 74 74 65 64 20 62 | 79 20 74 68 69 73 20 6e |mitted b|y this n|
|00000a70| 6f 74 69 63 65 2e 0a 58 | 0a 58 50 65 72 6d 69 73 |otice..X|.XPermis|
|00000a80| 73 69 6f 6e 20 69 73 20 | 68 65 72 65 62 79 20 67 |sion is |hereby g|
|00000a90| 72 61 6e 74 65 64 20 74 | 6f 20 63 6f 70 79 2c 20 |ranted t|o copy, |
|00000aa0| 72 65 70 72 6f 64 75 63 | 65 2c 20 72 65 64 69 73 |reproduc|e, redis|
|00000ab0| 74 72 69 62 75 74 65 20 | 61 6e 64 0a 58 6f 74 68 |tribute |and.Xoth|
|00000ac0| 65 72 77 69 73 65 20 75 | 73 65 20 74 68 69 73 20 |erwise u|se this |
|00000ad0| 73 6f 66 74 77 61 72 65 | 20 61 73 20 6c 6f 6e 67 |software| as long|
|00000ae0| 20 61 73 20 74 68 65 20 | 63 6f 6e 64 69 74 69 6f | as the |conditio|
|00000af0| 6e 73 20 61 62 6f 76 65 | 20 61 72 65 0a 58 73 74 |ns above| are.Xst|
|00000b00| 72 69 63 74 6c 79 20 61 | 64 68 65 72 65 64 20 74 |rictly a|dhered t|
|00000b10| 6f 2e 0a 58 0a 58 4e 4f | 54 45 3a 09 54 68 69 73 |o..X.XNO|TE:.This|
|00000b20| 20 73 6f 66 74 77 61 72 | 65 20 77 61 73 20 6f 72 | softwar|e was or|
|00000b30| 69 67 69 6e 61 6c 6c 79 | 20 77 72 69 74 74 65 6e |iginally| written|
|00000b40| 20 62 79 20 44 61 6e 20 | 48 65 6c 6c 65 72 0a 58 | by Dan |Heller.X|
|00000b50| 09 28 61 72 67 76 40 73 | 72 69 2d 73 70 61 6d 2e |.(argv@s|ri-spam.|
|00000b60| 61 72 70 61 29 20 61 6e | 64 20 65 6e 68 61 6e 63 |arpa) an|d enhanc|
|00000b70| 65 64 20 2f 20 67 65 6e | 65 72 61 6c 69 7a 65 64 |ed / gen|eralized|
|00000b80| 20 62 79 0a 58 09 47 65 | 6f 72 67 65 20 4d 2e 20 | by.X.Ge|orge M. |
|00000b90| 20 53 69 70 65 20 28 72 | 65 62 65 6c 21 67 65 6f | Sipe (r|ebel!geo|
|00000ba0| 72 67 65 29 20 74 6f 20 | 74 68 65 20 70 6f 69 6e |rge) to |the poin|
|00000bb0| 74 20 77 68 65 72 65 20 | 44 61 6e 0a 58 09 77 6f |t where |Dan.X.wo|
|00000bc0| 75 6c 64 20 6e 6f 20 6c | 6f 6e 67 65 72 20 72 65 |uld no l|onger re|
|00000bd0| 63 6f 67 69 6e 7a 65 20 | 69 74 2e 20 20 4e 6f 20 |coginze |it. No |
|00000be0| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00000bf0| 73 0a 58 09 77 65 72 65 | 20 65 6d 62 6f 64 69 65 |s.X.were| embodie|
|00000c00| 64 20 69 6e 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |d in the| origina|
|00000c10| 6c 20 6e 65 74 20 64 69 | 73 74 72 69 62 75 74 69 |l net di|stributi|
|00000c20| 6f 6e 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |on..SHAR|_EOF.fi.|
|00000c30| 69 66 20 74 65 73 74 20 | 2d 66 20 27 4d 61 6b 65 |if test |-f 'Make|
|00000c40| 66 69 6c 65 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |file'.th|en..echo|
|00000c50| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00000c60| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00000c70| 74 69 6e 67 20 66 69 6c | 65 20 27 4d 61 6b 65 66 |ting fil|e 'Makef|
|00000c80| 69 6c 65 27 22 0a 65 6c | 73 65 0a 73 65 64 20 27 |ile'".el|se.sed '|
|00000c90| 73 2f 5e 58 2f 2f 27 20 | 3c 3c 20 5c 53 48 41 52 |s/^X//' |<< \SHAR|
|00000ca0| 5f 45 4f 46 20 3e 20 27 | 4d 61 6b 65 66 69 6c 65 |_EOF > '|Makefile|
|00000cb0| 27 0a 58 23 20 4d 61 6b | 65 66 69 6c 65 20 66 6f |'.X# Mak|efile fo|
|00000cc0| 72 3a 20 20 76 69 73 20 | 2d 20 72 65 70 65 61 74 |r: vis |- repeat|
|00000cd0| 65 64 6c 79 20 72 75 6e | 20 63 6f 6d 6d 61 6e 64 |edly run| command|
|00000ce0| 2c 20 72 65 66 72 65 73 | 68 69 6e 67 20 73 63 72 |, refres|hing scr|
|00000cf0| 65 65 6e 0a 58 0a 58 44 | 45 46 49 4e 45 53 09 09 |een.X.XD|EFINES..|
|00000d00| 3d 20 2d 44 42 53 44 0a | 58 43 46 4c 41 47 53 09 |= -DBSD.|XCFLAGS.|
|00000d10| 09 3d 20 2d 4f 20 24 28 | 44 45 46 49 4e 45 53 29 |.= -O $(|DEFINES)|
|00000d20| 0a 58 4c 49 42 53 09 09 | 3d 20 2d 6c 63 75 72 73 |.XLIBS..|= -lcurs|
|00000d30| 65 73 20 2d 6c 74 65 72 | 6d 63 61 70 0a 58 52 4f |es -lter|mcap.XRO|
|00000d40| 46 46 09 09 3d 20 6e 72 | 6f 66 66 0a 58 52 46 4c |FF..= nr|off.XRFL|
|00000d50| 41 47 53 09 09 3d 20 2d | 6d 61 6e 0a 58 4c 44 46 |AGS..= -|man.XLDF|
|00000d60| 4c 41 47 53 09 09 3d 20 | 2d 73 0a 58 44 45 53 54 |LAGS..= |-s.XDEST|
|00000d70| 42 49 4e 09 09 3d 20 24 | 7b 48 4f 4d 45 7d 0a 58 |BIN..= $|{HOME}.X|
|00000d80| 44 45 53 54 4d 41 4e 09 | 09 3d 20 24 7b 48 4f 4d |DESTMAN.|.= ${HOM|
|00000d90| 45 7d 0a 58 44 45 53 54 | 43 41 54 09 09 3d 20 24 |E}.XDEST|CAT..= $|
|00000da0| 7b 48 4f 4d 45 7d 0a 58 | 44 45 53 54 4f 57 4e 09 |{HOME}.X|DESTOWN.|
|00000db0| 09 3d 20 72 6f 6f 74 0a | 58 44 45 53 54 47 52 50 |.= root.|XDESTGRP|
|00000dc0| 09 09 3d 20 73 74 61 66 | 66 0a 58 53 48 45 4c 4c |..= staf|f.XSHELL|
|00000dd0| 09 09 3d 20 2f 62 69 6e | 2f 73 68 0a 58 4d 41 4b |..= /bin|/sh.XMAK|
|00000de0| 45 46 49 4c 45 09 3d 20 | 4d 61 6b 65 66 69 6c 65 |EFILE.= |Makefile|
|00000df0| 0a 58 50 52 4f 47 52 41 | 4d 09 09 3d 20 76 69 73 |.XPROGRA|M..= vis|
|00000e00| 0a 58 4d 41 4e 50 41 47 | 45 53 09 3d 20 76 69 73 |.XMANPAG|ES.= vis|
|00000e10| 2e 6d 61 6e 0a 58 43 41 | 54 50 41 47 45 53 09 3d |.man.XCA|TPAGES.=|
|00000e20| 20 76 69 73 2e 63 61 74 | 0a 58 53 52 43 53 09 09 | vis.cat|.XSRCS..|
|00000e30| 3d 20 76 69 73 2e 63 0a | 58 4f 42 4a 53 09 09 3d |= vis.c.|XOBJS..=|
|00000e40| 20 76 69 73 2e 6f 0a 58 | 0a 58 2e 6d 61 6e 2e 63 | vis.o.X|.X.man.c|
|00000e50| 61 74 3a 0a 58 09 09 24 | 28 52 4f 46 46 29 20 24 |at:.X..$|(ROFF) $|
|00000e60| 28 52 46 4c 41 47 53 29 | 20 24 3c 20 3e 20 24 40 |(RFLAGS)| $< > $@|
|00000e70| 0a 58 0a 58 2e 53 55 46 | 46 49 58 45 53 3a 09 2e |.X.X.SUF|FIXES:..|
|00000e80| 6d 61 6e 20 2e 63 61 74 | 0a 58 0a 58 23 20 43 6f |man .cat|.X.X# Co|
|00000e90| 6d 70 69 6c 65 20 61 6e | 64 20 6c 6f 61 64 20 74 |mpile an|d load t|
|00000ea0| 68 65 20 70 72 6f 67 72 | 61 6d 20 61 6e 64 20 66 |he progr|am and f|
|00000eb0| 6f 72 6d 61 74 20 69 74 | 73 20 6d 61 6e 75 61 6c |ormat it|s manual|
|00000ec0| 20 70 61 67 65 73 2e 0a | 58 61 6c 6c 3a 09 09 24 | pages..|Xall:..$|
|00000ed0| 28 50 52 4f 47 52 41 4d | 29 20 24 28 43 41 54 50 |(PROGRAM|) $(CATP|
|00000ee0| 41 47 45 53 29 0a 58 0a | 58 24 28 50 52 4f 47 52 |AGES).X.|X$(PROGR|
|00000ef0| 41 4d 29 3a 09 24 28 4f | 42 4a 53 29 0a 58 09 09 |AM):.$(O|BJS).X..|
|00000f00| 24 28 43 43 29 20 24 28 | 4c 44 46 4c 41 47 53 29 |$(CC) $(|LDFLAGS)|
|00000f10| 20 24 28 4f 42 4a 53 29 | 20 24 28 4c 49 42 53 29 | $(OBJS)| $(LIBS)|
|00000f20| 20 2d 6f 20 24 28 50 52 | 4f 47 52 41 4d 29 0a 58 | -o $(PR|OGRAM).X|
|00000f30| 0a 58 23 20 52 75 6e 20 | 6c 69 6e 74 20 6f 6e 20 |.X# Run |lint on |
|00000f40| 73 6f 75 72 63 65 20 66 | 69 6c 65 73 2c 20 70 75 |source f|iles, pu|
|00000f50| 74 20 72 65 73 75 6c 74 | 73 20 6f 6e 20 73 74 61 |t result|s on sta|
|00000f60| 6e 64 61 72 64 20 6f 75 | 74 70 75 74 2e 0a 58 6c |ndard ou|tput..Xl|
|00000f70| 69 6e 74 3a 0a 58 09 09 | 6c 69 6e 74 20 2d 75 20 |int:.X..|lint -u |
|00000f80| 24 28 44 45 46 49 4e 45 | 53 29 20 24 28 53 52 43 |$(DEFINE|S) $(SRC|
|00000f90| 53 29 0a 58 0a 58 23 20 | 43 72 65 61 74 65 20 61 |S).X.X# |Create a|
|00000fa0| 20 74 61 67 73 20 66 69 | 6c 65 20 66 6f 72 20 75 | tags fi|le for u|
|00000fb0| 73 65 20 62 79 20 61 20 | 73 6f 75 72 63 65 20 63 |se by a |source c|
|00000fc0| 6f 64 65 20 65 64 69 74 | 6f 72 2e 0a 58 74 61 67 |ode edit|or..Xtag|
|00000fd0| 73 3a 09 09 24 28 53 52 | 43 53 29 0a 58 09 09 63 |s:..$(SR|CS).X..c|
|00000fe0| 74 61 67 73 20 24 28 53 | 52 43 53 29 0a 58 0a 58 |tags $(S|RCS).X.X|
|00000ff0| 23 20 45 64 69 74 20 74 | 68 65 20 6d 61 6b 65 66 |# Edit t|he makef|
|00001000| 69 6c 65 20 61 6e 64 20 | 72 65 67 65 6e 65 72 61 |ile and |regenera|
|00001010| 74 65 20 74 68 65 20 64 | 65 70 65 6e 64 65 6e 63 |te the d|ependenc|
|00001020| 79 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 0a 58 |y inform|ation..X|
|00001030| 64 65 70 65 6e 64 3a 0a | 58 09 09 6d 6b 6d 66 20 |depend:.|X..mkmf |
|00001040| 2d 66 20 24 28 4d 41 4b | 45 46 49 4c 45 29 20 50 |-f $(MAK|EFILE) P|
|00001050| 52 4f 47 52 41 4d 3d 24 | 28 50 52 4f 47 52 41 4d |ROGRAM=$|(PROGRAM|
|00001060| 29 20 44 45 53 54 42 49 | 4e 3d 24 28 44 45 53 54 |) DESTBI|N=$(DEST|
|00001070| 42 49 4e 29 0a 58 0a 58 | 23 20 50 72 69 6e 74 20 |BIN).X.X|# Print |
|00001080| 61 6e 20 69 6e 64 65 78 | 20 6f 66 20 66 75 6e 63 |an index| of func|
|00001090| 74 69 6f 6e 73 20 6f 6e | 20 73 74 61 6e 64 61 72 |tions on| standar|
|000010a0| 64 20 6f 75 74 70 75 74 | 2e 0a 58 69 6e 64 65 78 |d output|..Xindex|
|000010b0| 3a 0a 58 09 09 63 74 61 | 67 73 20 2d 77 78 20 24 |:.X..cta|gs -wx $|
|000010c0| 28 53 52 43 53 29 0a 58 | 0a 58 23 20 50 72 69 6e |(SRCS).X|.X# Prin|
|000010d0| 74 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 66 69 |t source| code fi|
|000010e0| 6c 65 73 20 6f 6e 20 73 | 74 61 6e 64 61 72 64 20 |les on s|tandard |
|000010f0| 6f 75 74 70 75 74 2e 0a | 58 70 72 69 6e 74 3a 0a |output..|Xprint:.|
|00001100| 58 09 09 6c 70 72 20 2d | 70 20 24 28 53 52 43 53 |X..lpr -|p $(SRCS|
|00001110| 29 20 24 28 4d 41 4e 50 | 41 47 45 53 29 0a 58 0a |) $(MANP|AGES).X.|
|00001120| 58 23 20 43 6f 6d 70 69 | 6c 65 20 61 6e 64 20 6c |X# Compi|le and l|
|00001130| 6f 61 64 20 74 68 65 20 | 70 72 6f 67 72 61 6d 2c |oad the |program,|
|00001140| 20 66 6f 72 6d 61 74 20 | 6d 61 6e 75 61 6c 20 70 | format |manual p|
|00001150| 61 67 65 73 2c 20 61 6e | 64 20 6d 6f 76 65 20 74 |ages, an|d move t|
|00001160| 68 65 6d 0a 58 23 20 74 | 6f 20 74 68 65 69 72 20 |hem.X# t|o their |
|00001170| 64 65 73 74 69 6e 61 74 | 69 6f 6e 20 64 69 72 65 |destinat|ion dire|
|00001180| 63 74 6f 72 69 65 73 2e | 0a 58 69 6e 73 74 61 6c |ctories.|.Xinstal|
|00001190| 6c 3a 09 24 28 50 52 4f | 47 52 41 4d 29 20 24 28 |l:.$(PRO|GRAM) $(|
|000011a0| 43 41 54 50 41 47 45 53 | 29 0a 58 09 09 63 70 20 |CATPAGES|).X..cp |
|000011b0| 24 28 50 52 4f 47 52 41 | 4d 29 20 24 28 44 45 53 |$(PROGRA|M) $(DES|
|000011c0| 54 42 49 4e 29 0a 58 09 | 09 63 68 6d 6f 64 20 37 |TBIN).X.|.chmod 7|
|000011d0| 35 35 20 24 28 44 45 53 | 54 42 49 4e 29 2f 24 28 |55 $(DES|TBIN)/$(|
|000011e0| 50 52 4f 47 52 41 4d 29 | 0a 58 09 09 63 68 6f 77 |PROGRAM)|.X..chow|
|000011f0| 6e 20 24 28 44 45 53 54 | 4f 57 4e 29 20 24 28 44 |n $(DEST|OWN) $(D|
|00001200| 45 53 54 42 49 4e 29 2f | 24 28 50 52 4f 47 52 41 |ESTBIN)/|$(PROGRA|
|00001210| 4d 29 0a 58 09 09 63 68 | 67 72 70 20 24 28 44 45 |M).X..ch|grp $(DE|
|00001220| 53 54 47 52 50 29 20 24 | 28 44 45 53 54 42 49 4e |STGRP) $|(DESTBIN|
|00001230| 29 2f 24 28 50 52 4f 47 | 52 41 4d 29 0a 58 09 09 |)/$(PROG|RAM).X..|
|00001240| 2d 66 6f 72 20 6d 61 6e | 70 61 67 65 20 69 6e 20 |-for man|page in |
|00001250| 24 28 4d 41 4e 50 41 47 | 45 53 29 3b 20 64 6f 20 |$(MANPAG|ES); do |
|00001260| 5c 0a 58 09 09 09 62 61 | 73 65 70 61 67 65 3d 60 |\.X...ba|sepage=`|
|00001270| 62 61 73 65 6e 61 6d 65 | 20 24 24 6d 61 6e 70 61 |basename| $$manpa|
|00001280| 67 65 20 2e 6d 61 6e 60 | 3b 20 5c 0a 58 09 09 09 |ge .man`|; \.X...|
|00001290| 63 70 20 24 24 62 61 73 | 65 70 61 67 65 2e 6d 61 |cp $$bas|epage.ma|
|000012a0| 6e 20 24 28 44 45 53 54 | 4d 41 4e 29 2f 24 24 62 |n $(DEST|MAN)/$$b|
|000012b0| 61 73 65 70 61 67 65 2e | 6c 3b 20 5c 0a 58 09 09 |asepage.|l; \.X..|
|000012c0| 09 63 68 6d 6f 64 20 36 | 34 34 20 24 28 44 45 53 |.chmod 6|44 $(DES|
|000012d0| 54 4d 41 4e 29 2f 24 24 | 62 61 73 65 70 61 67 65 |TMAN)/$$|basepage|
|000012e0| 2e 6c 3b 20 5c 0a 58 09 | 09 09 63 68 6f 77 6e 20 |.l; \.X.|..chown |
|000012f0| 24 28 44 45 53 54 4f 57 | 4e 29 20 24 28 44 45 53 |$(DESTOW|N) $(DES|
|00001300| 54 4d 41 4e 29 2f 24 24 | 62 61 73 65 70 61 67 65 |TMAN)/$$|basepage|
|00001310| 2e 6c 3b 20 5c 0a 58 09 | 09 09 63 68 67 72 70 20 |.l; \.X.|..chgrp |
|00001320| 24 28 44 45 53 54 47 52 | 50 29 20 24 28 44 45 53 |$(DESTGR|P) $(DES|
|00001330| 54 4d 41 4e 29 2f 24 24 | 62 61 73 65 70 61 67 65 |TMAN)/$$|basepage|
|00001340| 2e 6c 3b 20 5c 0a 58 09 | 09 09 63 70 20 24 24 62 |.l; \.X.|..cp $$b|
|00001350| 61 73 65 70 61 67 65 2e | 63 61 74 20 24 28 44 45 |asepage.|cat $(DE|
|00001360| 53 54 43 41 54 29 2f 24 | 24 62 61 73 65 70 61 67 |STCAT)/$|$basepag|
|00001370| 65 2e 6c 3b 20 5c 0a 58 | 09 09 09 63 68 6d 6f 64 |e.l; \.X|...chmod|
|00001380| 20 36 34 34 20 24 28 44 | 45 53 54 43 41 54 29 2f | 644 $(D|ESTCAT)/|
|00001390| 24 24 62 61 73 65 70 61 | 67 65 2e 6c 3b 20 5c 0a |$$basepa|ge.l; \.|
|000013a0| 58 09 09 09 63 68 6f 77 | 6e 20 24 28 44 45 53 54 |X...chow|n $(DEST|
|000013b0| 4f 57 4e 29 20 24 28 44 | 45 53 54 43 41 54 29 2f |OWN) $(D|ESTCAT)/|
|000013c0| 24 24 62 61 73 65 70 61 | 67 65 2e 6c 3b 20 5c 0a |$$basepa|ge.l; \.|
|000013d0| 58 09 09 09 63 68 67 72 | 70 20 24 28 44 45 53 54 |X...chgr|p $(DEST|
|000013e0| 47 52 50 29 20 24 28 44 | 45 53 54 43 41 54 29 2f |GRP) $(D|ESTCAT)/|
|000013f0| 24 24 62 61 73 65 70 61 | 67 65 2e 6c 3b 20 5c 0a |$$basepa|ge.l; \.|
|00001400| 58 09 09 64 6f 6e 65 0a | 58 0a 58 23 20 52 65 6d |X..done.|X.X# Rem|
|00001410| 6f 76 65 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |ove the |program |
|00001420| 61 6e 64 20 69 74 73 20 | 66 6f 72 6d 61 74 74 65 |and its |formatte|
|00001430| 64 20 6d 61 6e 75 61 6c | 20 70 61 67 65 73 20 66 |d manual| pages f|
|00001440| 72 6f 6d 20 74 68 65 69 | 72 0a 58 23 20 64 65 73 |rom thei|r.X# des|
|00001450| 74 69 6e 61 74 69 6f 6e | 20 64 69 72 65 63 74 6f |tination| directo|
|00001460| 72 69 65 73 2e 0a 58 75 | 6e 69 6e 73 74 61 6c 6c |ries..Xu|ninstall|
|00001470| 3a 0a 58 09 09 72 6d 20 | 2d 66 20 24 28 44 45 53 |:.X..rm |-f $(DES|
|00001480| 54 42 49 4e 29 2f 24 28 | 50 52 4f 47 52 41 4d 29 |TBIN)/$(|PROGRAM)|
|00001490| 0a 58 09 09 2d 66 6f 72 | 20 6d 61 6e 70 61 67 65 |.X..-for| manpage|
|000014a0| 20 69 6e 20 24 28 4d 41 | 4e 50 41 47 45 53 29 3b | in $(MA|NPAGES);|
|000014b0| 20 64 6f 20 5c 0a 58 09 | 09 09 62 61 73 65 70 61 | do \.X.|..basepa|
|000014c0| 67 65 3d 60 62 61 73 65 | 6e 61 6d 65 20 24 24 6d |ge=`base|name $$m|
|000014d0| 61 6e 70 61 67 65 20 2e | 6d 61 6e 60 3b 20 5c 0a |anpage .|man`; \.|
|000014e0| 58 09 09 09 72 6d 20 2d | 66 20 24 28 44 45 53 54 |X...rm -|f $(DEST|
|000014f0| 4d 41 4e 29 2f 24 24 62 | 61 73 65 70 61 67 65 2e |MAN)/$$b|asepage.|
|00001500| 6c 3b 20 5c 0a 58 09 09 | 09 72 6d 20 2d 66 20 24 |l; \.X..|.rm -f $|
|00001510| 28 44 45 53 54 43 41 54 | 29 2f 24 24 62 61 73 65 |(DESTCAT|)/$$base|
|00001520| 70 61 67 65 2e 6c 3b 20 | 5c 0a 58 09 09 64 6f 6e |page.l; |\.X..don|
|00001530| 65 0a 58 0a 58 23 20 52 | 65 6d 6f 76 65 20 61 6c |e.X.X# R|emove al|
|00001540| 6c 20 74 61 72 67 65 74 | 20 61 6e 64 20 69 6e 74 |l target| and int|
|00001550| 65 72 6d 65 64 69 61 74 | 65 20 66 69 6c 65 73 2e |ermediat|e files.|
|00001560| 0a 58 63 6c 65 61 6e 3a | 0a 58 09 09 2d 72 6d 20 |.Xclean:|.X..-rm |
|00001570| 2d 66 20 24 28 50 52 4f | 47 52 41 4d 29 20 24 28 |-f $(PRO|GRAM) $(|
|00001580| 43 41 54 50 41 47 45 53 | 29 20 24 28 4f 42 4a 53 |CATPAGES|) $(OBJS|
|00001590| 29 0a 58 09 09 2d 72 6d | 20 2d 66 20 63 6f 72 65 |).X..-rm| -f core|
|000015a0| 20 61 2e 6f 75 74 20 6d | 61 64 65 20 2a 2e 6f 0a | a.out m|ade *.o.|
|000015b0| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 69 66 20 74 |SHAR_EOF|.fi.if t|
|000015c0| 65 73 74 20 2d 66 20 27 | 76 69 73 2e 6d 61 6e 27 |est -f '|vis.man'|
|000015d0| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|000015e0| 3a 20 22 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |: "will |not over|
|000015f0| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00001600| 66 69 6c 65 20 27 76 69 | 73 2e 6d 61 6e 27 22 0a |file 'vi|s.man'".|
|00001610| 65 6c 73 65 0a 73 65 64 | 20 27 73 2f 5e 58 2f 2f |else.sed| 's/^X//|
|00001620| 27 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |' << \SH|AR_EOF >|
|00001630| 20 27 76 69 73 2e 6d 61 | 6e 27 0a 58 2e 54 48 20 | 'vis.ma|n'.X.TH |
|00001640| 56 49 53 20 6c 20 22 32 | 31 20 4a 75 6c 79 20 31 |VIS l "2|1 July 1|
|00001650| 39 38 38 22 0a 58 2e 53 | 48 20 4e 41 4d 45 0a 58 |988".X.S|H NAME.X|
|00001660| 76 69 73 20 5c 2d 20 72 | 65 70 65 61 74 65 64 6c |vis \- r|epeatedl|
|00001670| 79 20 72 75 6e 20 63 6f | 6d 6d 61 6e 64 2c 20 72 |y run co|mmand, r|
|00001680| 65 66 72 65 73 68 69 6e | 67 20 73 63 72 65 65 6e |efreshin|g screen|
|00001690| 0a 58 2e 53 48 20 53 59 | 4e 54 41 58 0a 58 2e 42 |.X.SH SY|NTAX.X.B|
|000016a0| 20 76 69 73 20 22 5b 2d | 64 20 64 65 6c 61 79 5d | vis "[-|d delay]|
|000016b0| 20 5b 2d 66 5d 20 63 6f | 6d 6d 61 6e 64 20 5b 61 | [-f] co|mmand [a|
|000016c0| 72 67 73 5d 22 0a 58 2e | 53 48 20 44 45 53 43 52 |rgs]".X.|SH DESCR|
|000016d0| 49 50 54 49 4f 4e 0a 58 | 2e 49 20 56 69 73 0a 58 |IPTION.X|.I Vis.X|
|000016e0| 72 65 70 65 61 74 65 64 | 6c 79 20 65 78 65 63 75 |repeated|ly execu|
|000016f0| 74 65 73 20 61 20 73 70 | 65 63 69 66 69 65 64 0a |tes a sp|ecified.|
|00001700| 58 2e 42 20 63 6f 6d 6d | 61 6e 64 0a 58 61 6e 64 |X.B comm|and.Xand|
|00001710| 20 72 65 66 72 65 73 68 | 65 73 20 74 68 65 20 64 | refresh|es the d|
|00001720| 69 73 70 6c 61 79 20 6f | 66 20 69 74 73 20 6f 75 |isplay o|f its ou|
|00001730| 74 70 75 74 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |tput on |the scre|
|00001740| 65 6e 2e 20 20 54 68 69 | 73 20 68 61 73 20 74 68 |en. Thi|s has th|
|00001750| 65 0a 58 65 66 66 65 63 | 74 20 6f 66 20 6d 61 6b |e.Xeffec|t of mak|
|00001760| 69 6e 67 20 61 6e 79 20 | 6e 6f 72 6d 61 6c 6c 79 |ing any |normally|
|00001770| 20 6e 6f 6e 2d 73 63 72 | 65 65 6e 20 6f 72 69 65 | non-scr|een orie|
|00001780| 6e 74 65 64 20 63 6f 6d | 6d 61 6e 64 20 69 6e 74 |nted com|mand int|
|00001790| 6f 20 61 20 73 63 72 65 | 65 6e 0a 58 6f 72 69 65 |o a scre|en.Xorie|
|000017a0| 6e 74 65 64 20 6f 6e 65 | 2e 0a 58 2e 50 50 0a 58 |nted one|..X.PP.X|
|000017b0| 2e 42 20 43 6f 6d 6d 61 | 6e 64 0a 58 6d 61 79 20 |.B Comma|nd.Xmay |
|000017c0| 72 65 70 72 65 73 65 6e | 74 20 6d 75 6c 74 69 70 |represen|t multip|
|000017d0| 6c 65 20 63 6f 6d 6d 61 | 6e 64 73 20 62 79 20 65 |le comma|nds by e|
|000017e0| 6e 63 6c 6f 73 69 6e 67 | 20 74 68 65 6d 20 69 6e |nclosing| them in|
|000017f0| 20 71 75 6f 74 65 73 20 | 61 6e 64 0a 58 73 65 70 | quotes |and.Xsep|
|00001800| 61 72 61 74 69 6e 67 20 | 74 68 65 6d 20 62 79 20 |arating |them by |
|00001810| 60 60 3b 27 27 2e 20 20 | 53 69 6d 69 6c 61 72 6c |``;''. |Similarl|
|00001820| 79 2c 20 63 6f 6d 6d 61 | 6e 64 73 20 6d 61 79 20 |y, comma|nds may |
|00001830| 62 65 20 70 69 70 65 64 | 20 74 6f 67 65 74 68 65 |be piped| togethe|
|00001840| 72 20 62 79 0a 58 65 6e | 63 6c 6f 73 69 6e 67 20 |r by.Xen|closing |
|00001850| 74 68 65 6d 20 69 6e 20 | 71 75 6f 74 65 73 20 61 |them in |quotes a|
|00001860| 6e 64 20 73 65 70 61 72 | 61 74 69 6e 67 20 74 68 |nd separ|ating th|
|00001870| 65 6d 20 62 79 20 60 60 | 7c 27 27 2e 20 20 54 68 |em by ``||''. Th|
|00001880| 65 20 73 69 6e 67 6c 65 | 20 6f 72 0a 58 64 6f 75 |e single| or.Xdou|
|00001890| 62 6c 65 20 71 75 6f 74 | 65 73 20 61 72 6f 75 6e |ble quot|es aroun|
|000018a0| 64 20 73 75 63 68 20 61 | 20 63 6f 6d 70 6f 75 6e |d such a| compoun|
|000018b0| 64 20 63 6f 6d 6d 61 6e | 64 20 61 72 65 20 6e 65 |d comman|d are ne|
|000018c0| 63 65 73 73 61 72 79 20 | 74 6f 20 65 73 63 61 70 |cessary |to escap|
|000018d0| 65 0a 58 70 72 6f 63 65 | 73 73 69 6e 67 20 66 72 |e.Xproce|ssing fr|
|000018e0| 6f 6d 20 74 68 65 20 73 | 68 65 6c 6c 2e 0a 58 2e |om the s|hell..X.|
|000018f0| 50 50 0a 58 54 68 65 20 | 66 69 72 73 74 20 6c 69 |PP.XThe |first li|
|00001900| 6e 65 20 6f 6e 20 74 68 | 65 20 6f 75 74 70 75 74 |ne on th|e output|
|00001910| 20 73 63 72 65 65 6e 20 | 69 73 20 72 65 73 65 72 | screen |is reser|
|00001920| 76 65 64 20 66 6f 72 0a | 58 2e 49 20 76 69 73 0a |ved for.|X.I vis.|
|00001930| 58 73 74 61 74 75 73 20 | 61 6e 64 20 77 69 6c 6c |Xstatus |and will|
|00001940| 20 63 6f 6e 74 61 69 6e | 20 74 68 65 0a 58 2e 42 | contain| the.X.B|
|00001950| 20 63 6f 6d 6d 61 6e 64 | 0a 58 6f 6e 20 74 68 65 | command|.Xon the|
|00001960| 20 6c 65 66 74 20 73 69 | 64 65 20 77 69 74 68 20 | left si|de with |
|00001970| 74 68 65 20 63 75 72 72 | 65 6e 74 20 65 78 65 63 |the curr|ent exec|
|00001980| 75 74 69 6f 6e 20 63 6f | 75 6e 74 20 6f 6e 20 74 |ution co|unt on t|
|00001990| 68 65 20 72 69 67 68 74 | 20 73 69 64 65 2e 20 20 |he right| side. |
|000019a0| 49 66 0a 58 2e 42 20 63 | 6f 6d 6d 61 6e 64 0a 58 |If.X.B c|ommand.X|
|000019b0| 69 73 20 74 6f 6f 20 6c | 6f 6e 67 20 74 6f 20 66 |is too l|ong to f|
|000019c0| 69 74 2c 0a 58 2e 49 20 | 76 69 73 0a 58 77 69 6c |it,.X.I |vis.Xwil|
|000019d0| 6c 20 74 72 75 6e 63 61 | 74 65 20 69 74 20 69 6e |l trunca|te it in|
|000019e0| 20 74 68 65 20 73 74 61 | 74 75 73 20 6c 69 6e 65 | the sta|tus line|
|000019f0| 20 61 6e 64 20 61 70 70 | 65 6e 64 20 61 6e 20 65 | and app|end an e|
|00001a00| 6c 6c 69 70 73 69 73 20 | 28 22 2e 2e 2e 22 29 2e |llipsis |("...").|
|00001a10| 0a 58 2e 50 50 0a 58 54 | 68 65 20 6f 75 74 70 75 |.X.PP.XT|he outpu|
|00001a20| 74 20 6f 66 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |t of the| command|
|00001a30| 20 6e 6f 72 6d 61 6c 6c | 79 20 62 65 67 69 6e 73 | normall|y begins|
|00001a40| 20 6f 6e 20 74 68 65 20 | 74 68 69 72 64 20 6c 69 | on the |third li|
|00001a50| 6e 65 20 61 6e 64 0a 58 | 63 6f 6e 74 69 6e 75 65 |ne and.X|continue|
|00001a60| 73 20 74 6f 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |s to the| end of |
|00001a70| 74 68 65 20 73 63 72 65 | 65 6e 2e 20 20 4c 69 6e |the scre|en. Lin|
|00001a80| 65 73 20 77 68 69 63 68 | 20 63 61 6e 20 6e 6f 74 |es which| can not|
|00001a90| 20 66 69 74 20 77 69 6c | 6c 20 62 65 0a 58 64 69 | fit wil|l be.Xdi|
|00001aa0| 73 63 61 72 64 65 64 2e | 20 20 57 68 65 6e 20 74 |scarded.| When t|
|00001ab0| 68 69 73 20 6f 63 63 75 | 72 73 2c 0a 58 2e 49 20 |his occu|rs,.X.I |
|00001ac0| 76 69 73 0a 58 77 69 6c | 6c 20 61 75 74 6f 6d 61 |vis.Xwil|l automa|
|00001ad0| 74 69 63 61 6c 6c 79 20 | 70 6c 61 63 65 20 74 68 |tically |place th|
|00001ae0| 65 20 6f 75 74 70 75 74 | 20 6f 66 20 66 6f 6c 6c |e output| of foll|
|00001af0| 6f 77 69 6e 67 20 70 61 | 73 73 65 73 20 73 74 61 |owing pa|sses sta|
|00001b00| 72 74 69 6e 67 20 6f 6e | 20 6c 69 6e 65 0a 58 74 |rting on| line.Xt|
|00001b10| 77 6f 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 20 6d |wo in or|der to m|
|00001b20| 61 78 69 6d 69 7a 65 20 | 74 68 65 20 61 6d 6f 75 |aximize |the amou|
|00001b30| 6e 74 20 6f 66 20 64 69 | 73 70 6c 61 79 65 64 20 |nt of di|splayed |
|00001b40| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 0a 58 2e 50 |informat|ion..X.P|
|00001b50| 50 0a 58 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |P.XThe f|ollowing|
|00001b60| 20 73 77 69 74 63 68 65 | 73 20 6d 61 79 20 62 65 | switche|s may be|
|00001b70| 20 73 70 65 63 69 66 69 | 65 64 20 69 66 20 64 65 | specifi|ed if de|
|00001b80| 73 69 72 65 64 3a 0a 58 | 2e 54 50 20 31 30 0a 58 |sired:.X|.TP 10.X|
|00001b90| 2e 42 20 22 2d 64 20 64 | 65 6c 61 79 22 0a 58 73 |.B "-d d|elay".Xs|
|00001ba0| 70 65 63 69 66 69 65 73 | 20 61 20 6e 6f 6e 2d 64 |pecifies| a non-d|
|00001bb0| 65 66 61 75 6c 74 20 64 | 65 6c 61 79 20 6f 66 0a |efault d|elay of.|
|00001bc0| 58 2e 42 20 64 65 6c 61 | 79 0a 58 73 65 63 6f 6e |X.B dela|y.Xsecon|
|00001bd0| 64 73 2e 20 20 4e 6f 72 | 6d 61 6c 6c 79 0a 58 2e |ds. Nor|mally.X.|
|00001be0| 49 20 76 69 73 0a 58 77 | 69 6c 6c 20 64 65 6c 61 |I vis.Xw|ill dela|
|00001bf0| 79 20 66 6f 72 20 31 35 | 20 73 65 63 6f 6e 64 73 |y for 15| seconds|
|00001c00| 20 62 65 74 77 65 65 6e | 20 63 6f 6d 6d 61 6e 64 | between| command|
|00001c10| 20 72 65 2d 65 78 65 63 | 75 74 69 6f 6e 73 2e 20 | re-exec|utions. |
|00001c20| 20 49 66 20 61 0a 58 6e | 6f 6e 2d 64 65 66 61 75 | If a.Xn|on-defau|
|00001c30| 6c 74 20 64 65 6c 61 79 | 20 69 73 20 73 70 65 63 |lt delay| is spec|
|00001c40| 69 66 69 65 64 2c 20 74 | 68 65 0a 58 2e 49 20 76 |ified, t|he.X.I v|
|00001c50| 69 73 0a 58 73 74 61 74 | 75 73 20 6c 69 6e 65 20 |is.Xstat|us line |
|00001c60| 77 69 6c 6c 20 61 6c 73 | 6f 20 69 6e 63 6c 75 64 |will als|o includ|
|00001c70| 65 20 74 68 65 20 64 65 | 6c 61 79 20 69 6e 74 65 |e the de|lay inte|
|00001c80| 72 76 61 6c 20 63 65 6e | 74 65 72 65 64 20 77 69 |rval cen|tered wi|
|00001c90| 74 68 69 6e 20 69 74 0a | 58 28 75 6e 6c 65 73 73 |thin it.|X(unless|
|00001ca0| 20 74 68 61 74 20 77 6f | 75 6c 64 20 63 61 75 73 | that wo|uld caus|
|00001cb0| 65 20 69 74 20 74 6f 20 | 6f 76 65 72 77 72 69 74 |e it to |overwrit|
|00001cc0| 65 20 61 20 6c 6f 6e 67 | 20 63 6f 6d 6d 61 6e 64 |e a long| command|
|00001cd0| 2c 20 69 6e 20 77 68 69 | 63 68 20 63 61 73 65 0a |, in whi|ch case.|
|00001ce0| 58 69 74 20 77 69 6c 6c | 20 62 65 20 63 65 6e 74 |Xit will| be cent|
|00001cf0| 65 72 65 64 20 62 65 74 | 77 65 65 6e 20 74 68 65 |ered bet|ween the|
|00001d00| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d | end of |the comm|
|00001d10| 61 6e 64 20 61 6e 64 20 | 74 68 65 20 65 78 65 63 |and and |the exec|
|00001d20| 75 74 69 6f 6e 0a 58 63 | 6f 75 6e 74 29 2e 0a 58 |ution.Xc|ount)..X|
|00001d30| 2e 54 50 0a 58 2e 42 20 | 2d 66 0a 58 2e 49 20 56 |.TP.X.B |-f.X.I V|
|00001d40| 69 73 0a 58 77 69 6c 6c | 20 61 75 74 6f 6d 61 74 |is.Xwill| automat|
|00001d50| 69 63 61 6c 6c 79 20 74 | 65 72 6d 69 6e 61 74 65 |ically t|erminate|
|00001d60| 20 69 66 0a 58 2e 42 20 | 63 6f 6d 6d 61 6e 64 0a | if.X.B |command.|
|00001d70| 58 72 65 74 75 72 6e 73 | 20 61 20 6e 6f 6e 2d 7a |Xreturns| a non-z|
|00001d80| 65 72 6f 20 73 74 61 74 | 75 73 2e 20 20 54 68 65 |ero stat|us. The|
|00001d90| 0a 58 2e 42 20 2d 66 0a | 58 66 6c 61 67 20 66 6f |.X.B -f.|Xflag fo|
|00001da0| 72 63 65 73 0a 58 2e 49 | 20 76 69 73 0a 58 74 6f |rces.X.I| vis.Xto|
|00001db0| 20 63 6f 6e 74 69 6e 75 | 65 2e 20 20 57 68 65 6e | continu|e. When|
|00001dc0| 0a 58 2e 42 20 2d 66 0a | 58 69 73 20 73 70 65 63 |.X.B -f.|Xis spec|
|00001dd0| 69 66 69 65 64 2c 0a 58 | 2e 49 20 76 69 73 0a 58 |ified,.X|.I vis.X|
|00001de0| 77 69 6c 6c 20 6e 6f 74 | 20 74 65 72 6d 69 6e 61 |will not| termina|
|00001df0| 74 65 20 61 6e 64 20 77 | 69 6c 6c 20 69 6e 73 74 |te and w|ill inst|
|00001e00| 65 61 64 20 70 72 65 63 | 65 64 65 20 74 68 65 20 |ead prec|ede the |
|00001e10| 65 78 65 63 75 74 69 6f | 6e 20 63 6f 75 6e 74 20 |executio|n count |
|00001e20| 69 6e 20 74 68 65 0a 58 | 2e 49 20 76 69 73 0a 58 |in the.X|.I vis.X|
|00001e30| 73 74 61 74 75 73 20 6c | 69 6e 65 20 62 79 20 61 |status l|ine by a|
|00001e40| 20 60 60 21 27 27 20 66 | 6c 61 67 20 77 68 65 6e | ``!'' f|lag when|
|00001e50| 65 76 65 72 20 61 20 6e | 6f 6e 2d 7a 65 72 6f 20 |ever a n|on-zero |
|00001e60| 73 74 61 74 75 73 20 68 | 61 73 20 62 65 65 6e 20 |status h|as been |
|00001e70| 72 65 74 75 72 6e 65 64 | 0a 58 62 79 0a 58 2e 42 |returned|.Xby.X.B|
|00001e80| 20 63 6f 6d 6d 61 6e 64 | 20 2e 0a 58 2e 53 48 20 | command| ..X.SH |
|00001e90| 45 58 41 4d 50 4c 45 53 | 0a 58 76 69 73 20 70 73 |EXAMPLES|.Xvis ps|
|00001ea0| 0a 58 2e 49 50 20 22 22 | 20 35 0a 58 43 6f 6e 74 |.X.IP ""| 5.XCont|
|00001eb0| 69 6e 75 61 6c 6c 79 20 | 64 69 73 70 6c 61 79 20 |inually |display |
|00001ec0| 74 68 65 20 73 74 61 74 | 75 73 20 6f 66 20 70 72 |the stat|us of pr|
|00001ed0| 6f 63 65 73 73 65 73 20 | 6f 6e 20 74 68 65 20 73 |ocesses |on the s|
|00001ee0| 79 73 74 65 6d 20 28 75 | 70 20 74 6f 20 32 33 0a |ystem (u|p to 23.|
|00001ef0| 58 6c 69 6e 65 73 29 2e | 0a 58 2e 50 50 0a 58 76 |Xlines).|.X.PP.Xv|
|00001f00| 69 73 20 2d 64 20 36 30 | 20 27 77 68 6f 20 3b 20 |is -d 60| 'who ; |
|00001f10| 65 63 68 6f 20 22 22 3b | 20 64 66 27 0a 58 2e 49 |echo "";| df'.X.I|
|00001f20| 50 20 22 22 20 35 0a 58 | 44 69 73 70 6c 61 79 20 |P "" 5.X|Display |
|00001f30| 74 68 65 20 73 79 73 74 | 65 6d 20 75 73 65 72 73 |the syst|em users|
|00001f40| 20 61 6e 64 20 64 69 73 | 6b 20 75 73 61 67 65 20 | and dis|k usage |
|00001f50| 73 74 61 74 69 73 74 69 | 63 73 20 65 76 65 72 79 |statisti|cs every|
|00001f60| 20 36 30 20 73 65 63 6f | 6e 64 73 2e 0a 58 53 65 | 60 seco|nds..XSe|
|00001f70| 70 61 72 61 74 65 20 74 | 68 65 20 74 77 6f 20 77 |parate t|he two w|
|00001f80| 69 74 68 20 61 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |ith a bl|ank line|
|00001f90| 2e 0a 58 2e 53 48 20 22 | 53 45 45 20 41 4c 53 4f |..X.SH "|SEE ALSO|
|00001fa0| 22 0a 58 55 73 65 72 20 | 43 6f 6d 6d 61 6e 64 73 |".XUser |Commands|
|00001fb0| 20 28 31 29 3a 20 20 73 | 68 2c 20 63 73 68 0a 58 | (1): s|h, csh.X|
|00001fc0| 2e 53 48 20 44 49 41 47 | 4e 4f 53 54 49 43 53 0a |.SH DIAG|NOSTICS.|
|00001fd0| 58 49 66 0a 58 2e 42 20 | 63 6f 6d 6d 61 6e 64 0a |XIf.X.B |command.|
|00001fe0| 58 72 65 74 75 72 6e 73 | 20 61 20 6e 6f 6e 2d 7a |Xreturns| a non-z|
|00001ff0| 65 72 6f 20 73 74 61 74 | 75 73 20 61 6e 64 0a 58 |ero stat|us and.X|
|00002000| 2e 42 20 2d 66 0a 58 68 | 61 73 20 6e 6f 74 20 62 |.B -f.Xh|as not b|
|00002010| 65 65 6e 20 73 70 65 63 | 69 66 69 65 64 20 74 6f |een spec|ified to|
|00002020| 0a 58 2e 49 20 76 69 73 | 20 2c 0a 58 2e 49 20 76 |.X.I vis| ,.X.I v|
|00002030| 69 73 0a 58 77 69 6c 6c | 20 74 65 72 6d 69 6e 61 |is.Xwill| termina|
|00002040| 74 65 20 61 6e 64 20 72 | 65 74 75 72 6e 20 74 68 |te and r|eturn th|
|00002050| 61 74 20 73 74 61 74 75 | 73 2e 0a 58 2e 53 48 20 |at statu|s..X.SH |
|00002060| 41 55 54 48 4f 52 0a 58 | 4f 72 69 67 69 6e 61 6c |AUTHOR.X|Original|
|00002070| 6c 79 20 77 72 69 74 74 | 65 6e 20 62 79 20 44 61 |ly writt|en by Da|
|00002080| 6e 20 48 65 6c 6c 65 72 | 20 28 61 72 67 76 40 73 |n Heller| (argv@s|
|00002090| 72 69 2d 73 70 61 6d 2e | 61 72 70 61 29 2e 0a 58 |ri-spam.|arpa)..X|
|000020a0| 2e 50 50 0a 58 49 74 20 | 68 61 73 20 62 65 65 6e |.PP.XIt |has been|
|000020b0| 20 73 75 62 73 74 61 6e | 74 69 61 6c 6c 79 20 65 | substan|tially e|
|000020c0| 6e 68 61 6e 63 65 64 20 | 61 6e 64 20 67 65 6e 65 |nhanced |and gene|
|000020d0| 72 61 6c 69 7a 65 64 20 | 62 79 20 47 65 6f 72 67 |ralized |by Georg|
|000020e0| 65 20 4d 2e 20 53 69 70 | 65 0a 58 28 63 75 72 72 |e M. Sip|e.X(curr|
|000020f0| 65 6e 74 6c 79 20 2d 20 | 37 2f 38 38 2c 20 61 74 |ently - |7/88, at|
|00002100| 20 72 65 62 65 6c 21 67 | 65 6f 72 67 65 29 20 74 | rebel!g|eorge) t|
|00002110| 6f 20 74 68 65 20 70 6f | 69 6e 74 20 77 68 65 72 |o the po|int wher|
|00002120| 65 20 44 61 6e 20 77 6f | 75 6c 64 20 6e 6f 0a 58 |e Dan wo|uld no.X|
|00002130| 6c 6f 6e 67 65 72 20 72 | 65 63 6f 67 6e 69 7a 65 |longer r|ecognize|
|00002140| 20 69 74 2e 0a 53 48 41 | 52 5f 45 4f 46 0a 66 69 | it..SHA|R_EOF.fi|
|00002150| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 76 69 73 |.if test| -f 'vis|
|00002160| 2e 63 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |.c'.then|..echo s|
|00002170| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00002180| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00002190| 6e 67 20 66 69 6c 65 20 | 27 76 69 73 2e 63 27 22 |ng file |'vis.c'"|
|000021a0| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 58 2f |.else.se|d 's/^X/|
|000021b0| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|000021c0| 3e 20 27 76 69 73 2e 63 | 27 0a 58 2f 2a 20 20 20 |> 'vis.c|'.X/* |
|000021d0| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 31 39 |Copyrigh|t (c) 19|
|000021e0| 38 38 20 62 79 20 47 65 | 6f 72 67 65 20 4d 2e 20 |88 by Ge|orge M. |
|000021f0| 53 69 70 65 2e 20 20 41 | 6c 6c 20 72 69 67 68 74 |Sipe. A|ll right|
|00002200| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 58 0a 58 54 |s reserv|ed..X.XT|
|00002210| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 6d 61 79 |his soft|ware may|
|00002220| 20 6f 6e 6c 79 20 62 65 | 20 72 65 64 69 73 74 72 | only be| redistr|
|00002230| 69 62 75 74 65 64 20 77 | 69 74 68 6f 75 74 20 66 |ibuted w|ithout f|
|00002240| 65 65 20 61 6e 64 20 77 | 69 74 68 6f 75 74 20 61 |ee and w|ithout a|
|00002250| 6e 79 0a 58 6f 74 68 65 | 72 20 66 6f 72 6d 20 6f |ny.Xothe|r form o|
|00002260| 66 20 6d 6f 6e 65 74 61 | 72 79 20 67 61 69 6e 20 |f moneta|ry gain |
|00002270| 28 69 6e 63 6c 75 64 69 | 6e 67 20 73 6f 6c 64 2c |(includi|ng sold,|
|00002280| 20 72 65 6e 74 65 64 2c | 20 6c 65 61 73 65 64 2c | rented,| leased,|
|00002290| 20 6f 72 0a 58 74 72 61 | 64 65 64 29 2c 20 75 6e | or.Xtra|ded), un|
|000022a0| 6c 65 73 73 20 74 68 65 | 20 65 78 70 72 65 73 73 |less the| express|
|000022b0| 20 77 72 69 74 74 65 6e | 20 70 65 72 6d 69 73 73 | written| permiss|
|000022c0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 63 6f 70 79 72 |ion of t|he copyr|
|000022d0| 69 67 68 74 20 68 6f 6c | 64 65 72 0a 58 69 73 20 |ight hol|der.Xis |
|000022e0| 6f 62 74 61 69 6e 65 64 | 20 69 6e 20 61 64 76 61 |obtained| in adva|
|000022f0| 6e 63 65 2e 0a 58 0a 58 | 54 68 69 73 20 63 6f 70 |nce..X.X|This cop|
|00002300| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 20 6d 75 |yright n|otice mu|
|00002310| 73 74 20 62 65 20 72 65 | 70 72 6f 64 75 63 65 64 |st be re|produced|
|00002320| 20 69 6e 20 69 74 73 20 | 65 6e 74 69 72 65 74 79 | in its |entirety|
|00002330| 20 6f 6e 20 61 6c 6c 20 | 63 6f 70 69 65 73 0a 58 | on all |copies.X|
|00002340| 6f 66 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |of this |software|
|00002350| 2e 20 20 46 75 72 74 68 | 65 72 2c 20 61 63 6b 6e |. Furth|er, ackn|
|00002360| 6f 77 6c 65 64 67 6d 65 | 6e 74 20 6f 66 20 74 68 |owledgme|nt of th|
|00002370| 65 20 61 75 74 68 6f 72 | 73 68 69 70 20 6f 66 20 |e author|ship of |
|00002380| 74 68 69 73 0a 58 73 6f | 66 74 77 61 72 65 20 6d |this.Xso|ftware m|
|00002390| 75 73 74 20 6e 6f 74 20 | 62 65 20 72 65 6d 6f 76 |ust not |be remov|
|000023a0| 65 64 20 66 72 6f 6d 20 | 69 74 73 20 63 75 72 72 |ed from |its curr|
|000023b0| 65 6e 74 20 6f 72 20 64 | 65 72 69 76 65 64 0a 58 |ent or d|erived.X|
|000023c0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 2e 0a 58 |document|ation..X|
|000023d0| 0a 58 4e 6f 20 65 78 70 | 72 65 73 73 65 64 20 6f |.XNo exp|ressed o|
|000023e0| 72 20 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e |r implie|d warran|
|000023f0| 74 79 20 69 73 20 6d 61 | 64 65 20 66 6f 72 20 74 |ty is ma|de for t|
|00002400| 68 69 73 20 73 6f 66 74 | 77 61 72 65 2e 20 20 4e |his soft|ware. N|
|00002410| 6f 20 70 61 72 74 79 0a | 58 63 6f 6e 6e 65 63 74 |o party.|Xconnect|
|00002420| 65 64 20 77 69 74 68 20 | 74 68 69 73 20 73 6f 66 |ed with |this sof|
|00002430| 74 77 61 72 65 20 61 73 | 73 75 6d 65 73 20 61 6e |tware as|sumes an|
|00002440| 79 20 6c 69 61 62 69 6c | 69 74 79 20 6f 72 20 72 |y liabil|ity or r|
|00002450| 65 73 70 6f 6e 73 69 62 | 69 6c 69 74 79 0a 58 66 |esponsib|ility.Xf|
|00002460| 6f 72 20 69 74 73 20 75 | 73 65 2c 20 74 68 65 20 |or its u|se, the |
|00002470| 63 6f 72 72 65 63 74 6e | 65 73 73 20 6f 66 20 69 |correctn|ess of i|
|00002480| 74 73 20 6f 70 65 72 61 | 74 69 6f 6e 2c 20 6f 72 |ts opera|tion, or|
|00002490| 20 69 74 73 20 66 69 74 | 6e 65 73 73 20 66 6f 72 | its fit|ness for|
|000024a0| 20 61 6e 79 0a 58 70 75 | 72 70 6f 73 65 2e 0a 58 | any.Xpu|rpose..X|
|000024b0| 0a 58 41 6e 79 20 64 69 | 73 74 72 69 62 75 74 6f |.XAny di|stributo|
|000024c0| 72 20 6f 66 20 63 6f 70 | 69 65 73 20 6f 66 20 74 |r of cop|ies of t|
|000024d0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 73 68 61 |his soft|ware sha|
|000024e0| 6c 6c 20 67 72 61 6e 74 | 20 74 68 65 20 72 65 63 |ll grant| the rec|
|000024f0| 69 70 69 65 6e 74 0a 58 | 70 65 72 6d 69 73 73 69 |ipient.X|permissi|
|00002500| 6f 6e 20 66 6f 72 20 66 | 75 72 74 68 65 72 20 72 |on for f|urther r|
|00002510| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 20 61 73 |edistrib|ution as|
|00002520| 20 70 65 72 6d 69 74 74 | 65 64 20 62 79 20 74 68 | permitt|ed by th|
|00002530| 69 73 20 6e 6f 74 69 63 | 65 2e 0a 58 0a 58 50 65 |is notic|e..X.XPe|
|00002540| 72 6d 69 73 73 69 6f 6e | 20 69 73 20 68 65 72 65 |rmission| is here|
|00002550| 62 79 20 67 72 61 6e 74 | 65 64 20 74 6f 20 63 6f |by grant|ed to co|
|00002560| 70 79 2c 20 72 65 70 72 | 6f 64 75 63 65 2c 20 72 |py, repr|oduce, r|
|00002570| 65 64 69 73 74 72 69 62 | 75 74 65 20 61 6e 64 0a |edistrib|ute and.|
|00002580| 58 6f 74 68 65 72 77 69 | 73 65 20 75 73 65 20 74 |Xotherwi|se use t|
|00002590| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 61 73 20 |his soft|ware as |
|000025a0| 6c 6f 6e 67 20 61 73 20 | 74 68 65 20 63 6f 6e 64 |long as |the cond|
|000025b0| 69 74 69 6f 6e 73 20 61 | 62 6f 76 65 20 61 72 65 |itions a|bove are|
|000025c0| 0a 58 73 74 72 69 63 74 | 6c 79 20 61 64 68 65 72 |.Xstrict|ly adher|
|000025d0| 65 64 20 74 6f 2e 0a 58 | 0a 58 09 4e 4f 54 45 3a |ed to..X|.X.NOTE:|
|000025e0| 20 20 54 68 69 73 20 73 | 6f 66 74 77 61 72 65 20 | This s|oftware |
|000025f0| 77 61 73 20 6f 72 69 67 | 69 6e 61 6c 6c 79 20 77 |was orig|inally w|
|00002600| 72 69 74 74 65 6e 20 62 | 79 20 44 61 6e 20 48 65 |ritten b|y Dan He|
|00002610| 6c 6c 65 72 0a 58 09 28 | 61 72 67 76 40 73 72 69 |ller.X.(|argv@sri|
|00002620| 2d 73 70 61 6d 2e 61 72 | 70 61 29 20 61 6e 64 20 |-spam.ar|pa) and |
|00002630| 65 6e 68 61 6e 63 65 64 | 20 2f 20 67 65 6e 65 72 |enhanced| / gener|
|00002640| 61 6c 69 7a 65 64 20 62 | 79 20 47 65 6f 72 67 65 |alized b|y George|
|00002650| 20 4d 2e 0a 58 09 53 69 | 70 65 20 28 72 65 62 65 | M..X.Si|pe (rebe|
|00002660| 6c 21 67 65 6f 72 67 65 | 29 20 74 6f 20 74 68 65 |l!george|) to the|
|00002670| 20 70 6f 69 6e 74 20 77 | 68 65 72 65 20 44 61 6e | point w|here Dan|
|00002680| 20 77 6f 75 6c 64 20 6e | 6f 20 6c 6f 6e 67 65 72 | would n|o longer|
|00002690| 0a 58 09 72 65 63 6f 67 | 69 6e 7a 65 20 69 74 2e |.X.recog|inze it.|
|000026a0| 20 20 4e 6f 20 63 6f 70 | 79 72 69 67 68 74 20 6e | No cop|yright n|
|000026b0| 6f 74 69 63 65 73 20 77 | 65 72 65 20 65 6d 62 6f |otices w|ere embo|
|000026c0| 64 69 65 64 20 69 6e 20 | 74 68 65 0a 58 09 6f 72 |died in |the.X.or|
|000026d0| 69 67 69 6e 61 6c 20 6e | 65 74 20 64 69 73 74 72 |iginal n|et distr|
|000026e0| 69 62 75 74 69 6f 6e 2e | 0a 58 2a 2f 0a 58 0a 58 |ibution.|.X*/.X.X|
|000026f0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00002700| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 63 75 |h>.X#inc|lude <cu|
|00002710| 72 73 65 73 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |rses.h>.|X#includ|
|00002720| 65 20 3c 73 69 67 6e 61 | 6c 2e 68 3e 0a 58 23 69 |e <signa|l.h>.X#i|
|00002730| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 74 79 70 65 |nclude <|sys/type|
|00002740| 73 2e 68 3e 0a 58 0a 58 | 23 69 66 6e 64 65 66 09 |s.h>.X.X|#ifndef.|
|00002750| 44 45 4c 41 59 0a 58 23 | 64 65 66 69 6e 65 09 44 |DELAY.X#|define.D|
|00002760| 45 4c 41 59 09 31 35 09 | 09 2f 2a 20 64 65 66 61 |ELAY.15.|./* defa|
|00002770| 75 6c 74 20 64 65 6c 61 | 79 2c 20 69 66 20 6e 6f |ult dela|y, if no|
|00002780| 74 20 6f 74 68 65 72 77 | 69 73 65 20 73 65 74 20 |t otherw|ise set |
|00002790| 2a 2f 0a 58 23 65 6e 64 | 69 66 09 44 45 4c 41 59 |*/.X#end|if.DELAY|
|000027a0| 0a 58 23 69 66 6e 64 65 | 66 09 42 41 53 45 4c 49 |.X#ifnde|f.BASELI|
|000027b0| 4e 45 0a 58 23 64 65 66 | 69 6e 65 09 42 41 53 45 |NE.X#def|ine.BASE|
|000027c0| 4c 49 4e 45 20 32 09 09 | 2f 2a 20 64 65 66 61 75 |LINE 2..|/* defau|
|000027d0| 6c 74 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 20 66 |lt line |number f|
|000027e0| 6f 72 20 6f 75 74 70 75 | 74 20 2a 2f 0a 58 23 65 |or outpu|t */.X#e|
|000027f0| 6e 64 69 66 09 42 41 53 | 45 4c 49 4e 45 0a 58 0a |ndif.BAS|ELINE.X.|
|00002800| 58 23 64 65 66 69 6e 65 | 20 6d 61 78 28 61 2c 62 |X#define| max(a,b|
|00002810| 29 20 09 09 28 61 20 3c | 20 62 20 3f 20 62 20 3a |) ..(a <| b ? b :|
|00002820| 20 61 29 0a 58 23 64 65 | 66 69 6e 65 20 65 71 75 | a).X#de|fine equ|
|00002830| 61 6c 28 73 74 72 31 2c | 73 74 72 32 29 09 21 73 |al(str1,|str2).!s|
|00002840| 74 72 63 6d 70 28 73 74 | 72 31 2c 20 73 74 72 32 |trcmp(st|r1, str2|
|00002850| 29 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 70 69 6e |).X.X#de|fine pin|
|00002860| 70 75 74 20 09 09 09 66 | 69 6c 64 65 73 5b 30 5d |put ...f|ildes[0]|
|00002870| 0a 58 23 64 65 66 69 6e | 65 20 70 6f 75 74 70 75 |.X#defin|e poutpu|
|00002880| 74 09 09 09 66 69 6c 64 | 65 73 5b 31 5d 0a 58 0a |t...fild|es[1].X.|
|00002890| 58 23 69 66 64 65 66 09 | 42 53 44 0a 58 23 69 6e |X#ifdef.|BSD.X#in|
|000028a0| 63 6c 75 64 65 20 3c 73 | 79 73 2f 77 61 69 74 2e |clude <s|ys/wait.|
|000028b0| 68 3e 0a 58 65 78 74 65 | 72 6e 20 63 68 61 72 20 |h>.Xexte|rn char |
|000028c0| 2a 69 6e 64 65 78 28 29 | 3b 0a 58 65 78 74 65 72 |*index()|;.Xexter|
|000028d0| 6e 20 74 69 6d 65 5f 74 | 20 74 69 6d 65 28 29 3b |n time_t| time();|
|000028e0| 0a 58 65 78 74 65 72 6e | 20 69 6e 74 20 65 78 69 |.Xextern| int exi|
|000028f0| 74 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 69 6e 74 |t();.Xex|tern int|
|00002900| 20 5f 65 78 69 74 28 29 | 3b 0a 58 65 78 74 65 72 | _exit()|;.Xexter|
|00002910| 6e 20 69 6e 74 20 70 65 | 72 72 6f 72 28 29 3b 0a |n int pe|rror();.|
|00002920| 58 65 78 74 65 72 6e 20 | 69 6e 74 20 73 6c 65 65 |Xextern |int slee|
|00002930| 70 28 29 3b 0a 58 23 65 | 6c 73 65 0a 58 75 6e 69 |p();.X#e|lse.Xuni|
|00002940| 6f 6e 20 77 61 69 74 20 | 7b 0a 58 09 69 6e 74 20 |on wait |{.X.int |
|00002950| 77 5f 73 74 61 74 75 73 | 3b 0a 58 7d 3b 0a 58 23 |w_status|;.X};.X#|
|00002960| 64 65 66 69 6e 65 09 76 | 66 6f 72 6b 28 29 09 09 |define.v|fork()..|
|00002970| 66 6f 72 6b 28 29 09 09 | 09 09 2f 2a 20 66 6f 72 |fork()..|../* for|
|00002980| 6b 20 6f 6e 20 6e 6f 6e | 2d 42 53 44 20 2a 2f 0a |k on non|-BSD */.|
|00002990| 58 23 64 65 66 69 6e 65 | 09 64 75 70 32 28 66 72 |X#define|.dup2(fr|
|000029a0| 6f 6d 2c 74 6f 29 09 63 | 6c 6f 73 65 28 74 6f 29 |om,to).c|lose(to)|
|000029b0| 3b 20 28 76 6f 69 64 29 | 20 64 75 70 28 66 72 6f |; (void)| dup(fro|
|000029c0| 6d 29 09 2f 2a 20 67 6f | 6f 64 20 65 6e 6f 75 67 |m)./* go|od enoug|
|000029d0| 68 20 68 65 72 65 20 2a | 2f 0a 58 23 64 65 66 69 |h here *|/.X#defi|
|000029e0| 6e 65 09 69 6e 64 65 78 | 28 73 74 72 2c 63 68 72 |ne.index|(str,chr|
|000029f0| 29 09 73 74 72 63 68 72 | 28 73 74 72 2c 63 68 72 |).strchr|(str,chr|
|00002a00| 29 09 09 09 2f 2a 20 73 | 74 72 63 68 72 20 6f 6e |).../* s|trchr on|
|00002a10| 20 6e 6f 6e 2d 42 53 44 | 20 2a 2f 0a 58 65 78 74 | non-BSD| */.Xext|
|00002a20| 65 72 6e 20 63 68 61 72 | 20 2a 73 74 72 63 68 72 |ern char| *strchr|
|00002a30| 28 29 3b 0a 58 65 78 74 | 65 72 6e 20 6c 6f 6e 67 |();.Xext|ern long|
|00002a40| 20 74 69 6d 65 28 29 3b | 0a 58 65 78 74 65 72 6e | time();|.Xextern|
|00002a50| 20 76 6f 69 64 20 65 78 | 69 74 28 29 3b 0a 58 65 | void ex|it();.Xe|
|00002a60| 78 74 65 72 6e 20 76 6f | 69 64 20 5f 65 78 69 74 |xtern vo|id _exit|
|00002a70| 28 29 3b 0a 58 65 78 74 | 65 72 6e 20 76 6f 69 64 |();.Xext|ern void|
|00002a80| 20 70 65 72 72 6f 72 28 | 29 3b 0a 58 65 78 74 65 | perror(|);.Xexte|
|00002a90| 72 6e 20 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 20 |rn unsig|ned int |
|00002aa0| 73 6c 65 65 70 28 29 3b | 0a 58 23 65 6e 64 69 66 |sleep();|.X#endif|
|00002ab0| 09 42 53 44 0a 58 0a 58 | 65 78 74 65 72 6e 20 69 |.BSD.X.X|extern i|
|00002ac0| 6e 74 20 6f 70 74 69 6e | 64 3b 0a 58 65 78 74 65 |nt optin|d;.Xexte|
|00002ad0| 72 6e 20 63 68 61 72 20 | 2a 6f 70 74 61 72 67 3b |rn char |*optarg;|
|00002ae0| 0a 58 0a 58 6c 6f 6e 67 | 20 77 61 69 74 5f 64 65 |.X.Xlong| wait_de|
|00002af0| 6c 61 79 20 3d 20 44 45 | 4c 41 59 3b 09 2f 2a 20 |lay = DE|LAY;./* |
|00002b00| 64 65 6c 61 79 20 69 6e | 74 65 72 76 61 6c 20 2a |delay in|terval *|
|00002b10| 2f 0a 58 69 6e 74 20 66 | 6f 72 63 65 20 3d 20 30 |/.Xint f|orce = 0|
|00002b20| 3b 09 09 09 2f 2a 20 74 | 72 75 65 20 74 6f 20 66 |;.../* t|rue to f|
|00002b30| 6f 72 63 65 20 63 6f 6e | 74 69 6e 75 65 64 20 65 |orce con|tinued e|
|00002b40| 78 65 63 75 74 69 6f 6e | 20 2a 2f 0a 58 69 6e 74 |xecution| */.Xint|
|00002b50| 20 6e 65 65 64 73 68 65 | 6c 6c 20 3d 20 30 3b 09 | needshe|ll = 0;.|
|00002b60| 09 2f 2a 20 6e 6f 6e 2d | 7a 65 72 6f 20 69 66 20 |./* non-|zero if |
|00002b70| 73 75 62 73 68 65 6c 6c | 20 6e 65 65 64 65 64 20 |subshell| needed |
|00002b80| 2a 2f 0a 58 0a 58 2f 2a | 20 63 72 65 61 74 65 20 |*/.X.X/*| create |
|00002b90| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 73 74 72 |command |line str|
|00002ba0| 69 6e 67 20 66 6f 72 20 | 64 69 73 70 6c 61 79 20 |ing for |display |
|00002bb0| 2a 2f 0a 58 73 74 61 74 | 69 63 20 63 68 61 72 20 |*/.Xstat|ic char |
|00002bc0| 2a 63 6f 6d 6d 61 6e 64 | 28 61 72 67 63 2c 20 61 |*command|(argc, a|
|00002bd0| 72 67 76 29 0a 58 69 6e | 74 20 61 72 67 63 3b 0a |rgv).Xin|t argc;.|
|00002be0| 58 63 68 61 72 20 2a 2a | 61 72 67 76 3b 0a 58 7b |Xchar **|argv;.X{|
|00002bf0| 0a 58 09 73 74 61 74 69 | 63 20 63 68 61 72 20 73 |.X.stati|c char s|
|00002c00| 74 72 69 6e 67 5b 32 35 | 35 5d 3b 0a 58 09 69 6e |tring[25|5];.X.in|
|00002c10| 74 20 63 6f 75 6e 74 20 | 3d 20 30 3b 0a 58 09 63 |t count |= 0;.X.c|
|00002c20| 68 61 72 20 2a 63 70 20 | 3d 20 73 74 72 69 6e 67 |har *cp |= string|
|00002c30| 3b 0a 58 0a 58 09 64 6f | 20 7b 0a 58 09 09 28 76 |;.X.X.do| {.X..(v|
|00002c40| 6f 69 64 29 20 73 70 72 | 69 6e 74 66 28 63 70 2c |oid) spr|intf(cp,|
|00002c50| 20 22 25 73 20 22 2c 20 | 61 72 67 76 5b 63 6f 75 | "%s ", |argv[cou|
|00002c60| 6e 74 5d 29 3b 0a 58 09 | 09 63 70 20 2b 3d 20 73 |nt]);.X.|.cp += s|
|00002c70| 74 72 6c 65 6e 28 63 70 | 29 3b 0a 58 09 09 6e 65 |trlen(cp|);.X..ne|
|00002c80| 65 64 73 68 65 6c 6c 20 | 7c 3d 20 28 69 6e 74 29 |edshell ||= (int)|
|00002c90| 20 69 6e 64 65 78 28 61 | 72 67 76 5b 63 6f 75 6e | index(a|rgv[coun|
|00002ca0| 74 5d 2c 20 27 7c 27 29 | 3b 0a 58 09 09 6e 65 65 |t], '|')|;.X..nee|
|00002cb0| 64 73 68 65 6c 6c 20 7c | 3d 20 28 69 6e 74 29 20 |dshell ||= (int) |
|00002cc0| 69 6e 64 65 78 28 61 72 | 67 76 5b 63 6f 75 6e 74 |index(ar|gv[count|
|00002cd0| 5d 2c 20 27 3b 27 29 3b | 0a 58 09 7d 20 77 68 69 |], ';');|.X.} whi|
|00002ce0| 6c 65 20 28 2b 2b 63 6f | 75 6e 74 20 3c 20 61 72 |le (++co|unt < ar|
|00002cf0| 67 63 29 3b 0a 58 09 2a | 2d 2d 63 70 20 3d 20 27 |gc);.X.*|--cp = '|
|00002d00| 5c 30 30 30 27 3b 0a 58 | 09 72 65 74 75 72 6e 20 |\000';.X|.return |
|00002d10| 28 73 74 72 69 6e 67 29 | 3b 0a 58 7d 0a 58 0a 58 |(string)|;.X}.X.X|
|00002d20| 2f 2a 20 61 6c 6c 20 64 | 6f 6e 65 2c 20 63 6c 65 |/* all d|one, cle|
|00002d30| 61 6e 75 70 20 61 6e 64 | 20 65 78 69 74 20 2a 2f |anup and| exit */|
|00002d40| 0a 58 73 74 61 74 69 63 | 20 69 6e 74 20 74 65 72 |.Xstatic| int ter|
|00002d50| 6d 69 6e 61 74 65 28 63 | 61 75 73 65 29 0a 58 7b |minate(c|ause).X{|
|00002d60| 0a 58 23 69 66 64 65 66 | 09 42 53 44 0a 58 09 28 |.X#ifdef|.BSD.X.(|
|00002d70| 76 6f 69 64 29 20 73 69 | 67 73 65 74 6d 61 73 6b |void) si|gsetmask|
|00002d80| 28 2d 31 29 3b 0a 58 23 | 65 6e 64 69 66 0a 58 09 |(-1);.X#|endif.X.|
|00002d90| 6d 6f 76 65 28 4c 49 4e | 45 53 20 2d 20 31 2c 20 |move(LIN|ES - 1, |
|00002da0| 30 29 3b 0a 58 09 63 6c | 72 74 6f 65 6f 6c 28 29 |0);.X.cl|rtoeol()|
|00002db0| 3b 0a 58 09 65 63 68 6f | 28 29 3b 0a 58 09 72 65 |;.X.echo|();.X.re|
|00002dc0| 66 72 65 73 68 28 29 3b | 0a 58 09 65 6e 64 77 69 |fresh();|.X.endwi|
|00002dd0| 6e 28 29 3b 0a 58 09 65 | 78 69 74 28 63 61 75 73 |n();.X.e|xit(caus|
|00002de0| 65 29 3b 0a 58 7d 0a 58 | 0a 58 69 6e 74 20 6d 61 |e);.X}.X|.Xint ma|
|00002df0| 69 6e 28 61 72 67 63 2c | 20 61 72 67 76 29 0a 58 |in(argc,| argv).X|
|00002e00| 69 6e 74 20 61 72 67 63 | 3b 0a 58 63 68 61 72 20 |int argc|;.Xchar |
|00002e10| 2a 2a 61 72 67 76 3b 0a | 58 7b 0a 58 09 72 65 67 |**argv;.|X{.X.reg|
|00002e20| 69 73 74 65 72 20 69 6e | 74 20 63 75 72 6c 69 6e |ister in|t curlin|
|00002e30| 65 3b 0a 58 09 72 65 67 | 69 73 74 65 72 20 69 6e |e;.X.reg|ister in|
|00002e40| 74 20 69 74 65 72 61 74 | 69 6f 6e 20 3d 20 30 3b |t iterat|ion = 0;|
|00002e50| 0a 58 09 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |.X.regis|ter int |
|00002e60| 63 3b 0a 58 09 69 6e 74 | 20 73 77 3b 0a 58 09 69 |c;.X.int| sw;.X.i|
|00002e70| 6e 74 20 62 61 64 73 77 | 20 3d 20 30 3b 0a 58 09 |nt badsw| = 0;.X.|
|00002e80| 69 6e 74 20 62 61 73 65 | 6c 69 6e 65 20 3d 20 42 |int base|line = B|
|00002e90| 41 53 45 4c 49 4e 45 3b | 0a 58 09 6c 6f 6e 67 20 |ASELINE;|.X.long |
|00002ea0| 6e 65 78 74 63 79 63 6c | 65 3b 0a 58 09 6c 6f 6e |nextcycl|e;.X.lon|
|00002eb0| 67 20 63 75 72 74 69 6d | 65 3b 0a 58 09 6c 6f 6e |g curtim|e;.X.lon|
|00002ec0| 67 20 64 65 6c 74 61 3b | 0a 58 09 69 6e 74 20 66 |g delta;|.X.int f|
|00002ed0| 69 6c 64 65 73 5b 32 5d | 3b 0a 58 09 69 6e 74 20 |ildes[2]|;.X.int |
|00002ee0| 70 69 64 3b 0a 58 09 75 | 6e 69 6f 6e 20 77 61 69 |pid;.X.u|nion wai|
|00002ef0| 74 20 73 74 61 74 75 73 | 3b 0a 58 09 63 68 61 72 |t status|;.X.char|
|00002f00| 20 2a 63 6d 64 20 3d 20 | 61 72 67 76 5b 30 5d 3b | *cmd = |argv[0];|
|00002f10| 0a 58 09 63 68 61 72 20 | 2a 73 68 63 6d 64 5b 34 |.X.char |*shcmd[4|
|00002f20| 5d 3b 0a 58 09 46 49 4c | 45 20 2a 66 70 3b 0a 58 |];.X.FIL|E *fp;.X|
|00002f30| 0a 58 09 28 76 6f 69 64 | 29 20 73 69 67 6e 61 6c |.X.(void|) signal|
|00002f40| 28 53 49 47 51 55 49 54 | 2c 20 74 65 72 6d 69 6e |(SIGQUIT|, termin|
|00002f50| 61 74 65 29 3b 09 2f 2a | 20 65 78 69 74 20 77 68 |ate);./*| exit wh|
|00002f60| 65 6e 20 72 65 71 75 65 | 73 74 65 64 20 2a 2f 0a |en reque|sted */.|
|00002f70| 58 09 28 76 6f 69 64 29 | 20 73 69 67 6e 61 6c 28 |X.(void)| signal(|
|00002f80| 53 49 47 49 4e 54 2c 20 | 74 65 72 6d 69 6e 61 74 |SIGINT, |terminat|
|00002f90| 65 29 3b 09 2f 2a 20 65 | 78 69 74 20 77 68 65 6e |e);./* e|xit when|
|00002fa0| 20 72 65 71 75 65 73 74 | 65 64 20 2a 2f 0a 58 09 | request|ed */.X.|
|00002fb0| 28 76 6f 69 64 29 20 73 | 69 67 6e 61 6c 28 53 49 |(void) s|ignal(SI|
|00002fc0| 47 50 49 50 45 2c 20 53 | 49 47 5f 49 47 4e 29 3b |GPIPE, S|IG_IGN);|
|00002fd0| 09 2f 2a 20 77 68 65 6e | 20 6f 75 74 70 75 74 20 |./* when| output |
|00002fe0| 3e 20 73 63 72 65 65 6e | 20 73 69 7a 65 20 2a 2f |> screen| size */|
|00002ff0| 0a 58 0a 58 09 77 68 69 | 6c 65 20 28 28 73 77 20 |.X.X.whi|le ((sw |
|00003000| 3d 20 67 65 74 6f 70 74 | 20 28 61 72 67 63 2c 20 |= getopt| (argc, |
|00003010| 61 72 67 76 2c 20 22 64 | 3a 66 22 29 29 20 21 3d |argv, "d|:f")) !=|
|00003020| 20 45 4f 46 29 0a 58 09 | 09 73 77 69 74 63 68 20 | EOF).X.|.switch |
|00003030| 28 73 77 29 20 7b 0a 58 | 09 09 09 63 61 73 65 20 |(sw) {.X|...case |
|00003040| 27 66 27 3a 0a 58 09 09 | 09 09 66 6f 72 63 65 20 |'f':.X..|..force |
|00003050| 3d 20 21 66 6f 72 63 65 | 3b 0a 58 09 09 09 09 62 |= !force|;.X....b|
|00003060| 72 65 61 6b 3b 0a 58 09 | 09 09 63 61 73 65 20 27 |reak;.X.|..case '|
|00003070| 64 27 3a 0a 58 09 09 09 | 09 77 61 69 74 5f 64 65 |d':.X...|.wait_de|
|00003080| 6c 61 79 20 3d 20 61 74 | 6f 69 28 6f 70 74 61 72 |lay = at|oi(optar|
|00003090| 67 29 3b 0a 58 09 09 09 | 09 69 66 20 28 77 61 69 |g);.X...|.if (wai|
|000030a0| 74 5f 64 65 6c 61 79 20 | 3c 20 31 29 20 77 61 69 |t_delay |< 1) wai|
|000030b0| 74 5f 64 65 6c 61 79 20 | 3d 20 31 3b 0a 58 09 09 |t_delay |= 1;.X..|
|000030c0| 09 09 62 72 65 61 6b 3b | 0a 58 09 09 09 63 61 73 |..break;|.X...cas|
|000030d0| 65 20 27 3f 27 3a 0a 58 | 09 09 09 64 65 66 61 75 |e '?':.X|...defau|
|000030e0| 6c 74 3a 0a 58 09 09 09 | 09 62 61 64 73 77 20 3d |lt:.X...|.badsw =|
|000030f0| 20 31 3b 0a 58 09 09 09 | 09 62 72 65 61 6b 3b 0a | 1;.X...|.break;.|
|00003100| 58 09 09 7d 0a 58 09 61 | 72 67 76 20 3d 20 26 61 |X..}.X.a|rgv = &a|
|00003110| 72 67 76 5b 6f 70 74 69 | 6e 64 5d 3b 0a 58 09 61 |rgv[opti|nd];.X.a|
|00003120| 72 67 63 20 2d 3d 20 6f | 70 74 69 6e 64 3b 0a 58 |rgc -= o|ptind;.X|
|00003130| 09 69 66 20 28 62 61 64 | 73 77 20 7c 7c 20 61 72 |.if (bad|sw || ar|
|00003140| 67 63 20 3c 20 31 29 20 | 7b 0a 58 09 09 28 76 6f |gc < 1) |{.X..(vo|
|00003150| 69 64 29 20 66 70 72 69 | 6e 74 66 28 73 74 64 65 |id) fpri|ntf(stde|
|00003160| 72 72 2c 0a 58 09 09 09 | 22 55 73 61 67 65 3a 20 |rr,.X...|"Usage: |
|00003170| 25 73 20 5b 2d 64 20 64 | 65 6c 61 79 5d 20 5b 2d |%s [-d d|elay] [-|
|00003180| 66 5d 20 63 6f 6d 6d 61 | 6e 64 20 5b 61 72 67 73 |f] comma|nd [args|
|00003190| 5d 5c 6e 22 2c 20 63 6d | 64 29 3b 0a 58 09 09 65 |]\n", cm|d);.X..e|
|000031a0| 78 69 74 20 28 2d 31 29 | 3b 0a 58 09 7d 0a 58 09 |xit (-1)|;.X.}.X.|
|000031b0| 69 6e 69 74 73 63 72 28 | 29 3b 0a 58 09 63 6d 64 |initscr(|);.X.cmd|
|000031c0| 20 3d 20 63 6f 6d 6d 61 | 6e 64 28 61 72 67 63 2c | = comma|nd(argc,|
|000031d0| 20 61 72 67 76 29 3b 0a | 58 09 69 66 20 28 6e 65 | argv);.|X.if (ne|
|000031e0| 65 64 73 68 65 6c 6c 20 | 21 3d 20 30 29 20 7b 0a |edshell |!= 0) {.|
|000031f0| 58 09 09 73 68 63 6d 64 | 5b 30 5d 20 3d 20 22 73 |X..shcmd|[0] = "s|
|00003200| 68 22 3b 0a 58 09 09 73 | 68 63 6d 64 5b 31 5d 20 |h";.X..s|hcmd[1] |
|00003210| 3d 20 22 2d 63 22 3b 0a | 58 09 09 73 68 63 6d 64 |= "-c";.|X..shcmd|
|00003220| 5b 32 5d 20 3d 20 63 6d | 64 3b 0a 58 09 09 73 68 |[2] = cm|d;.X..sh|
|00003230| 63 6d 64 5b 33 5d 20 3d | 20 28 63 68 61 72 20 2a |cmd[3] =| (char *|
|00003240| 29 20 30 3b 0a 58 09 7d | 0a 58 09 69 66 20 28 77 |) 0;.X.}|.X.if (w|
|00003250| 61 69 74 5f 64 65 6c 61 | 79 20 21 3d 20 44 45 4c |ait_dela|y != DEL|
|00003260| 41 59 29 20 7b 0a 58 09 | 09 69 66 20 28 73 74 72 |AY) {.X.|.if (str|
|00003270| 6c 65 6e 28 63 6d 64 29 | 20 3e 20 43 4f 4c 53 2d |len(cmd)| > COLS-|
|00003280| 33 39 29 0a 58 09 09 09 | 28 76 6f 69 64 29 20 73 |39).X...|(void) s|
|00003290| 70 72 69 6e 74 66 28 63 | 6d 64 2c 20 22 25 2e 2a |printf(c|md, "%.*|
|000032a0| 73 2e 2e 2e 22 2c 20 43 | 4f 4c 53 2d 34 32 2c 20 |s...", C|OLS-42, |
|000032b0| 63 6d 64 29 3b 0a 58 09 | 09 6d 76 70 72 69 6e 74 |cmd);.X.|.mvprint|
|000032c0| 77 28 30 2c 20 6d 61 78 | 28 28 43 4f 4c 53 2d 31 |w(0, max|((COLS-1|
|000032d0| 31 29 2f 32 2c 20 73 74 | 72 6c 65 6e 28 63 6d 64 |1)/2, st|rlen(cmd|
|000032e0| 29 2b 31 35 29 2c 20 22 | 44 65 6c 61 79 3a 20 20 |)+15), "|Delay: |
|000032f0| 25 64 22 2c 0a 58 09 09 | 09 77 61 69 74 5f 64 65 |%d",.X..|.wait_de|
|00003300| 6c 61 79 29 3b 0a 58 09 | 7d 20 65 6c 73 65 20 69 |lay);.X.|} else i|
|00003310| 66 20 28 73 74 72 6c 65 | 6e 28 63 6d 64 29 20 3e |f (strle|n(cmd) >|
|00003320| 20 43 4f 4c 53 2d 32 31 | 29 0a 58 09 09 28 76 6f | COLS-21|).X..(vo|
|00003330| 69 64 29 20 73 70 72 69 | 6e 74 66 28 63 6d 64 2c |id) spri|ntf(cmd,|
|00003340| 20 22 25 2e 2a 73 2e 2e | 2e 22 2c 20 43 4f 4c 53 | "%.*s..|.", COLS|
|00003350| 2d 32 34 2c 20 63 6d 64 | 29 3b 0a 58 09 6d 76 70 |-24, cmd|);.X.mvp|
|00003360| 72 69 6e 74 77 28 30 2c | 20 30 2c 20 22 43 6f 6d |rintw(0,| 0, "Com|
|00003370| 6d 61 6e 64 3a 20 20 25 | 73 22 2c 20 63 6d 64 29 |mand: %|s", cmd)|
|00003380| 3b 0a 58 09 6e 6f 65 63 | 68 6f 28 29 3b 09 09 09 |;.X.noec|ho();...|
|00003390| 2f 2a 20 64 6f 6e 27 74 | 20 6c 65 74 20 74 79 70 |/* don't| let typ|
|000033a0| 69 6e 67 20 72 75 69 6e | 20 6f 75 72 20 70 61 69 |ing ruin| our pai|
|000033b0| 6e 74 69 6e 67 20 2a 2f | 0a 58 09 6e 65 78 74 63 |nting */|.X.nextc|
|000033c0| 79 63 6c 65 20 3d 20 74 | 69 6d 65 28 30 29 20 2b |ycle = t|ime(0) +|
|000033d0| 20 77 61 69 74 5f 64 65 | 6c 61 79 3b 0a 58 09 77 | wait_de|lay;.X.w|
|000033e0| 68 69 6c 65 20 28 31 29 | 20 7b 0a 58 09 09 6d 76 |hile (1)| {.X..mv|
|000033f0| 70 72 69 6e 74 77 28 30 | 2c 20 43 4f 4c 53 20 2d |printw(0|, COLS -|
|00003400| 20 31 30 2c 20 22 45 78 | 65 63 3a 20 20 25 64 22 | 10, "Ex|ec: %d"|
|00003410| 2c 20 2b 2b 69 74 65 72 | 61 74 69 6f 6e 29 3b 0a |, ++iter|ation);.|
|00003420| 58 09 09 69 66 20 28 69 | 74 65 72 61 74 69 6f 6e |X..if (i|teration|
|00003430| 20 3d 3d 20 31 29 20 72 | 65 66 72 65 73 68 28 29 | == 1) r|efresh()|
|00003440| 3b 0a 58 09 09 28 76 6f | 69 64 29 20 70 69 70 65 |;.X..(vo|id) pipe|
|00003450| 28 66 69 6c 64 65 73 29 | 3b 0a 58 09 09 2f 2a 20 |(fildes)|;.X../* |
|00003460| 66 6f 72 6b 20 61 6e 64 | 20 65 78 65 63 20 72 65 |fork and| exec re|
|00003470| 64 69 72 65 63 74 69 6e | 67 20 73 74 64 6f 75 74 |directin|g stdout|
|00003480| 20 74 68 72 75 20 70 69 | 70 65 20 74 6f 20 63 75 | thru pi|pe to cu|
|00003490| 72 73 65 73 20 2a 2f 0a | 58 09 09 69 66 20 28 21 |rses */.|X..if (!|
|000034a0| 28 70 69 64 20 3d 20 76 | 66 6f 72 6b 28 29 29 29 |(pid = v|fork()))|
|000034b0| 20 7b 0a 58 09 09 09 28 | 76 6f 69 64 29 20 64 75 | {.X...(|void) du|
|000034c0| 70 32 28 70 6f 75 74 70 | 75 74 2c 20 31 29 3b 0a |p2(poutp|ut, 1);.|
|000034d0| 58 09 09 09 28 76 6f 69 | 64 29 20 64 75 70 32 28 |X...(voi|d) dup2(|
|000034e0| 70 6f 75 74 70 75 74 2c | 20 32 29 3b 0a 58 09 09 |poutput,| 2);.X..|
|000034f0| 09 28 76 6f 69 64 29 20 | 63 6c 6f 73 65 28 70 69 |.(void) |close(pi|
|00003500| 6e 70 75 74 29 3b 0a 58 | 09 09 09 69 66 20 28 6e |nput);.X|...if (n|
|00003510| 65 65 64 73 68 65 6c 6c | 20 3d 3d 20 30 29 20 28 |eedshell| == 0) (|
|00003520| 76 6f 69 64 29 20 65 78 | 65 63 76 70 28 2a 61 72 |void) ex|ecvp(*ar|
|00003530| 67 76 2c 20 61 72 67 76 | 29 3b 0a 58 09 09 09 65 |gv, argv|);.X...e|
|00003540| 6c 73 65 20 28 76 6f 69 | 64 29 20 65 78 65 63 76 |lse (voi|d) execv|
|00003550| 28 22 2f 62 69 6e 2f 73 | 68 22 2c 20 73 68 63 6d |("/bin/s|h", shcm|
|00003560| 64 29 3b 0a 58 09 09 09 | 70 65 72 72 6f 72 28 2a |d);.X...|perror(*|
|00003570| 61 72 67 76 29 3b 0a 58 | 09 09 09 5f 65 78 69 74 |argv);.X|..._exit|
|00003580| 28 2d 31 29 3b 0a 58 09 | 09 7d 0a 58 09 09 69 66 |(-1);.X.|.}.X..if|
|00003590| 20 28 70 69 64 20 3d 3d | 20 2d 31 29 20 74 65 72 | (pid ==| -1) ter|
|000035a0| 6d 69 6e 61 74 65 28 2d | 32 29 3b 0a 58 09 09 69 |minate(-|2);.X..i|
|000035b0| 66 20 28 21 28 66 70 20 | 3d 20 66 64 6f 70 65 6e |f (!(fp |= fdopen|
|000035c0| 28 70 69 6e 70 75 74 2c | 20 22 72 22 29 29 29 20 |(pinput,| "r"))) |
|000035d0| 74 65 72 6d 69 6e 61 74 | 65 28 2d 33 29 3b 0a 58 |terminat|e(-3);.X|
|000035e0| 09 09 28 76 6f 69 64 29 | 20 63 6c 6f 73 65 28 70 |..(void)| close(p|
|000035f0| 6f 75 74 70 75 74 29 3b | 0a 58 09 09 63 75 72 6c |output);|.X..curl|
|00003600| 69 6e 65 20 3d 20 62 61 | 73 65 6c 69 6e 65 3b 0a |ine = ba|seline;.|
|00003610| 58 09 09 6d 6f 76 65 28 | 63 75 72 6c 69 6e 65 2c |X..move(|curline,|
|00003620| 20 30 29 3b 0a 58 09 09 | 2f 2a 20 72 65 61 64 20 | 0);.X..|/* read |
|00003630| 74 68 65 20 63 6f 6d 6d | 61 6e 64 27 73 20 6f 75 |the comm|and's ou|
|00003640| 74 70 75 74 20 2a 2f 0a | 58 09 09 77 68 69 6c 65 |tput */.|X..while|
|00003650| 20 28 28 63 20 3d 20 67 | 65 74 63 28 66 70 29 29 | ((c = g|etc(fp))|
|00003660| 20 21 3d 20 45 4f 46 20 | 26 26 20 21 66 65 72 72 | != EOF |&& !ferr|
|00003670| 6f 72 28 66 70 29 20 26 | 26 20 63 75 72 6c 69 6e |or(fp) &|& curlin|
|00003680| 65 20 3c 20 4c 49 4e 45 | 53 29 0a 58 09 09 09 09 |e < LINE|S).X....|
|00003690| 69 66 20 28 63 20 3d 3d | 20 27 5c 6e 27 29 20 7b |if (c ==| '\n') {|
|000036a0| 0a 58 09 09 09 09 09 63 | 6c 72 74 6f 65 6f 6c 28 |.X.....c|lrtoeol(|
|000036b0| 29 3b 0a 58 09 09 09 09 | 09 6d 6f 76 65 28 2b 2b |);.X....|.move(++|
|000036c0| 63 75 72 6c 69 6e 65 2c | 20 30 29 3b 0a 58 09 09 |curline,| 0);.X..|
|000036d0| 09 09 7d 0a 58 09 09 09 | 09 65 6c 73 65 20 61 64 |..}.X...|.else ad|
|000036e0| 64 63 68 28 63 29 3b 0a | 58 09 09 69 66 20 28 66 |dch(c);.|X..if (f|
|000036f0| 65 72 72 6f 72 28 66 70 | 29 29 20 74 65 72 6d 69 |error(fp|)) termi|
|00003700| 6e 61 74 65 28 2d 34 29 | 3b 0a 58 09 09 69 66 20 |nate(-4)|;.X..if |
|00003710| 28 62 61 73 65 6c 69 6e | 65 20 3e 20 31 20 26 26 |(baselin|e > 1 &&|
|00003720| 20 63 75 72 6c 69 6e 65 | 20 3d 3d 20 4c 49 4e 45 | curline| == LINE|
|00003730| 53 20 26 26 20 63 20 21 | 3d 20 45 4f 46 29 0a 58 |S && c !|= EOF).X|
|00003740| 09 09 09 2d 2d 62 61 73 | 65 6c 69 6e 65 3b 0a 58 |...--bas|eline;.X|
|00003750| 09 09 2f 2a 20 77 65 27 | 76 65 20 66 6f 75 6e 64 |../* we'|ve found|
|00003760| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 66 69 6c 65 | the end| of file|
|00003770| 2c 20 74 68 75 73 2c 20 | 74 68 65 20 65 6e 64 20 |, thus, |the end |
|00003780| 6f 66 20 65 78 65 63 20 | 2a 2f 0a 58 09 09 28 76 |of exec |*/.X..(v|
|00003790| 6f 69 64 29 20 66 63 6c | 6f 73 65 28 66 70 29 3b |oid) fcl|ose(fp);|
|000037a0| 0a 58 09 09 63 6c 72 74 | 6f 62 6f 74 28 29 3b 0a |.X..clrt|obot();.|
|000037b0| 58 09 09 6d 6f 76 65 28 | 4c 49 4e 45 53 20 2d 20 |X..move(|LINES - |
|000037c0| 31 2c 20 30 29 3b 0a 58 | 09 09 72 65 66 72 65 73 |1, 0);.X|..refres|
|000037d0| 68 28 29 3b 0a 58 09 09 | 28 76 6f 69 64 29 20 77 |h();.X..|(void) w|
|000037e0| 61 69 74 28 26 73 74 61 | 74 75 73 29 3b 09 2f 2a |ait(&sta|tus);./*|
|000037f0| 20 77 61 69 74 20 66 6f | 72 20 63 68 69 6c 64 20 | wait fo|r child |
|00003800| 74 6f 20 74 65 72 6d 69 | 6e 61 74 65 20 2a 2f 0a |to termi|nate */.|
|00003810| 58 09 09 2f 2a 20 69 66 | 20 63 68 69 6c 64 20 64 |X../* if| child d|
|00003820| 69 64 6e 27 74 20 74 65 | 72 6d 69 6e 61 74 65 20 |idn't te|rminate |
|00003830| 70 72 6f 70 65 72 6c 79 | 2c 20 77 5f 73 74 61 74 |properly|, w_stat|
|00003840| 75 73 20 77 69 6c 6c 20 | 21 3d 20 30 20 2a 2f 0a |us will |!= 0 */.|
|00003850| 58 09 09 69 66 20 28 73 | 74 61 74 75 73 2e 77 5f |X..if (s|tatus.w_|
|00003860| 73 74 61 74 75 73 29 20 | 7b 0a 58 09 09 09 6d 76 |status) |{.X...mv|
|00003870| 70 72 69 6e 74 77 28 30 | 2c 20 43 4f 4c 53 20 2d |printw(0|, COLS -|
|00003880| 20 31 32 2c 20 22 21 22 | 29 3b 0a 58 09 09 09 69 | 12, "!"|);.X...i|
|00003890| 66 20 28 21 66 6f 72 63 | 65 29 20 74 65 72 6d 69 |f (!forc|e) termi|
|000038a0| 6e 61 74 65 28 73 74 61 | 74 75 73 2e 77 5f 73 74 |nate(sta|tus.w_st|
|000038b0| 61 74 75 73 29 3b 0a 58 | 09 09 7d 0a 58 09 09 63 |atus);.X|..}.X..c|
|000038c0| 75 72 74 69 6d 65 20 3d | 20 74 69 6d 65 28 30 29 |urtime =| time(0)|
|000038d0| 3b 0a 58 09 09 64 65 6c | 74 61 20 3d 20 6e 65 78 |;.X..del|ta = nex|
|000038e0| 74 63 79 63 6c 65 20 2d | 20 63 75 72 74 69 6d 65 |tcycle -| curtime|
|000038f0| 3b 0a 58 09 09 69 66 20 | 28 64 65 6c 74 61 20 3e |;.X..if |(delta >|
|00003900| 20 30 29 20 7b 0a 58 09 | 09 09 6e 65 78 74 63 79 | 0) {.X.|..nextcy|
|00003910| 63 6c 65 20 3d 20 63 75 | 72 74 69 6d 65 20 2b 20 |cle = cu|rtime + |
|00003920| 64 65 6c 74 61 20 2b 20 | 77 61 69 74 5f 64 65 6c |delta + |wait_del|
|00003930| 61 79 3b 0a 58 09 09 09 | 28 76 6f 69 64 29 20 73 |ay;.X...|(void) s|
|00003940| 6c 65 65 70 28 28 75 6e | 73 69 67 6e 65 64 29 20 |leep((un|signed) |
|00003950| 64 65 6c 74 61 29 3b 0a | 58 09 09 7d 20 65 6c 73 |delta);.|X..} els|
|00003960| 65 20 6e 65 78 74 63 79 | 63 6c 65 20 3d 20 63 75 |e nextcy|cle = cu|
|00003970| 72 74 69 6d 65 20 2b 20 | 77 61 69 74 5f 64 65 6c |rtime + |wait_del|
|00003980| 61 79 3b 0a 58 09 7d 0a | 58 7d 0a 53 48 41 52 5f |ay;.X.}.|X}.SHAR_|
|00003990| 45 4f 46 0a 66 69 0a 65 | 78 69 74 20 30 0a 23 09 |EOF.fi.e|xit 0.#.|
|000039a0| 45 6e 64 20 6f 66 20 73 | 68 65 6c 6c 20 61 72 63 |End of s|hell arc|
|000039b0| 68 69 76 65 0a 2d 2d 20 | 0a 47 65 6f 72 67 65 20 |hive.-- |.George |
|000039c0| 4d 2e 20 53 69 70 65 2c | 09 09 50 68 6f 6e 65 3a |M. Sipe,|..Phone:|
|000039d0| 20 28 34 30 34 29 20 36 | 36 32 2d 31 35 33 33 0a | (404) 6|62-1533.|
|000039e0| 54 6f 6c 65 72 61 6e 74 | 20 53 79 73 74 65 6d 73 |Tolerant| Systems|
|000039f0| 2c 20 36 39 36 31 20 50 | 65 61 63 68 74 72 65 65 |, 6961 P|eachtree|
|00003a00| 20 49 6e 64 75 73 74 72 | 69 61 6c 2c 20 4e 6f 72 | Industr|ial, Nor|
|00003a10| 63 72 6f 73 73 2c 20 47 | 41 20 20 33 30 30 37 31 |cross, G|A 30071|
|00003a20| 0a 55 55 43 50 3a 20 2e | 2e 2e 21 7b 64 65 63 76 |.UUCP: .|..!{decv|
|00003a30| 61 78 2c 68 70 6c 61 62 | 73 2c 6c 69 6e 75 73 2c |ax,hplab|s,linus,|
|00003a40| 72 75 74 67 65 72 73 2c | 73 65 69 73 6d 6f 7d 21 |rutgers,|seismo}!|
|00003a50| 67 61 74 65 63 68 21 72 | 65 62 65 6c 21 67 65 6f |gatech!r|ebel!geo|
|00003a60| 72 67 65 0a | |rge. | |
+--------+-------------------------+-------------------------+--------+--------+