home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: vis
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 64 65 63 | 77 72 6c 21 6c 61 62 72 |From dec|wrl!labr|
|00000010| 65 61 21 72 75 74 67 65 | 72 73 21 74 75 74 2e 63 |ea!rutge|rs!tut.c|
|00000020| 69 73 2e 6f 68 69 6f 2d | 73 74 61 74 65 2e 65 64 |is.ohio-|state.ed|
|00000030| 75 21 63 77 6a 63 63 21 | 68 61 6c 21 6e 63 6f 61 |u!cwjcc!|hal!ncoa|
|00000040| 73 74 21 61 6c 6c 62 65 | 72 79 20 54 75 65 20 4f |st!allbe|ry Tue O|
|00000050| 63 74 20 31 31 20 31 37 | 3a 35 34 3a 34 35 20 50 |ct 11 17|:54:45 P|
|00000060| 44 54 20 31 39 38 38 0a | 41 72 74 69 63 6c 65 20 |DT 1988.|Article |
|00000070| 36 36 32 20 6f 66 20 63 | 6f 6d 70 2e 73 6f 75 72 |662 of c|omp.sour|
|00000080| 63 65 73 2e 6d 69 73 63 | 3a 0a 50 61 74 68 3a 20 |ces.misc|:.Path: |
|00000090| 67 72 61 6e 69 74 65 21 | 64 65 63 77 72 6c 21 6c |granite!|decwrl!l|
|000000a0| 61 62 72 65 61 21 72 75 | 74 67 65 72 73 21 74 75 |abrea!ru|tgers!tu|
|000000b0| 74 2e 63 69 73 2e 6f 68 | 69 6f 2d 73 74 61 74 65 |t.cis.oh|io-state|
|000000c0| 2e 65 64 75 21 63 77 6a | 63 63 21 68 61 6c 21 6e |.edu!cwj|cc!hal!n|
|000000d0| 63 6f 61 73 74 21 61 6c | 6c 62 65 72 79 0a 46 72 |coast!al|lbery.Fr|
|000000e0| 6f 6d 3a 20 67 65 6f 72 | 67 65 40 72 65 62 65 6c |om: geor|ge@rebel|
|000000f0| 2e 55 55 43 50 20 28 47 | 65 6f 72 67 65 20 4d 2e |.UUCP (G|eorge M.|
|00000100| 20 53 69 70 65 29 0a 4e | 65 77 73 67 72 6f 75 70 | Sipe).N|ewsgroup|
|00000110| 73 3a 20 63 6f 6d 70 2e | 73 6f 75 72 63 65 73 2e |s: comp.|sources.|
|00000120| 6d 69 73 63 0a 53 75 62 | 6a 65 63 74 3a 20 76 30 |misc.Sub|ject: v0|
|00000130| 34 69 31 32 30 3a 20 6d | 61 6b 65 20 61 6e 79 20 |4i120: m|ake any |
|00000140| 63 6f 6d 6d 61 6e 64 20 | 73 63 72 65 65 6e 20 6f |command |screen o|
|00000150| 72 69 65 6e 74 65 64 0a | 4d 65 73 73 61 67 65 2d |riented.|Message-|
|00000160| 49 44 3a 20 3c 34 38 33 | 34 33 40 72 65 62 65 6c |ID: <483|43@rebel|
|00000170| 2e 55 55 43 50 3e 0a 44 | 61 74 65 3a 20 31 31 20 |.UUCP>.D|ate: 11 |
|00000180| 4f 63 74 20 38 38 20 30 | 32 3a 32 30 3a 33 38 20 |Oct 88 0|2:20:38 |
|00000190| 47 4d 54 0a 53 65 6e 64 | 65 72 3a 20 61 6c 6c 62 |GMT.Send|er: allb|
|000001a0| 65 72 79 40 6e 63 6f 61 | 73 74 2e 55 55 43 50 0a |ery@ncoa|st.UUCP.|
|000001b0| 52 65 70 6c 79 2d 54 6f | 3a 20 67 65 6f 72 67 65 |Reply-To|: george|
|000001c0| 40 72 65 62 65 6c 2e 55 | 55 43 50 20 28 47 65 6f |@rebel.U|UCP (Geo|
|000001d0| 72 67 65 20 4d 2e 20 53 | 69 70 65 29 0a 4f 72 67 |rge M. S|ipe).Org|
|000001e0| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 54 6f 6c 65 72 |anizatio|n: Toler|
|000001f0| 61 6e 74 20 53 79 73 74 | 65 6d 73 2c 20 41 74 6c |ant Syst|ems, Atl|
|00000200| 61 6e 74 61 20 47 41 0a | 4c 69 6e 65 73 3a 20 35 |anta GA.|Lines: 5|
|00000210| 30 30 0a 41 70 70 72 6f | 76 65 64 3a 20 61 6c 6c |00.Appro|ved: all|
|00000220| 62 65 72 79 40 6e 63 6f | 61 73 74 2e 55 55 43 50 |bery@nco|ast.UUCP|
|00000230| 0a 0a 50 6f 73 74 69 6e | 67 2d 6e 75 6d 62 65 72 |..Postin|g-number|
|00000240| 3a 20 56 6f 6c 75 6d 65 | 20 34 2c 20 49 73 73 75 |: Volume| 4, Issu|
|00000250| 65 20 31 32 30 0a 53 75 | 62 6d 69 74 74 65 64 2d |e 120.Su|bmitted-|
|00000260| 62 79 3a 20 22 47 65 6f | 72 67 65 20 4d 2e 20 53 |by: "Geo|rge M. S|
|00000270| 69 70 65 22 20 3c 67 65 | 6f 72 67 65 40 72 65 62 |ipe" <ge|orge@reb|
|00000280| 65 6c 2e 55 55 43 50 3e | 0a 41 72 63 68 69 76 65 |el.UUCP>|.Archive|
|00000290| 2d 6e 61 6d 65 3a 20 76 | 69 73 0a 0a 23 21 20 2f |-name: v|is..#! /|
|000002a0| 62 69 6e 2f 73 68 0a 23 | 20 54 68 69 73 20 69 73 |bin/sh.#| This is|
|000002b0| 20 61 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 | a shell| archive|
|000002c0| 2c 20 6d 65 61 6e 69 6e | 67 3a 0a 23 20 31 2e 20 |, meanin|g:.# 1. |
|000002d0| 52 65 6d 6f 76 65 20 65 | 76 65 72 79 74 68 69 6e |Remove e|verythin|
|000002e0| 67 20 61 62 6f 76 65 20 | 74 68 65 20 23 21 20 2f |g above |the #! /|
|000002f0| 62 69 6e 2f 73 68 20 6c | 69 6e 65 2e 0a 23 20 32 |bin/sh l|ine..# 2|
|00000300| 2e 20 53 61 76 65 20 74 | 68 65 20 72 65 73 75 6c |. Save t|he resul|
|00000310| 74 69 6e 67 20 74 65 78 | 74 20 69 6e 20 61 20 66 |ting tex|t in a f|
|00000320| 69 6c 65 2e 0a 23 20 33 | 2e 20 45 78 65 63 75 74 |ile..# 3|. Execut|
|00000330| 65 20 74 68 65 20 66 69 | 6c 65 20 77 69 74 68 20 |e the fi|le with |
|00000340| 2f 62 69 6e 2f 73 68 20 | 28 6e 6f 74 20 63 73 68 |/bin/sh |(not csh|
|00000350| 29 20 74 6f 20 63 72 65 | 61 74 65 3a 0a 23 09 52 |) to cre|ate:.#.R|
|00000360| 45 41 44 4d 45 0a 23 09 | 4d 61 6b 65 66 69 6c 65 |EADME.#.|Makefile|
|00000370| 0a 23 09 76 69 73 2e 6d | 61 6e 0a 23 09 76 69 73 |.#.vis.m|an.#.vis|
|00000380| 2e 63 0a 23 20 54 68 69 | 73 20 61 72 63 68 69 76 |.c.# Thi|s archiv|
|00000390| 65 20 63 72 65 61 74 65 | 64 3a 20 46 72 69 20 4a |e create|d: Fri J|
|000003a0| 75 6c 20 32 32 20 31 34 | 3a 33 37 3a 32 35 20 31 |ul 22 14|:37:25 1|
|000003b0| 39 38 38 0a 65 78 70 6f | 72 74 20 50 41 54 48 3b |988.expo|rt PATH;|
|000003c0| 20 50 41 54 48 3d 2f 62 | 69 6e 3a 2f 75 73 72 2f | PATH=/b|in:/usr/|
|000003d0| 62 69 6e 3a 24 50 41 54 | 48 0a 69 66 20 74 65 73 |bin:$PAT|H.if tes|
|000003e0| 74 20 2d 66 20 27 52 45 | 41 44 4d 45 27 0a 74 68 |t -f 'RE|ADME'.th|
|000003f0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|00000400| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00000410| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00000420| 65 20 27 52 45 41 44 4d | 45 27 22 0a 65 6c 73 65 |e 'READM|E'".else|
|00000430| 0a 73 65 64 20 27 73 2f | 5e 58 2f 2f 27 20 3c 3c |.sed 's/|^X//' <<|
|00000440| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 52 45 | \SHAR_E|OF > 'RE|
|00000450| 41 44 4d 45 27 0a 58 56 | 69 73 20 72 65 70 65 61 |ADME'.XV|is repea|
|00000460| 74 65 64 6c 79 20 65 78 | 65 63 75 74 65 73 20 61 |tedly ex|ecutes a|
|00000470| 20 73 70 65 63 69 66 69 | 65 64 20 63 6f 6d 6d 61 | specifi|ed comma|
|00000480| 6e 64 20 61 6e 64 20 72 | 65 66 72 65 73 68 65 73 |nd and r|efreshes|
|00000490| 20 74 68 65 20 64 69 73 | 70 6c 61 79 0a 58 6f 66 | the dis|play.Xof|
|000004a0| 20 69 74 73 20 6f 75 74 | 70 75 74 20 6f 6e 20 74 | its out|put on t|
|000004b0| 68 65 20 73 63 72 65 65 | 6e 2e 20 20 54 68 69 73 |he scree|n. This|
|000004c0| 20 68 61 73 20 74 68 65 | 20 65 66 66 65 63 74 20 | has the| effect |
|000004d0| 6f 66 20 6d 61 6b 69 6e | 67 20 61 6e 79 0a 58 6e |of makin|g any.Xn|
|000004e0| 6f 72 6d 61 6c 6c 79 20 | 6e 6f 6e 2d 73 63 72 65 |ormally |non-scre|
|000004f0| 65 6e 20 6f 72 69 65 6e | 74 65 64 20 63 6f 6d 6d |en orien|ted comm|
|00000500| 61 6e 64 20 69 6e 74 6f | 20 61 20 73 63 72 65 65 |and into| a scree|
|00000510| 6e 20 6f 72 69 65 6e 74 | 65 64 20 6f 6e 65 2e 0a |n orient|ed one..|
|00000520| 58 0a 58 54 68 65 20 66 | 69 72 73 74 20 6c 69 6e |X.XThe f|irst lin|
|00000530| 65 20 6f 6e 20 74 68 65 | 20 6f 75 74 70 75 74 20 |e on the| output |
|00000540| 73 63 72 65 65 6e 20 69 | 73 20 72 65 73 65 72 76 |screen i|s reserv|
|00000550| 65 64 20 66 6f 72 20 76 | 69 73 20 73 74 61 74 75 |ed for v|is statu|
|00000560| 73 20 61 6e 64 20 77 69 | 6c 6c 0a 58 63 6f 6e 74 |s and wi|ll.Xcont|
|00000570| 61 69 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |ain the |command |
|00000580| 6f 6e 20 74 68 65 20 6c | 65 66 74 20 73 69 64 65 |on the l|eft side|
|00000590| 20 77 69 74 68 20 74 68 | 65 20 63 75 72 72 65 6e | with th|e curren|
|000005a0| 74 20 65 78 65 63 75 74 | 69 6f 6e 20 63 6f 75 6e |t execut|ion coun|
|000005b0| 74 0a 58 6f 6e 20 74 68 | 65 20 72 69 67 68 74 20 |t.Xon th|e right |
|000005c0| 73 69 64 65 2e 20 20 49 | 66 20 63 6f 6d 6d 61 6e |side. I|f comman|
|000005d0| 64 20 69 73 20 74 6f 6f | 20 6c 6f 6e 67 20 74 6f |d is too| long to|
|000005e0| 20 66 69 74 2c 20 76 69 | 73 20 77 69 6c 6c 20 74 | fit, vi|s will t|
|000005f0| 72 75 6e 63 61 74 65 20 | 69 74 0a 58 69 6e 20 74 |runcate |it.Xin t|
|00000600| 68 65 20 73 74 61 74 75 | 73 20 6c 69 6e 65 20 61 |he statu|s line a|
|00000610| 6e 64 20 61 70 70 65 6e | 64 20 61 6e 20 65 6c 6c |nd appen|d an ell|
|00000620| 69 70 73 69 73 20 28 22 | 2e 2e 2e 22 29 2e 0a 58 |ipsis ("|...")..X|
|00000630| 0a 58 54 68 65 20 6f 75 | 74 70 75 74 20 6f 66 20 |.XThe ou|tput of |
|00000640| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6e 6f 72 6d |the comm|and norm|
|00000650| 61 6c 6c 79 20 62 65 67 | 69 6e 73 20 6f 6e 20 74 |ally beg|ins on t|
|00000660| 68 65 20 74 68 69 72 64 | 20 6c 69 6e 65 20 61 6e |he third| line an|
|00000670| 64 0a 58 63 6f 6e 74 69 | 6e 75 65 73 20 74 6f 20 |d.Xconti|nues to |
|00000680| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 73 |the end |of the s|
|00000690| 63 72 65 65 6e 2e 20 20 | 4c 69 6e 65 73 20 77 68 |creen. |Lines wh|
|000006a0| 69 63 68 20 63 61 6e 20 | 6e 6f 74 20 66 69 74 20 |ich can |not fit |
|000006b0| 77 69 6c 6c 20 62 65 0a | 58 64 69 73 63 61 72 64 |will be.|Xdiscard|
|000006c0| 65 64 2e 20 20 57 68 65 | 6e 20 74 68 69 73 20 6f |ed. Whe|n this o|
|000006d0| 63 63 75 72 73 2c 20 76 | 69 73 20 77 69 6c 6c 20 |ccurs, v|is will |
|000006e0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 70 6c |automati|cally pl|
|000006f0| 61 63 65 20 74 68 65 20 | 6f 75 74 70 75 74 0a 58 |ace the |output.X|
|00000700| 6f 66 20 66 6f 6c 6c 6f | 77 69 6e 67 20 70 61 73 |of follo|wing pas|
|00000710| 73 65 73 20 73 74 61 72 | 74 69 6e 67 20 6f 6e 20 |ses star|ting on |
|00000720| 6c 69 6e 65 20 74 77 6f | 20 69 6e 20 6f 72 64 65 |line two| in orde|
|00000730| 72 20 74 6f 20 6d 61 78 | 69 6d 69 7a 65 20 74 68 |r to max|imize th|
|00000740| 65 0a 58 61 6d 6f 75 6e | 74 20 6f 66 20 64 69 73 |e.Xamoun|t of dis|
|00000750| 70 6c 61 79 65 64 20 69 | 6e 66 6f 72 6d 61 74 69 |played i|nformati|
|00000760| 6f 6e 2e 0a 58 0a 58 53 | 65 65 20 74 68 65 20 6d |on..X.XS|ee the m|
|00000770| 61 6e 75 61 6c 20 70 61 | 67 65 20 66 6f 72 20 61 |anual pa|ge for a|
|00000780| 20 63 6f 6d 70 6c 65 74 | 65 20 69 6e 66 6f 72 6d | complet|e inform|
|00000790| 61 74 69 6f 6e 2e 0a 58 | 0a 58 0a 58 20 20 20 20 |ation..X|.X.X |
|000007a0| 20 43 6f 70 79 72 69 67 | 68 74 20 28 63 29 20 31 | Copyrig|ht (c) 1|
|000007b0| 39 38 38 20 62 79 20 47 | 65 6f 72 67 65 20 4d 2e |988 by G|eorge M.|
|000007c0| 20 53 69 70 65 2e 20 20 | 41 6c 6c 20 72 69 67 68 | Sipe. |All righ|
|000007d0| 74 73 20 72 65 73 65 72 | 76 65 64 2e 0a 58 0a 58 |ts reser|ved..X.X|
|000007e0| 54 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 6d 61 |This sof|tware ma|
|000007f0| 79 20 6f 6e 6c 79 20 62 | 65 20 72 65 64 69 73 74 |y only b|e redist|
|00000800| 72 69 62 75 74 65 64 20 | 77 69 74 68 6f 75 74 20 |ributed |without |
|00000810| 66 65 65 20 61 6e 64 20 | 77 69 74 68 6f 75 74 20 |fee and |without |
|00000820| 61 6e 79 0a 58 6f 74 68 | 65 72 20 66 6f 72 6d 20 |any.Xoth|er form |
|00000830| 6f 66 20 6d 6f 6e 65 74 | 61 72 79 20 67 61 69 6e |of monet|ary gain|
|00000840| 20 28 69 6e 63 6c 75 64 | 69 6e 67 20 73 6f 6c 64 | (includ|ing sold|
|00000850| 2c 20 72 65 6e 74 65 64 | 2c 20 6c 65 61 73 65 64 |, rented|, leased|
|00000860| 2c 20 6f 72 0a 58 74 72 | 61 64 65 64 29 2c 20 75 |, or.Xtr|aded), u|
|00000870| 6e 6c 65 73 73 20 74 68 | 65 20 65 78 70 72 65 73 |nless th|e expres|
|00000880| 73 20 77 72 69 74 74 65 | 6e 20 70 65 72 6d 69 73 |s writte|n permis|
|00000890| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 63 6f 70 79 |sion of |the copy|
|000008a0| 72 69 67 68 74 20 68 6f | 6c 64 65 72 0a 58 69 73 |right ho|lder.Xis|
|000008b0| 20 6f 62 74 61 69 6e 65 | 64 20 69 6e 20 61 64 76 | obtaine|d in adv|
|000008c0| 61 6e 63 65 2e 0a 58 0a | 58 54 68 69 73 20 63 6f |ance..X.|XThis co|
|000008d0| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 20 6d |pyright |notice m|
|000008e0| 75 73 74 20 62 65 20 72 | 65 70 72 6f 64 75 63 65 |ust be r|eproduce|
|000008f0| 64 20 69 6e 20 69 74 73 | 20 65 6e 74 69 72 65 74 |d in its| entiret|
|00000900| 79 20 6f 6e 20 61 6c 6c | 20 63 6f 70 69 65 73 0a |y on all| copies.|
|00000910| 58 6f 66 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 |Xof this| softwar|
|00000920| 65 2e 20 20 46 75 72 74 | 68 65 72 2c 20 61 63 6b |e. Furt|her, ack|
|00000930| 6e 6f 77 6c 65 64 67 6d | 65 6e 74 20 6f 66 20 74 |nowledgm|ent of t|
|00000940| 68 65 20 61 75 74 68 6f | 72 73 68 69 70 20 6f 66 |he autho|rship of|
|00000950| 20 74 68 69 73 0a 58 73 | 6f 66 74 77 61 72 65 20 | this.Xs|oftware |
|00000960| 6d 75 73 74 20 6e 6f 74 | 20 62 65 20 72 65 6d 6f |must not| be remo|
|00000970| 76 65 64 20 66 72 6f 6d | 20 69 74 73 20 63 75 72 |ved from| its cur|
|00000980| 72 65 6e 74 20 6f 72 20 | 64 65 72 69 76 65 64 0a |rent or |derived.|
|00000990| 58 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 2e 0a |Xdocumen|tation..|
|000009a0| 58 0a 58 4e 6f 20 65 78 | 70 72 65 73 73 65 64 20 |X.XNo ex|pressed |
|000009b0| 6f 72 20 69 6d 70 6c 69 | 65 64 20 77 61 72 72 61 |or impli|ed warra|
|000009c0| 6e 74 79 20 69 73 20 6d | 61 64 65 20 66 6f 72 20 |nty is m|ade for |
|000009d0| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 2e 20 20 |this sof|tware. |
|000009e0| 4e 6f 20 70 61 72 74 79 | 0a 58 63 6f 6e 6e 65 63 |No party|.Xconnec|
|000009f0| 74 65 64 20 77 69 74 68 | 20 74 68 69 73 20 73 6f |ted with| this so|
|00000a00| 66 74 77 61 72 65 20 61 | 73 73 75 6d 65 73 20 61 |ftware a|ssumes a|
|00000a10| 6e 79 20 6c 69 61 62 69 | 6c 69 74 79 20 6f 72 20 |ny liabi|lity or |
|00000a20| 72 65 73 70 6f 6e 73 69 | 62 69 6c 69 74 79 0a 58 |responsi|bility.X|
|00000a30| 66 6f 72 20 69 74 73 20 | 75 73 65 2c 20 74 68 65 |for its |use, the|
|00000a40| 20 63 6f 72 72 65 63 74 | 6e 65 73 73 20 6f 66 20 | correct|ness of |
|00000a50| 69 74 73 20 6f 70 65 72 | 61 74 69 6f 6e 2c 20 6f |its oper|ation, o|
|00000a60| 72 20 69 74 73 20 66 69 | 74 6e 65 73 73 20 66 6f |r its fi|tness fo|
|00000a70| 72 20 61 6e 79 0a 58 70 | 75 72 70 6f 73 65 2e 0a |r any.Xp|urpose..|
|00000a80| 58 0a 58 41 6e 79 20 64 | 69 73 74 72 69 62 75 74 |X.XAny d|istribut|
|00000a90| 6f 72 20 6f 66 20 63 6f | 70 69 65 73 20 6f 66 20 |or of co|pies of |
|00000aa0| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 73 68 |this sof|tware sh|
|00000ab0| 61 6c 6c 20 67 72 61 6e | 74 20 74 68 65 20 72 65 |all gran|t the re|
|00000ac0| 63 69 70 69 65 6e 74 0a | 58 70 65 72 6d 69 73 73 |cipient.|Xpermiss|
|00000ad0| 69 6f 6e 20 66 6f 72 20 | 66 75 72 74 68 65 72 20 |ion for |further |
|00000ae0| 72 65 64 69 73 74 72 69 | 62 75 74 69 6f 6e 20 61 |redistri|bution a|
|00000af0| 73 20 70 65 72 6d 69 74 | 74 65 64 20 62 79 20 74 |s permit|ted by t|
|00000b00| 68 69 73 20 6e 6f 74 69 | 63 65 2e 0a 58 0a 58 50 |his noti|ce..X.XP|
|00000b10| 65 72 6d 69 73 73 69 6f | 6e 20 69 73 20 68 65 72 |ermissio|n is her|
|00000b20| 65 62 79 20 67 72 61 6e | 74 65 64 20 74 6f 20 63 |eby gran|ted to c|
|00000b30| 6f 70 79 2c 20 72 65 70 | 72 6f 64 75 63 65 2c 20 |opy, rep|roduce, |
|00000b40| 72 65 64 69 73 74 72 69 | 62 75 74 65 20 61 6e 64 |redistri|bute and|
|00000b50| 0a 58 6f 74 68 65 72 77 | 69 73 65 20 75 73 65 20 |.Xotherw|ise use |
|00000b60| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 61 73 |this sof|tware as|
|00000b70| 20 6c 6f 6e 67 20 61 73 | 20 74 68 65 20 63 6f 6e | long as| the con|
|00000b80| 64 69 74 69 6f 6e 73 20 | 61 62 6f 76 65 20 61 72 |ditions |above ar|
|00000b90| 65 0a 58 73 74 72 69 63 | 74 6c 79 20 61 64 68 65 |e.Xstric|tly adhe|
|00000ba0| 72 65 64 20 74 6f 2e 0a | 58 0a 58 4e 4f 54 45 3a |red to..|X.XNOTE:|
|00000bb0| 09 54 68 69 73 20 73 6f | 66 74 77 61 72 65 20 77 |.This so|ftware w|
|00000bc0| 61 73 20 6f 72 69 67 69 | 6e 61 6c 6c 79 20 77 72 |as origi|nally wr|
|00000bd0| 69 74 74 65 6e 20 62 79 | 20 44 61 6e 20 48 65 6c |itten by| Dan Hel|
|00000be0| 6c 65 72 0a 58 09 28 61 | 72 67 76 40 73 72 69 2d |ler.X.(a|rgv@sri-|
|00000bf0| 73 70 61 6d 2e 61 72 70 | 61 29 20 61 6e 64 20 65 |spam.arp|a) and e|
|00000c00| 6e 68 61 6e 63 65 64 20 | 2f 20 67 65 6e 65 72 61 |nhanced |/ genera|
|00000c10| 6c 69 7a 65 64 20 62 79 | 0a 58 09 47 65 6f 72 67 |lized by|.X.Georg|
|00000c20| 65 20 4d 2e 20 20 53 69 | 70 65 20 28 72 65 62 65 |e M. Si|pe (rebe|
|00000c30| 6c 21 67 65 6f 72 67 65 | 29 20 74 6f 20 74 68 65 |l!george|) to the|
|00000c40| 20 70 6f 69 6e 74 20 77 | 68 65 72 65 20 44 61 6e | point w|here Dan|
|00000c50| 0a 58 09 77 6f 75 6c 64 | 20 6e 6f 20 6c 6f 6e 67 |.X.would| no long|
|00000c60| 65 72 20 72 65 63 6f 67 | 69 6e 7a 65 20 69 74 2e |er recog|inze it.|
|00000c70| 20 20 4e 6f 20 63 6f 70 | 79 72 69 67 68 74 20 6e | No cop|yright n|
|00000c80| 6f 74 69 63 65 73 0a 58 | 09 77 65 72 65 20 65 6d |otices.X|.were em|
|00000c90| 62 6f 64 69 65 64 20 69 | 6e 20 74 68 65 20 6f 72 |bodied i|n the or|
|00000ca0| 69 67 69 6e 61 6c 20 6e | 65 74 20 64 69 73 74 72 |iginal n|et distr|
|00000cb0| 69 62 75 74 69 6f 6e 2e | 0a 53 48 41 52 5f 45 4f |ibution.|.SHAR_EO|
|00000cc0| 46 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |F.fi.if |test -f |
|00000cd0| 27 4d 61 6b 65 66 69 6c | 65 27 0a 74 68 65 6e 0a |'Makefil|e'.then.|
|00000ce0| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00000cf0| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00000d00| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00000d10| 4d 61 6b 65 66 69 6c 65 | 27 22 0a 65 6c 73 65 0a |Makefile|'".else.|
|00000d20| 73 65 64 20 27 73 2f 5e | 58 2f 2f 27 20 3c 3c 20 |sed 's/^|X//' << |
|00000d30| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 4d 61 6b |\SHAR_EO|F > 'Mak|
|00000d40| 65 66 69 6c 65 27 0a 58 | 23 20 4d 61 6b 65 66 69 |efile'.X|# Makefi|
|00000d50| 6c 65 20 66 6f 72 3a 20 | 20 76 69 73 20 2d 20 72 |le for: | vis - r|
|00000d60| 65 70 65 61 74 65 64 6c | 79 20 72 75 6e 20 63 6f |epeatedl|y run co|
|00000d70| 6d 6d 61 6e 64 2c 20 72 | 65 66 72 65 73 68 69 6e |mmand, r|efreshin|
|00000d80| 67 20 73 63 72 65 65 6e | 0a 58 0a 58 44 45 46 49 |g screen|.X.XDEFI|
|00000d90| 4e 45 53 09 09 3d 20 2d | 44 42 53 44 0a 58 43 46 |NES..= -|DBSD.XCF|
|00000da0| 4c 41 47 53 09 09 3d 20 | 2d 4f 20 24 28 44 45 46 |LAGS..= |-O $(DEF|
|00000db0| 49 4e 45 53 29 0a 58 4c | 49 42 53 09 09 3d 20 2d |INES).XL|IBS..= -|
|00000dc0| 6c 63 75 72 73 65 73 20 | 2d 6c 74 65 72 6d 63 61 |lcurses |-ltermca|
|00000dd0| 70 0a 58 52 4f 46 46 09 | 09 3d 20 6e 72 6f 66 66 |p.XROFF.|.= nroff|
|00000de0| 0a 58 52 46 4c 41 47 53 | 09 09 3d 20 2d 6d 61 6e |.XRFLAGS|..= -man|
|00000df0| 0a 58 4c 44 46 4c 41 47 | 53 09 09 3d 20 2d 73 0a |.XLDFLAG|S..= -s.|
|00000e00| 58 44 45 53 54 42 49 4e | 09 09 3d 20 24 7b 48 4f |XDESTBIN|..= ${HO|
|00000e10| 4d 45 7d 0a 58 44 45 53 | 54 4d 41 4e 09 09 3d 20 |ME}.XDES|TMAN..= |
|00000e20| 24 7b 48 4f 4d 45 7d 0a | 58 44 45 53 54 43 41 54 |${HOME}.|XDESTCAT|
|00000e30| 09 09 3d 20 24 7b 48 4f | 4d 45 7d 0a 58 44 45 53 |..= ${HO|ME}.XDES|
|00000e40| 54 4f 57 4e 09 09 3d 20 | 72 6f 6f 74 0a 58 44 45 |TOWN..= |root.XDE|
|00000e50| 53 54 47 52 50 09 09 3d | 20 73 74 61 66 66 0a 58 |STGRP..=| staff.X|
|00000e60| 53 48 45 4c 4c 09 09 3d | 20 2f 62 69 6e 2f 73 68 |SHELL..=| /bin/sh|
|00000e70| 0a 58 4d 41 4b 45 46 49 | 4c 45 09 3d 20 4d 61 6b |.XMAKEFI|LE.= Mak|
|00000e80| 65 66 69 6c 65 0a 58 50 | 52 4f 47 52 41 4d 09 09 |efile.XP|ROGRAM..|
|00000e90| 3d 20 76 69 73 0a 58 4d | 41 4e 50 41 47 45 53 09 |= vis.XM|ANPAGES.|
|00000ea0| 3d 20 76 69 73 2e 6d 61 | 6e 0a 58 43 41 54 50 41 |= vis.ma|n.XCATPA|
|00000eb0| 47 45 53 09 3d 20 76 69 | 73 2e 63 61 74 0a 58 53 |GES.= vi|s.cat.XS|
|00000ec0| 52 43 53 09 09 3d 20 76 | 69 73 2e 63 0a 58 4f 42 |RCS..= v|is.c.XOB|
|00000ed0| 4a 53 09 09 3d 20 76 69 | 73 2e 6f 0a 58 0a 58 2e |JS..= vi|s.o.X.X.|
|00000ee0| 6d 61 6e 2e 63 61 74 3a | 0a 58 09 09 24 28 52 4f |man.cat:|.X..$(RO|
|00000ef0| 46 46 29 20 24 28 52 46 | 4c 41 47 53 29 20 24 3c |FF) $(RF|LAGS) $<|
|00000f00| 20 3e 20 24 40 0a 58 0a | 58 2e 53 55 46 46 49 58 | > $@.X.|X.SUFFIX|
|00000f10| 45 53 3a 09 2e 6d 61 6e | 20 2e 63 61 74 0a 58 0a |ES:..man| .cat.X.|
|00000f20| 58 23 20 43 6f 6d 70 69 | 6c 65 20 61 6e 64 20 6c |X# Compi|le and l|
|00000f30| 6f 61 64 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |oad the |program |
|00000f40| 61 6e 64 20 66 6f 72 6d | 61 74 20 69 74 73 20 6d |and form|at its m|
|00000f50| 61 6e 75 61 6c 20 70 61 | 67 65 73 2e 0a 58 61 6c |anual pa|ges..Xal|
|00000f60| 6c 3a 09 09 24 28 50 52 | 4f 47 52 41 4d 29 20 24 |l:..$(PR|OGRAM) $|
|00000f70| 28 43 41 54 50 41 47 45 | 53 29 0a 58 0a 58 24 28 |(CATPAGE|S).X.X$(|
|00000f80| 50 52 4f 47 52 41 4d 29 | 3a 09 24 28 4f 42 4a 53 |PROGRAM)|:.$(OBJS|
|00000f90| 29 0a 58 09 09 24 28 43 | 43 29 20 24 28 4c 44 46 |).X..$(C|C) $(LDF|
|00000fa0| 4c 41 47 53 29 20 24 28 | 4f 42 4a 53 29 20 24 28 |LAGS) $(|OBJS) $(|
|00000fb0| 4c 49 42 53 29 20 2d 6f | 20 24 28 50 52 4f 47 52 |LIBS) -o| $(PROGR|
|00000fc0| 41 4d 29 0a 58 0a 58 23 | 20 52 75 6e 20 6c 69 6e |AM).X.X#| Run lin|
|00000fd0| 74 20 6f 6e 20 73 6f 75 | 72 63 65 20 66 69 6c 65 |t on sou|rce file|
|00000fe0| 73 2c 20 70 75 74 20 72 | 65 73 75 6c 74 73 20 6f |s, put r|esults o|
|00000ff0| 6e 20 73 74 61 6e 64 61 | 72 64 20 6f 75 74 70 75 |n standa|rd outpu|
|00001000| 74 2e 0a 58 6c 69 6e 74 | 3a 0a 58 09 09 6c 69 6e |t..Xlint|:.X..lin|
|00001010| 74 20 2d 75 20 24 28 44 | 45 46 49 4e 45 53 29 20 |t -u $(D|EFINES) |
|00001020| 24 28 53 52 43 53 29 0a | 58 0a 58 23 20 43 72 65 |$(SRCS).|X.X# Cre|
|00001030| 61 74 65 20 61 20 74 61 | 67 73 20 66 69 6c 65 20 |ate a ta|gs file |
|00001040| 66 6f 72 20 75 73 65 20 | 62 79 20 61 20 73 6f 75 |for use |by a sou|
|00001050| 72 63 65 20 63 6f 64 65 | 20 65 64 69 74 6f 72 2e |rce code| editor.|
|00001060| 0a 58 74 61 67 73 3a 09 | 09 24 28 53 52 43 53 29 |.Xtags:.|.$(SRCS)|
|00001070| 0a 58 09 09 63 74 61 67 | 73 20 24 28 53 52 43 53 |.X..ctag|s $(SRCS|
|00001080| 29 0a 58 0a 58 23 20 45 | 64 69 74 20 74 68 65 20 |).X.X# E|dit the |
|00001090| 6d 61 6b 65 66 69 6c 65 | 20 61 6e 64 20 72 65 67 |makefile| and reg|
|000010a0| 65 6e 65 72 61 74 65 20 | 74 68 65 20 64 65 70 65 |enerate |the depe|
|000010b0| 6e 64 65 6e 63 79 20 69 | 6e 66 6f 72 6d 61 74 69 |ndency i|nformati|
|000010c0| 6f 6e 2e 0a 58 64 65 70 | 65 6e 64 3a 0a 58 09 09 |on..Xdep|end:.X..|
|000010d0| 6d 6b 6d 66 20 2d 66 20 | 24 28 4d 41 4b 45 46 49 |mkmf -f |$(MAKEFI|
|000010e0| 4c 45 29 20 50 52 4f 47 | 52 41 4d 3d 24 28 50 52 |LE) PROG|RAM=$(PR|
|000010f0| 4f 47 52 41 4d 29 20 44 | 45 53 54 42 49 4e 3d 24 |OGRAM) D|ESTBIN=$|
|00001100| 28 44 45 53 54 42 49 4e | 29 0a 58 0a 58 23 20 50 |(DESTBIN|).X.X# P|
|00001110| 72 69 6e 74 20 61 6e 20 | 69 6e 64 65 78 20 6f 66 |rint an |index of|
|00001120| 20 66 75 6e 63 74 69 6f | 6e 73 20 6f 6e 20 73 74 | functio|ns on st|
|00001130| 61 6e 64 61 72 64 20 6f | 75 74 70 75 74 2e 0a 58 |andard o|utput..X|
|00001140| 69 6e 64 65 78 3a 0a 58 | 09 09 63 74 61 67 73 20 |index:.X|..ctags |
|00001150| 2d 77 78 20 24 28 53 52 | 43 53 29 0a 58 0a 58 23 |-wx $(SR|CS).X.X#|
|00001160| 20 50 72 69 6e 74 20 73 | 6f 75 72 63 65 20 63 6f | Print s|ource co|
|00001170| 64 65 20 66 69 6c 65 73 | 20 6f 6e 20 73 74 61 6e |de files| on stan|
|00001180| 64 61 72 64 20 6f 75 74 | 70 75 74 2e 0a 58 70 72 |dard out|put..Xpr|
|00001190| 69 6e 74 3a 0a 58 09 09 | 6c 70 72 20 2d 70 20 24 |int:.X..|lpr -p $|
|000011a0| 28 53 52 43 53 29 20 24 | 28 4d 41 4e 50 41 47 45 |(SRCS) $|(MANPAGE|
|000011b0| 53 29 0a 58 0a 58 23 20 | 43 6f 6d 70 69 6c 65 20 |S).X.X# |Compile |
|000011c0| 61 6e 64 20 6c 6f 61 64 | 20 74 68 65 20 70 72 6f |and load| the pro|
|000011d0| 67 72 61 6d 2c 20 66 6f | 72 6d 61 74 20 6d 61 6e |gram, fo|rmat man|
|000011e0| 75 61 6c 20 70 61 67 65 | 73 2c 20 61 6e 64 20 6d |ual page|s, and m|
|000011f0| 6f 76 65 20 74 68 65 6d | 0a 58 23 20 74 6f 20 74 |ove them|.X# to t|
|00001200| 68 65 69 72 20 64 65 73 | 74 69 6e 61 74 69 6f 6e |heir des|tination|
|00001210| 20 64 69 72 65 63 74 6f | 72 69 65 73 2e 0a 58 69 | directo|ries..Xi|
|00001220| 6e 73 74 61 6c 6c 3a 09 | 24 28 50 52 4f 47 52 41 |nstall:.|$(PROGRA|
|00001230| 4d 29 20 24 28 43 41 54 | 50 41 47 45 53 29 0a 58 |M) $(CAT|PAGES).X|
|00001240| 09 09 63 70 20 24 28 50 | 52 4f 47 52 41 4d 29 20 |..cp $(P|ROGRAM) |
|00001250| 24 28 44 45 53 54 42 49 | 4e 29 0a 58 09 09 63 68 |$(DESTBI|N).X..ch|
|00001260| 6d 6f 64 20 37 35 35 20 | 24 28 44 45 53 54 42 49 |mod 755 |$(DESTBI|
|00001270| 4e 29 2f 24 28 50 52 4f | 47 52 41 4d 29 0a 58 09 |N)/$(PRO|GRAM).X.|
|00001280| 09 63 68 6f 77 6e 20 24 | 28 44 45 53 54 4f 57 4e |.chown $|(DESTOWN|
|00001290| 29 20 24 28 44 45 53 54 | 42 49 4e 29 2f 24 28 50 |) $(DEST|BIN)/$(P|
|000012a0| 52 4f 47 52 41 4d 29 0a | 58 09 09 63 68 67 72 70 |ROGRAM).|X..chgrp|
|000012b0| 20 24 28 44 45 53 54 47 | 52 50 29 20 24 28 44 45 | $(DESTG|RP) $(DE|
|000012c0| 53 54 42 49 4e 29 2f 24 | 28 50 52 4f 47 52 41 4d |STBIN)/$|(PROGRAM|
|000012d0| 29 0a 58 09 09 2d 66 6f | 72 20 6d 61 6e 70 61 67 |).X..-fo|r manpag|
|000012e0| 65 20 69 6e 20 24 28 4d | 41 4e 50 41 47 45 53 29 |e in $(M|ANPAGES)|
|000012f0| 3b 20 64 6f 20 5c 0a 58 | 09 09 09 62 61 73 65 70 |; do \.X|...basep|
|00001300| 61 67 65 3d 60 62 61 73 | 65 6e 61 6d 65 20 24 24 |age=`bas|ename $$|
|00001310| 6d 61 6e 70 61 67 65 20 | 2e 6d 61 6e 60 3b 20 5c |manpage |.man`; \|
|00001320| 0a 58 09 09 09 63 70 20 | 24 24 62 61 73 65 70 61 |.X...cp |$$basepa|
|00001330| 67 65 2e 6d 61 6e 20 24 | 28 44 45 53 54 4d 41 4e |ge.man $|(DESTMAN|
|00001340| 29 2f 24 24 62 61 73 65 | 70 61 67 65 2e 6c 3b 20 |)/$$base|page.l; |
|00001350| 5c 0a 58 09 09 09 63 68 | 6d 6f 64 20 36 34 34 20 |\.X...ch|mod 644 |
|00001360| 24 28 44 45 53 54 4d 41 | 4e 29 2f 24 24 62 61 73 |$(DESTMA|N)/$$bas|
|00001370| 65 70 61 67 65 2e 6c 3b | 20 5c 0a 58 09 09 09 63 |epage.l;| \.X...c|
|00001380| 68 6f 77 6e 20 24 28 44 | 45 53 54 4f 57 4e 29 20 |hown $(D|ESTOWN) |
|00001390| 24 28 44 45 53 54 4d 41 | 4e 29 2f 24 24 62 61 73 |$(DESTMA|N)/$$bas|
|000013a0| 65 70 61 67 65 2e 6c 3b | 20 5c 0a 58 09 09 09 63 |epage.l;| \.X...c|
|000013b0| 68 67 72 70 20 24 28 44 | 45 53 54 47 52 50 29 20 |hgrp $(D|ESTGRP) |
|000013c0| 24 28 44 45 53 54 4d 41 | 4e 29 2f 24 24 62 61 73 |$(DESTMA|N)/$$bas|
|000013d0| 65 70 61 67 65 2e 6c 3b | 20 5c 0a 58 09 09 09 63 |epage.l;| \.X...c|
|000013e0| 70 20 24 24 62 61 73 65 | 70 61 67 65 2e 63 61 74 |p $$base|page.cat|
|000013f0| 20 24 28 44 45 53 54 43 | 41 54 29 2f 24 24 62 61 | $(DESTC|AT)/$$ba|
|00001400| 73 65 70 61 67 65 2e 6c | 3b 20 5c 0a 58 09 09 09 |sepage.l|; \.X...|
|00001410| 63 68 6d 6f 64 20 36 34 | 34 20 24 28 44 45 53 54 |chmod 64|4 $(DEST|
|00001420| 43 41 54 29 2f 24 24 62 | 61 73 65 70 61 67 65 2e |CAT)/$$b|asepage.|
|00001430| 6c 3b 20 5c 0a 58 09 09 | 09 63 68 6f 77 6e 20 24 |l; \.X..|.chown $|
|00001440| 28 44 45 53 54 4f 57 4e | 29 20 24 28 44 45 53 54 |(DESTOWN|) $(DEST|
|00001450| 43 41 54 29 2f 24 24 62 | 61 73 65 70 61 67 65 2e |CAT)/$$b|asepage.|
|00001460| 6c 3b 20 5c 0a 58 09 09 | 09 63 68 67 72 70 20 24 |l; \.X..|.chgrp $|
|00001470| 28 44 45 53 54 47 52 50 | 29 20 24 28 44 45 53 54 |(DESTGRP|) $(DEST|
|00001480| 43 41 54 29 2f 24 24 62 | 61 73 65 70 61 67 65 2e |CAT)/$$b|asepage.|
|00001490| 6c 3b 20 5c 0a 58 09 09 | 64 6f 6e 65 0a 58 0a 58 |l; \.X..|done.X.X|
|000014a0| 23 20 52 65 6d 6f 76 65 | 20 74 68 65 20 70 72 6f |# Remove| the pro|
|000014b0| 67 72 61 6d 20 61 6e 64 | 20 69 74 73 20 66 6f 72 |gram and| its for|
|000014c0| 6d 61 74 74 65 64 20 6d | 61 6e 75 61 6c 20 70 61 |matted m|anual pa|
|000014d0| 67 65 73 20 66 72 6f 6d | 20 74 68 65 69 72 0a 58 |ges from| their.X|
|000014e0| 23 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 64 69 |# destin|ation di|
|000014f0| 72 65 63 74 6f 72 69 65 | 73 2e 0a 58 75 6e 69 6e |rectorie|s..Xunin|
|00001500| 73 74 61 6c 6c 3a 0a 58 | 09 09 72 6d 20 2d 66 20 |stall:.X|..rm -f |
|00001510| 24 28 44 45 53 54 42 49 | 4e 29 2f 24 28 50 52 4f |$(DESTBI|N)/$(PRO|
|00001520| 47 52 41 4d 29 0a 58 09 | 09 2d 66 6f 72 20 6d 61 |GRAM).X.|.-for ma|
|00001530| 6e 70 61 67 65 20 69 6e | 20 24 28 4d 41 4e 50 41 |npage in| $(MANPA|
|00001540| 47 45 53 29 3b 20 64 6f | 20 5c 0a 58 09 09 09 62 |GES); do| \.X...b|
|00001550| 61 73 65 70 61 67 65 3d | 60 62 61 73 65 6e 61 6d |asepage=|`basenam|
|00001560| 65 20 24 24 6d 61 6e 70 | 61 67 65 20 2e 6d 61 6e |e $$manp|age .man|
|00001570| 60 3b 20 5c 0a 58 09 09 | 09 72 6d 20 2d 66 20 24 |`; \.X..|.rm -f $|
|00001580| 28 44 45 53 54 4d 41 4e | 29 2f 24 24 62 61 73 65 |(DESTMAN|)/$$base|
|00001590| 70 61 67 65 2e 6c 3b 20 | 5c 0a 58 09 09 09 72 6d |page.l; |\.X...rm|
|000015a0| 20 2d 66 20 24 28 44 45 | 53 54 43 41 54 29 2f 24 | -f $(DE|STCAT)/$|
|000015b0| 24 62 61 73 65 70 61 67 | 65 2e 6c 3b 20 5c 0a 58 |$basepag|e.l; \.X|
|000015c0| 09 09 64 6f 6e 65 0a 58 | 0a 58 23 20 52 65 6d 6f |..done.X|.X# Remo|
|000015d0| 76 65 20 61 6c 6c 20 74 | 61 72 67 65 74 20 61 6e |ve all t|arget an|
|000015e0| 64 20 69 6e 74 65 72 6d | 65 64 69 61 74 65 20 66 |d interm|ediate f|
|000015f0| 69 6c 65 73 2e 0a 58 63 | 6c 65 61 6e 3a 0a 58 09 |iles..Xc|lean:.X.|
|00001600| 09 2d 72 6d 20 2d 66 20 | 24 28 50 52 4f 47 52 41 |.-rm -f |$(PROGRA|
|00001610| 4d 29 20 24 28 43 41 54 | 50 41 47 45 53 29 20 24 |M) $(CAT|PAGES) $|
|00001620| 28 4f 42 4a 53 29 0a 58 | 09 09 2d 72 6d 20 2d 66 |(OBJS).X|..-rm -f|
|00001630| 20 63 6f 72 65 20 61 2e | 6f 75 74 20 6d 61 64 65 | core a.|out made|
|00001640| 20 2a 2e 6f 0a 53 48 41 | 52 5f 45 4f 46 0a 66 69 | *.o.SHA|R_EOF.fi|
|00001650| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 76 69 73 |.if test| -f 'vis|
|00001660| 2e 6d 61 6e 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |.man'.th|en..echo|
|00001670| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00001680| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00001690| 74 69 6e 67 20 66 69 6c | 65 20 27 76 69 73 2e 6d |ting fil|e 'vis.m|
|000016a0| 61 6e 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |an'".els|e.sed 's|
|000016b0| 2f 5e 58 2f 2f 27 20 3c | 3c 20 5c 53 48 41 52 5f |/^X//' <|< \SHAR_|
|000016c0| 45 4f 46 20 3e 20 27 76 | 69 73 2e 6d 61 6e 27 0a |EOF > 'v|is.man'.|
|000016d0| 58 2e 54 48 20 56 49 53 | 20 6c 20 22 32 31 20 4a |X.TH VIS| l "21 J|
|000016e0| 75 6c 79 20 31 39 38 38 | 22 0a 58 2e 53 48 20 4e |uly 1988|".X.SH N|
|000016f0| 41 4d 45 0a 58 76 69 73 | 20 5c 2d 20 72 65 70 65 |AME.Xvis| \- repe|
|00001700| 61 74 65 64 6c 79 20 72 | 75 6e 20 63 6f 6d 6d 61 |atedly r|un comma|
|00001710| 6e 64 2c 20 72 65 66 72 | 65 73 68 69 6e 67 20 73 |nd, refr|eshing s|
|00001720| 63 72 65 65 6e 0a 58 2e | 53 48 20 53 59 4e 54 41 |creen.X.|SH SYNTA|
|00001730| 58 0a 58 2e 42 20 76 69 | 73 20 22 5b 2d 64 20 64 |X.X.B vi|s "[-d d|
|00001740| 65 6c 61 79 5d 20 5b 2d | 66 5d 20 63 6f 6d 6d 61 |elay] [-|f] comma|
|00001750| 6e 64 20 5b 61 72 67 73 | 5d 22 0a 58 2e 53 48 20 |nd [args|]".X.SH |
|00001760| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 2e 49 20 |DESCRIPT|ION.X.I |
|00001770| 56 69 73 0a 58 72 65 70 | 65 61 74 65 64 6c 79 20 |Vis.Xrep|eatedly |
|00001780| 65 78 65 63 75 74 65 73 | 20 61 20 73 70 65 63 69 |executes| a speci|
|00001790| 66 69 65 64 0a 58 2e 42 | 20 63 6f 6d 6d 61 6e 64 |fied.X.B| command|
|000017a0| 0a 58 61 6e 64 20 72 65 | 66 72 65 73 68 65 73 20 |.Xand re|freshes |
|000017b0| 74 68 65 20 64 69 73 70 | 6c 61 79 20 6f 66 20 69 |the disp|lay of i|
|000017c0| 74 73 20 6f 75 74 70 75 | 74 20 6f 6e 20 74 68 65 |ts outpu|t on the|
|000017d0| 20 73 63 72 65 65 6e 2e | 20 20 54 68 69 73 20 68 | screen.| This h|
|000017e0| 61 73 20 74 68 65 0a 58 | 65 66 66 65 63 74 20 6f |as the.X|effect o|
|000017f0| 66 20 6d 61 6b 69 6e 67 | 20 61 6e 79 20 6e 6f 72 |f making| any nor|
|00001800| 6d 61 6c 6c 79 20 6e 6f | 6e 2d 73 63 72 65 65 6e |mally no|n-screen|
|00001810| 20 6f 72 69 65 6e 74 65 | 64 20 63 6f 6d 6d 61 6e | oriente|d comman|
|00001820| 64 20 69 6e 74 6f 20 61 | 20 73 63 72 65 65 6e 0a |d into a| screen.|
|00001830| 58 6f 72 69 65 6e 74 65 | 64 20 6f 6e 65 2e 0a 58 |Xoriente|d one..X|
|00001840| 2e 50 50 0a 58 2e 42 20 | 43 6f 6d 6d 61 6e 64 0a |.PP.X.B |Command.|
|00001850| 58 6d 61 79 20 72 65 70 | 72 65 73 65 6e 74 20 6d |Xmay rep|resent m|
|00001860| 75 6c 74 69 70 6c 65 20 | 63 6f 6d 6d 61 6e 64 73 |ultiple |commands|
|00001870| 20 62 79 20 65 6e 63 6c | 6f 73 69 6e 67 20 74 68 | by encl|osing th|
|00001880| 65 6d 20 69 6e 20 71 75 | 6f 74 65 73 20 61 6e 64 |em in qu|otes and|
|00001890| 0a 58 73 65 70 61 72 61 | 74 69 6e 67 20 74 68 65 |.Xsepara|ting the|
|000018a0| 6d 20 62 79 20 60 60 3b | 27 27 2e 20 20 53 69 6d |m by ``;|''. Sim|
|000018b0| 69 6c 61 72 6c 79 2c 20 | 63 6f 6d 6d 61 6e 64 73 |ilarly, |commands|
|000018c0| 20 6d 61 79 20 62 65 20 | 70 69 70 65 64 20 74 6f | may be |piped to|
|000018d0| 67 65 74 68 65 72 20 62 | 79 0a 58 65 6e 63 6c 6f |gether b|y.Xenclo|
|000018e0| 73 69 6e 67 20 74 68 65 | 6d 20 69 6e 20 71 75 6f |sing the|m in quo|
|000018f0| 74 65 73 20 61 6e 64 20 | 73 65 70 61 72 61 74 69 |tes and |separati|
|00001900| 6e 67 20 74 68 65 6d 20 | 62 79 20 60 60 7c 27 27 |ng them |by ``|''|
|00001910| 2e 20 20 54 68 65 20 73 | 69 6e 67 6c 65 20 6f 72 |. The s|ingle or|
|00001920| 0a 58 64 6f 75 62 6c 65 | 20 71 75 6f 74 65 73 20 |.Xdouble| quotes |
|00001930| 61 72 6f 75 6e 64 20 73 | 75 63 68 20 61 20 63 6f |around s|uch a co|
|00001940| 6d 70 6f 75 6e 64 20 63 | 6f 6d 6d 61 6e 64 20 61 |mpound c|ommand a|
|00001950| 72 65 20 6e 65 63 65 73 | 73 61 72 79 20 74 6f 20 |re neces|sary to |
|00001960| 65 73 63 61 70 65 0a 58 | 70 72 6f 63 65 73 73 69 |escape.X|processi|
|00001970| 6e 67 20 66 72 6f 6d 20 | 74 68 65 20 73 68 65 6c |ng from |the shel|
|00001980| 6c 2e 0a 58 2e 50 50 0a | 58 54 68 65 20 66 69 72 |l..X.PP.|XThe fir|
|00001990| 73 74 20 6c 69 6e 65 20 | 6f 6e 20 74 68 65 20 6f |st line |on the o|
|000019a0| 75 74 70 75 74 20 73 63 | 72 65 65 6e 20 69 73 20 |utput sc|reen is |
|000019b0| 72 65 73 65 72 76 65 64 | 20 66 6f 72 0a 58 2e 49 |reserved| for.X.I|
|000019c0| 20 76 69 73 0a 58 73 74 | 61 74 75 73 20 61 6e 64 | vis.Xst|atus and|
|000019d0| 20 77 69 6c 6c 20 63 6f | 6e 74 61 69 6e 20 74 68 | will co|ntain th|
|000019e0| 65 0a 58 2e 42 20 63 6f | 6d 6d 61 6e 64 0a 58 6f |e.X.B co|mmand.Xo|
|000019f0| 6e 20 74 68 65 20 6c 65 | 66 74 20 73 69 64 65 20 |n the le|ft side |
|00001a00| 77 69 74 68 20 74 68 65 | 20 63 75 72 72 65 6e 74 |with the| current|
|00001a10| 20 65 78 65 63 75 74 69 | 6f 6e 20 63 6f 75 6e 74 | executi|on count|
|00001a20| 20 6f 6e 20 74 68 65 20 | 72 69 67 68 74 20 73 69 | on the |right si|
|00001a30| 64 65 2e 20 20 49 66 0a | 58 2e 42 20 63 6f 6d 6d |de. If.|X.B comm|
|00001a40| 61 6e 64 0a 58 69 73 20 | 74 6f 6f 20 6c 6f 6e 67 |and.Xis |too long|
|00001a50| 20 74 6f 20 66 69 74 2c | 0a 58 2e 49 20 76 69 73 | to fit,|.X.I vis|
|00001a60| 0a 58 77 69 6c 6c 20 74 | 72 75 6e 63 61 74 65 20 |.Xwill t|runcate |
|00001a70| 69 74 20 69 6e 20 74 68 | 65 20 73 74 61 74 75 73 |it in th|e status|
|00001a80| 20 6c 69 6e 65 20 61 6e | 64 20 61 70 70 65 6e 64 | line an|d append|
|00001a90| 20 61 6e 20 65 6c 6c 69 | 70 73 69 73 20 28 22 2e | an elli|psis (".|
|00001aa0| 2e 2e 22 29 2e 0a 58 2e | 50 50 0a 58 54 68 65 20 |..")..X.|PP.XThe |
|00001ab0| 6f 75 74 70 75 74 20 6f | 66 20 74 68 65 20 63 6f |output o|f the co|
|00001ac0| 6d 6d 61 6e 64 20 6e 6f | 72 6d 61 6c 6c 79 20 62 |mmand no|rmally b|
|00001ad0| 65 67 69 6e 73 20 6f 6e | 20 74 68 65 20 74 68 69 |egins on| the thi|
|00001ae0| 72 64 20 6c 69 6e 65 20 | 61 6e 64 0a 58 63 6f 6e |rd line |and.Xcon|
|00001af0| 74 69 6e 75 65 73 20 74 | 6f 20 74 68 65 20 65 6e |tinues t|o the en|
|00001b00| 64 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 2e |d of the| screen.|
|00001b10| 20 20 4c 69 6e 65 73 20 | 77 68 69 63 68 20 63 61 | Lines |which ca|
|00001b20| 6e 20 6e 6f 74 20 66 69 | 74 20 77 69 6c 6c 20 62 |n not fi|t will b|
|00001b30| 65 0a 58 64 69 73 63 61 | 72 64 65 64 2e 20 20 57 |e.Xdisca|rded. W|
|00001b40| 68 65 6e 20 74 68 69 73 | 20 6f 63 63 75 72 73 2c |hen this| occurs,|
|00001b50| 0a 58 2e 49 20 76 69 73 | 0a 58 77 69 6c 6c 20 61 |.X.I vis|.Xwill a|
|00001b60| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 70 6c 61 |utomatic|ally pla|
|00001b70| 63 65 20 74 68 65 20 6f | 75 74 70 75 74 20 6f 66 |ce the o|utput of|
|00001b80| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 70 61 73 73 65 | followi|ng passe|
|00001b90| 73 20 73 74 61 72 74 69 | 6e 67 20 6f 6e 20 6c 69 |s starti|ng on li|
|00001ba0| 6e 65 0a 58 74 77 6f 20 | 69 6e 20 6f 72 64 65 72 |ne.Xtwo |in order|
|00001bb0| 20 74 6f 20 6d 61 78 69 | 6d 69 7a 65 20 74 68 65 | to maxi|mize the|
|00001bc0| 20 61 6d 6f 75 6e 74 20 | 6f 66 20 64 69 73 70 6c | amount |of displ|
|00001bd0| 61 79 65 64 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ayed inf|ormation|
|00001be0| 2e 0a 58 2e 50 50 0a 58 | 54 68 65 20 66 6f 6c 6c |..X.PP.X|The foll|
|00001bf0| 6f 77 69 6e 67 20 73 77 | 69 74 63 68 65 73 20 6d |owing sw|itches m|
|00001c00| 61 79 20 62 65 20 73 70 | 65 63 69 66 69 65 64 20 |ay be sp|ecified |
|00001c10| 69 66 20 64 65 73 69 72 | 65 64 3a 0a 58 2e 54 50 |if desir|ed:.X.TP|
|00001c20| 20 31 30 0a 58 2e 42 20 | 22 2d 64 20 64 65 6c 61 | 10.X.B |"-d dela|
|00001c30| 79 22 0a 58 73 70 65 63 | 69 66 69 65 73 20 61 20 |y".Xspec|ifies a |
|00001c40| 6e 6f 6e 2d 64 65 66 61 | 75 6c 74 20 64 65 6c 61 |non-defa|ult dela|
|00001c50| 79 20 6f 66 0a 58 2e 42 | 20 64 65 6c 61 79 0a 58 |y of.X.B| delay.X|
|00001c60| 73 65 63 6f 6e 64 73 2e | 20 20 4e 6f 72 6d 61 6c |seconds.| Normal|
|00001c70| 6c 79 0a 58 2e 49 20 76 | 69 73 0a 58 77 69 6c 6c |ly.X.I v|is.Xwill|
|00001c80| 20 64 65 6c 61 79 20 66 | 6f 72 20 31 35 20 73 65 | delay f|or 15 se|
|00001c90| 63 6f 6e 64 73 20 62 65 | 74 77 65 65 6e 20 63 6f |conds be|tween co|
|00001ca0| 6d 6d 61 6e 64 20 72 65 | 2d 65 78 65 63 75 74 69 |mmand re|-executi|
|00001cb0| 6f 6e 73 2e 20 20 49 66 | 20 61 0a 58 6e 6f 6e 2d |ons. If| a.Xnon-|
|00001cc0| 64 65 66 61 75 6c 74 20 | 64 65 6c 61 79 20 69 73 |default |delay is|
|00001cd0| 20 73 70 65 63 69 66 69 | 65 64 2c 20 74 68 65 0a | specifi|ed, the.|
|00001ce0| 58 2e 49 20 76 69 73 0a | 58 73 74 61 74 75 73 20 |X.I vis.|Xstatus |
|00001cf0| 6c 69 6e 65 20 77 69 6c | 6c 20 61 6c 73 6f 20 69 |line wil|l also i|
|00001d00| 6e 63 6c 75 64 65 20 74 | 68 65 20 64 65 6c 61 79 |nclude t|he delay|
|00001d10| 20 69 6e 74 65 72 76 61 | 6c 20 63 65 6e 74 65 72 | interva|l center|
|00001d20| 65 64 20 77 69 74 68 69 | 6e 20 69 74 0a 58 28 75 |ed withi|n it.X(u|
|00001d30| 6e 6c 65 73 73 20 74 68 | 61 74 20 77 6f 75 6c 64 |nless th|at would|
|00001d40| 20 63 61 75 73 65 20 69 | 74 20 74 6f 20 6f 76 65 | cause i|t to ove|
|00001d50| 72 77 72 69 74 65 20 61 | 20 6c 6f 6e 67 20 63 6f |rwrite a| long co|
|00001d60| 6d 6d 61 6e 64 2c 20 69 | 6e 20 77 68 69 63 68 20 |mmand, i|n which |
|00001d70| 63 61 73 65 0a 58 69 74 | 20 77 69 6c 6c 20 62 65 |case.Xit| will be|
|00001d80| 20 63 65 6e 74 65 72 65 | 64 20 62 65 74 77 65 65 | centere|d betwee|
|00001d90| 6e 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |n the en|d of the|
|00001da0| 20 63 6f 6d 6d 61 6e 64 | 20 61 6e 64 20 74 68 65 | command| and the|
|00001db0| 20 65 78 65 63 75 74 69 | 6f 6e 0a 58 63 6f 75 6e | executi|on.Xcoun|
|00001dc0| 74 29 2e 0a 58 2e 54 50 | 0a 58 2e 42 20 2d 66 0a |t)..X.TP|.X.B -f.|
|00001dd0| 58 2e 49 20 56 69 73 0a | 58 77 69 6c 6c 20 61 75 |X.I Vis.|Xwill au|
|00001de0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 74 65 72 6d |tomatica|lly term|
|00001df0| 69 6e 61 74 65 20 69 66 | 0a 58 2e 42 20 63 6f 6d |inate if|.X.B com|
|00001e00| 6d 61 6e 64 0a 58 72 65 | 74 75 72 6e 73 20 61 20 |mand.Xre|turns a |
|00001e10| 6e 6f 6e 2d 7a 65 72 6f | 20 73 74 61 74 75 73 2e |non-zero| status.|
|00001e20| 20 20 54 68 65 0a 58 2e | 42 20 2d 66 0a 58 66 6c | The.X.|B -f.Xfl|
|00001e30| 61 67 20 66 6f 72 63 65 | 73 0a 58 2e 49 20 76 69 |ag force|s.X.I vi|
|00001e40| 73 0a 58 74 6f 20 63 6f | 6e 74 69 6e 75 65 2e 20 |s.Xto co|ntinue. |
|00001e50| 20 57 68 65 6e 0a 58 2e | 42 20 2d 66 0a 58 69 73 | When.X.|B -f.Xis|
|00001e60| 20 73 70 65 63 69 66 69 | 65 64 2c 0a 58 2e 49 20 | specifi|ed,.X.I |
|00001e70| 76 69 73 0a 58 77 69 6c | 6c 20 6e 6f 74 20 74 65 |vis.Xwil|l not te|
|00001e80| 72 6d 69 6e 61 74 65 20 | 61 6e 64 20 77 69 6c 6c |rminate |and will|
|00001e90| 20 69 6e 73 74 65 61 64 | 20 70 72 65 63 65 64 65 | instead| precede|
|00001ea0| 20 74 68 65 20 65 78 65 | 63 75 74 69 6f 6e 20 63 | the exe|cution c|
|00001eb0| 6f 75 6e 74 20 69 6e 20 | 74 68 65 0a 58 2e 49 20 |ount in |the.X.I |
|00001ec0| 76 69 73 0a 58 73 74 61 | 74 75 73 20 6c 69 6e 65 |vis.Xsta|tus line|
|00001ed0| 20 62 79 20 61 20 60 60 | 21 27 27 20 66 6c 61 67 | by a ``|!'' flag|
|00001ee0| 20 77 68 65 6e 65 76 65 | 72 20 61 20 6e 6f 6e 2d | wheneve|r a non-|
|00001ef0| 7a 65 72 6f 20 73 74 61 | 74 75 73 20 68 61 73 20 |zero sta|tus has |
|00001f00| 62 65 65 6e 20 72 65 74 | 75 72 6e 65 64 0a 58 62 |been ret|urned.Xb|
|00001f10| 79 0a 58 2e 42 20 63 6f | 6d 6d 61 6e 64 20 2e 0a |y.X.B co|mmand ..|
|00001f20| 58 2e 53 48 20 45 58 41 | 4d 50 4c 45 53 0a 58 76 |X.SH EXA|MPLES.Xv|
|00001f30| 69 73 20 70 73 0a 58 2e | 49 50 20 22 22 20 35 0a |is ps.X.|IP "" 5.|
|00001f40| 58 43 6f 6e 74 69 6e 75 | 61 6c 6c 79 20 64 69 73 |XContinu|ally dis|
|00001f50| 70 6c 61 79 20 74 68 65 | 20 73 74 61 74 75 73 20 |play the| status |
|00001f60| 6f 66 20 70 72 6f 63 65 | 73 73 65 73 20 6f 6e 20 |of proce|sses on |
|00001f70| 74 68 65 20 73 79 73 74 | 65 6d 20 28 75 70 20 74 |the syst|em (up t|
|00001f80| 6f 20 32 33 0a 58 6c 69 | 6e 65 73 29 2e 0a 58 2e |o 23.Xli|nes)..X.|
|00001f90| 50 50 0a 58 76 69 73 20 | 2d 64 20 36 30 20 27 77 |PP.Xvis |-d 60 'w|
|00001fa0| 68 6f 20 3b 20 65 63 68 | 6f 20 22 22 3b 20 64 66 |ho ; ech|o ""; df|
|00001fb0| 27 0a 58 2e 49 50 20 22 | 22 20 35 0a 58 44 69 73 |'.X.IP "|" 5.XDis|
|00001fc0| 70 6c 61 79 20 74 68 65 | 20 73 79 73 74 65 6d 20 |play the| system |
|00001fd0| 75 73 65 72 73 20 61 6e | 64 20 64 69 73 6b 20 75 |users an|d disk u|
|00001fe0| 73 61 67 65 20 73 74 61 | 74 69 73 74 69 63 73 20 |sage sta|tistics |
|00001ff0| 65 76 65 72 79 20 36 30 | 20 73 65 63 6f 6e 64 73 |every 60| seconds|
|00002000| 2e 0a 58 53 65 70 61 72 | 61 74 65 20 74 68 65 20 |..XSepar|ate the |
|00002010| 74 77 6f 20 77 69 74 68 | 20 61 20 62 6c 61 6e 6b |two with| a blank|
|00002020| 20 6c 69 6e 65 2e 0a 58 | 2e 53 48 20 22 53 45 45 | line..X|.SH "SEE|
|00002030| 20 41 4c 53 4f 22 0a 58 | 55 73 65 72 20 43 6f 6d | ALSO".X|User Com|
|00002040| 6d 61 6e 64 73 20 28 31 | 29 3a 20 20 73 68 2c 20 |mands (1|): sh, |
|00002050| 63 73 68 0a 58 2e 53 48 | 20 44 49 41 47 4e 4f 53 |csh.X.SH| DIAGNOS|
|00002060| 54 49 43 53 0a 58 49 66 | 0a 58 2e 42 20 63 6f 6d |TICS.XIf|.X.B com|
|00002070| 6d 61 6e 64 0a 58 72 65 | 74 75 72 6e 73 20 61 20 |mand.Xre|turns a |
|00002080| 6e 6f 6e 2d 7a 65 72 6f | 20 73 74 61 74 75 73 20 |non-zero| status |
|00002090| 61 6e 64 0a 58 2e 42 20 | 2d 66 0a 58 68 61 73 20 |and.X.B |-f.Xhas |
|000020a0| 6e 6f 74 20 62 65 65 6e | 20 73 70 65 63 69 66 69 |not been| specifi|
|000020b0| 65 64 20 74 6f 0a 58 2e | 49 20 76 69 73 20 2c 0a |ed to.X.|I vis ,.|
|000020c0| 58 2e 49 20 76 69 73 0a | 58 77 69 6c 6c 20 74 65 |X.I vis.|Xwill te|
|000020d0| 72 6d 69 6e 61 74 65 20 | 61 6e 64 20 72 65 74 75 |rminate |and retu|
|000020e0| 72 6e 20 74 68 61 74 20 | 73 74 61 74 75 73 2e 0a |rn that |status..|
|000020f0| 58 2e 53 48 20 41 55 54 | 48 4f 52 0a 58 4f 72 69 |X.SH AUT|HOR.XOri|
|00002100| 67 69 6e 61 6c 6c 79 20 | 77 72 69 74 74 65 6e 20 |ginally |written |
|00002110| 62 79 20 44 61 6e 20 48 | 65 6c 6c 65 72 20 28 61 |by Dan H|eller (a|
|00002120| 72 67 76 40 73 72 69 2d | 73 70 61 6d 2e 61 72 70 |rgv@sri-|spam.arp|
|00002130| 61 29 2e 0a 58 2e 50 50 | 0a 58 49 74 20 68 61 73 |a)..X.PP|.XIt has|
|00002140| 20 62 65 65 6e 20 73 75 | 62 73 74 61 6e 74 69 61 | been su|bstantia|
|00002150| 6c 6c 79 20 65 6e 68 61 | 6e 63 65 64 20 61 6e 64 |lly enha|nced and|
|00002160| 20 67 65 6e 65 72 61 6c | 69 7a 65 64 20 62 79 20 | general|ized by |
|00002170| 47 65 6f 72 67 65 20 4d | 2e 20 53 69 70 65 0a 58 |George M|. Sipe.X|
|00002180| 28 63 75 72 72 65 6e 74 | 6c 79 20 2d 20 37 2f 38 |(current|ly - 7/8|
|00002190| 38 2c 20 61 74 20 72 65 | 62 65 6c 21 67 65 6f 72 |8, at re|bel!geor|
|000021a0| 67 65 29 20 74 6f 20 74 | 68 65 20 70 6f 69 6e 74 |ge) to t|he point|
|000021b0| 20 77 68 65 72 65 20 44 | 61 6e 20 77 6f 75 6c 64 | where D|an would|
|000021c0| 20 6e 6f 0a 58 6c 6f 6e | 67 65 72 20 72 65 63 6f | no.Xlon|ger reco|
|000021d0| 67 6e 69 7a 65 20 69 74 | 2e 0a 53 48 41 52 5f 45 |gnize it|..SHAR_E|
|000021e0| 4f 46 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |OF.fi.if| test -f|
|000021f0| 20 27 76 69 73 2e 63 27 | 0a 74 68 65 6e 0a 09 65 | 'vis.c'|.then..e|
|00002200| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|00002210| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00002220| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 76 69 |xisting |file 'vi|
|00002230| 73 2e 63 27 22 0a 65 6c | 73 65 0a 73 65 64 20 27 |s.c'".el|se.sed '|
|00002240| 73 2f 5e 58 2f 2f 27 20 | 3c 3c 20 5c 53 48 41 52 |s/^X//' |<< \SHAR|
|00002250| 5f 45 4f 46 20 3e 20 27 | 76 69 73 2e 63 27 0a 58 |_EOF > '|vis.c'.X|
|00002260| 2f 2a 20 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 |/* Cop|yright (|
|00002270| 63 29 20 31 39 38 38 20 | 62 79 20 47 65 6f 72 67 |c) 1988 |by Georg|
|00002280| 65 20 4d 2e 20 53 69 70 | 65 2e 20 20 41 6c 6c 20 |e M. Sip|e. All |
|00002290| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 2e |rights r|eserved.|
|000022a0| 0a 58 0a 58 54 68 69 73 | 20 73 6f 66 74 77 61 72 |.X.XThis| softwar|
|000022b0| 65 20 6d 61 79 20 6f 6e | 6c 79 20 62 65 20 72 65 |e may on|ly be re|
|000022c0| 64 69 73 74 72 69 62 75 | 74 65 64 20 77 69 74 68 |distribu|ted with|
|000022d0| 6f 75 74 20 66 65 65 20 | 61 6e 64 20 77 69 74 68 |out fee |and with|
|000022e0| 6f 75 74 20 61 6e 79 0a | 58 6f 74 68 65 72 20 66 |out any.|Xother f|
|000022f0| 6f 72 6d 20 6f 66 20 6d | 6f 6e 65 74 61 72 79 20 |orm of m|onetary |
|00002300| 67 61 69 6e 20 28 69 6e | 63 6c 75 64 69 6e 67 20 |gain (in|cluding |
|00002310| 73 6f 6c 64 2c 20 72 65 | 6e 74 65 64 2c 20 6c 65 |sold, re|nted, le|
|00002320| 61 73 65 64 2c 20 6f 72 | 0a 58 74 72 61 64 65 64 |ased, or|.Xtraded|
|00002330| 29 2c 20 75 6e 6c 65 73 | 73 20 74 68 65 20 65 78 |), unles|s the ex|
|00002340| 70 72 65 73 73 20 77 72 | 69 74 74 65 6e 20 70 65 |press wr|itten pe|
|00002350| 72 6d 69 73 73 69 6f 6e | 20 6f 66 20 74 68 65 20 |rmission| of the |
|00002360| 63 6f 70 79 72 69 67 68 | 74 20 68 6f 6c 64 65 72 |copyrigh|t holder|
|00002370| 0a 58 69 73 20 6f 62 74 | 61 69 6e 65 64 20 69 6e |.Xis obt|ained in|
|00002380| 20 61 64 76 61 6e 63 65 | 2e 0a 58 0a 58 54 68 69 | advance|..X.XThi|
|00002390| 73 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |s copyri|ght noti|
|000023a0| 63 65 20 6d 75 73 74 20 | 62 65 20 72 65 70 72 6f |ce must |be repro|
|000023b0| 64 75 63 65 64 20 69 6e | 20 69 74 73 20 65 6e 74 |duced in| its ent|
|000023c0| 69 72 65 74 79 20 6f 6e | 20 61 6c 6c 20 63 6f 70 |irety on| all cop|
|000023d0| 69 65 73 0a 58 6f 66 20 | 74 68 69 73 20 73 6f 66 |ies.Xof |this sof|
|000023e0| 74 77 61 72 65 2e 20 20 | 46 75 72 74 68 65 72 2c |tware. |Further,|
|000023f0| 20 61 63 6b 6e 6f 77 6c | 65 64 67 6d 65 6e 74 20 | acknowl|edgment |
|00002400| 6f 66 20 74 68 65 20 61 | 75 74 68 6f 72 73 68 69 |of the a|uthorshi|
|00002410| 70 20 6f 66 20 74 68 69 | 73 0a 58 73 6f 66 74 77 |p of thi|s.Xsoftw|
|00002420| 61 72 65 20 6d 75 73 74 | 20 6e 6f 74 20 62 65 20 |are must| not be |
|00002430| 72 65 6d 6f 76 65 64 20 | 66 72 6f 6d 20 69 74 73 |removed |from its|
|00002440| 20 63 75 72 72 65 6e 74 | 20 6f 72 20 64 65 72 69 | current| or deri|
|00002450| 76 65 64 0a 58 64 6f 63 | 75 6d 65 6e 74 61 74 69 |ved.Xdoc|umentati|
|00002460| 6f 6e 2e 0a 58 0a 58 4e | 6f 20 65 78 70 72 65 73 |on..X.XN|o expres|
|00002470| 73 65 64 20 6f 72 20 69 | 6d 70 6c 69 65 64 20 77 |sed or i|mplied w|
|00002480| 61 72 72 61 6e 74 79 20 | 69 73 20 6d 61 64 65 20 |arranty |is made |
|00002490| 66 6f 72 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 |for this| softwar|
|000024a0| 65 2e 20 20 4e 6f 20 70 | 61 72 74 79 0a 58 63 6f |e. No p|arty.Xco|
|000024b0| 6e 6e 65 63 74 65 64 20 | 77 69 74 68 20 74 68 69 |nnected |with thi|
|000024c0| 73 20 73 6f 66 74 77 61 | 72 65 20 61 73 73 75 6d |s softwa|re assum|
|000024d0| 65 73 20 61 6e 79 20 6c | 69 61 62 69 6c 69 74 79 |es any l|iability|
|000024e0| 20 6f 72 20 72 65 73 70 | 6f 6e 73 69 62 69 6c 69 | or resp|onsibili|
|000024f0| 74 79 0a 58 66 6f 72 20 | 69 74 73 20 75 73 65 2c |ty.Xfor |its use,|
|00002500| 20 74 68 65 20 63 6f 72 | 72 65 63 74 6e 65 73 73 | the cor|rectness|
|00002510| 20 6f 66 20 69 74 73 20 | 6f 70 65 72 61 74 69 6f | of its |operatio|
|00002520| 6e 2c 20 6f 72 20 69 74 | 73 20 66 69 74 6e 65 73 |n, or it|s fitnes|
|00002530| 73 20 66 6f 72 20 61 6e | 79 0a 58 70 75 72 70 6f |s for an|y.Xpurpo|
|00002540| 73 65 2e 0a 58 0a 58 41 | 6e 79 20 64 69 73 74 72 |se..X.XA|ny distr|
|00002550| 69 62 75 74 6f 72 20 6f | 66 20 63 6f 70 69 65 73 |ibutor o|f copies|
|00002560| 20 6f 66 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 | of this| softwar|
|00002570| 65 20 73 68 61 6c 6c 20 | 67 72 61 6e 74 20 74 68 |e shall |grant th|
|00002580| 65 20 72 65 63 69 70 69 | 65 6e 74 0a 58 70 65 72 |e recipi|ent.Xper|
|00002590| 6d 69 73 73 69 6f 6e 20 | 66 6f 72 20 66 75 72 74 |mission |for furt|
|000025a0| 68 65 72 20 72 65 64 69 | 73 74 72 69 62 75 74 69 |her redi|stributi|
|000025b0| 6f 6e 20 61 73 20 70 65 | 72 6d 69 74 74 65 64 20 |on as pe|rmitted |
|000025c0| 62 79 20 74 68 69 73 20 | 6e 6f 74 69 63 65 2e 0a |by this |notice..|
|000025d0| 58 0a 58 50 65 72 6d 69 | 73 73 69 6f 6e 20 69 73 |X.XPermi|ssion is|
|000025e0| 20 68 65 72 65 62 79 20 | 67 72 61 6e 74 65 64 20 | hereby |granted |
|000025f0| 74 6f 20 63 6f 70 79 2c | 20 72 65 70 72 6f 64 75 |to copy,| reprodu|
|00002600| 63 65 2c 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |ce, redi|stribute|
|00002610| 20 61 6e 64 0a 58 6f 74 | 68 65 72 77 69 73 65 20 | and.Xot|herwise |
|00002620| 75 73 65 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 |use this| softwar|
|00002630| 65 20 61 73 20 6c 6f 6e | 67 20 61 73 20 74 68 65 |e as lon|g as the|
|00002640| 20 63 6f 6e 64 69 74 69 | 6f 6e 73 20 61 62 6f 76 | conditi|ons abov|
|00002650| 65 20 61 72 65 0a 58 73 | 74 72 69 63 74 6c 79 20 |e are.Xs|trictly |
|00002660| 61 64 68 65 72 65 64 20 | 74 6f 2e 0a 58 0a 58 09 |adhered |to..X.X.|
|00002670| 4e 4f 54 45 3a 20 20 54 | 68 69 73 20 73 6f 66 74 |NOTE: T|his soft|
|00002680| 77 61 72 65 20 77 61 73 | 20 6f 72 69 67 69 6e 61 |ware was| origina|
|00002690| 6c 6c 79 20 77 72 69 74 | 74 65 6e 20 62 79 20 44 |lly writ|ten by D|
|000026a0| 61 6e 20 48 65 6c 6c 65 | 72 0a 58 09 28 61 72 67 |an Helle|r.X.(arg|
|000026b0| 76 40 73 72 69 2d 73 70 | 61 6d 2e 61 72 70 61 29 |v@sri-sp|am.arpa)|
|000026c0| 20 61 6e 64 20 65 6e 68 | 61 6e 63 65 64 20 2f 20 | and enh|anced / |
|000026d0| 67 65 6e 65 72 61 6c 69 | 7a 65 64 20 62 79 20 47 |generali|zed by G|
|000026e0| 65 6f 72 67 65 20 4d 2e | 0a 58 09 53 69 70 65 20 |eorge M.|.X.Sipe |
|000026f0| 28 72 65 62 65 6c 21 67 | 65 6f 72 67 65 29 20 74 |(rebel!g|eorge) t|
|00002700| 6f 20 74 68 65 20 70 6f | 69 6e 74 20 77 68 65 72 |o the po|int wher|
|00002710| 65 20 44 61 6e 20 77 6f | 75 6c 64 20 6e 6f 20 6c |e Dan wo|uld no l|
|00002720| 6f 6e 67 65 72 0a 58 09 | 72 65 63 6f 67 69 6e 7a |onger.X.|recoginz|
|00002730| 65 20 69 74 2e 20 20 4e | 6f 20 63 6f 70 79 72 69 |e it. N|o copyri|
|00002740| 67 68 74 20 6e 6f 74 69 | 63 65 73 20 77 65 72 65 |ght noti|ces were|
|00002750| 20 65 6d 62 6f 64 69 65 | 64 20 69 6e 20 74 68 65 | embodie|d in the|
|00002760| 0a 58 09 6f 72 69 67 69 | 6e 61 6c 20 6e 65 74 20 |.X.origi|nal net |
|00002770| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 2e 0a 58 2a |distribu|tion..X*|
|00002780| 2f 0a 58 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 73 |/.X.X#in|clude <s|
|00002790| 74 64 69 6f 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |tdio.h>.|X#includ|
|000027a0| 65 20 3c 63 75 72 73 65 | 73 2e 68 3e 0a 58 23 69 |e <curse|s.h>.X#i|
|000027b0| 6e 63 6c 75 64 65 20 3c | 73 69 67 6e 61 6c 2e 68 |nclude <|signal.h|
|000027c0| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |>.X#incl|ude <sys|
|000027d0| 2f 74 79 70 65 73 2e 68 | 3e 0a 58 0a 58 23 69 66 |/types.h|>.X.X#if|
|000027e0| 6e 64 65 66 09 44 45 4c | 41 59 0a 58 23 64 65 66 |ndef.DEL|AY.X#def|
|000027f0| 69 6e 65 09 44 45 4c 41 | 59 09 31 35 09 09 2f 2a |ine.DELA|Y.15../*|
|00002800| 20 64 65 66 61 75 6c 74 | 20 64 65 6c 61 79 2c 20 | default| delay, |
|00002810| 69 66 20 6e 6f 74 20 6f | 74 68 65 72 77 69 73 65 |if not o|therwise|
|00002820| 20 73 65 74 20 2a 2f 0a | 58 23 65 6e 64 69 66 09 | set */.|X#endif.|
|00002830| 44 45 4c 41 59 0a 58 23 | 69 66 6e 64 65 66 09 42 |DELAY.X#|ifndef.B|
|00002840| 41 53 45 4c 49 4e 45 0a | 58 23 64 65 66 69 6e 65 |ASELINE.|X#define|
|00002850| 09 42 41 53 45 4c 49 4e | 45 20 32 09 09 2f 2a 20 |.BASELIN|E 2../* |
|00002860| 64 65 66 61 75 6c 74 20 | 6c 69 6e 65 20 6e 75 6d |default |line num|
|00002870| 62 65 72 20 66 6f 72 20 | 6f 75 74 70 75 74 20 2a |ber for |output *|
|00002880| 2f 0a 58 23 65 6e 64 69 | 66 09 42 41 53 45 4c 49 |/.X#endi|f.BASELI|
|00002890| 4e 45 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 6d 61 |NE.X.X#d|efine ma|
|000028a0| 78 28 61 2c 62 29 20 09 | 09 28 61 20 3c 20 62 20 |x(a,b) .|.(a < b |
|000028b0| 3f 20 62 20 3a 20 61 29 | 0a 58 23 64 65 66 69 6e |? b : a)|.X#defin|
|000028c0| 65 20 65 71 75 61 6c 28 | 73 74 72 31 2c 73 74 72 |e equal(|str1,str|
|000028d0| 32 29 09 21 73 74 72 63 | 6d 70 28 73 74 72 31 2c |2).!strc|mp(str1,|
|000028e0| 20 73 74 72 32 29 0a 58 | 0a 58 23 64 65 66 69 6e | str2).X|.X#defin|
|000028f0| 65 20 70 69 6e 70 75 74 | 20 09 09 09 66 69 6c 64 |e pinput| ...fild|
|00002900| 65 73 5b 30 5d 0a 58 23 | 64 65 66 69 6e 65 20 70 |es[0].X#|define p|
|00002910| 6f 75 74 70 75 74 09 09 | 09 66 69 6c 64 65 73 5b |output..|.fildes[|
|00002920| 31 5d 0a 58 0a 58 23 69 | 66 64 65 66 09 42 53 44 |1].X.X#i|fdef.BSD|
|00002930| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|00002940| 77 61 69 74 2e 68 3e 0a | 58 65 78 74 65 72 6e 20 |wait.h>.|Xextern |
|00002950| 63 68 61 72 20 2a 69 6e | 64 65 78 28 29 3b 0a 58 |char *in|dex();.X|
|00002960| 65 78 74 65 72 6e 20 74 | 69 6d 65 5f 74 20 74 69 |extern t|ime_t ti|
|00002970| 6d 65 28 29 3b 0a 58 65 | 78 74 65 72 6e 20 69 6e |me();.Xe|xtern in|
|00002980| 74 20 65 78 69 74 28 29 | 3b 0a 58 65 78 74 65 72 |t exit()|;.Xexter|
|00002990| 6e 20 69 6e 74 20 5f 65 | 78 69 74 28 29 3b 0a 58 |n int _e|xit();.X|
|000029a0| 65 78 74 65 72 6e 20 69 | 6e 74 20 70 65 72 72 6f |extern i|nt perro|
|000029b0| 72 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 69 6e 74 |r();.Xex|tern int|
|000029c0| 20 73 6c 65 65 70 28 29 | 3b 0a 58 23 65 6c 73 65 | sleep()|;.X#else|
|000029d0| 0a 58 75 6e 69 6f 6e 20 | 77 61 69 74 20 7b 0a 58 |.Xunion |wait {.X|
|000029e0| 09 69 6e 74 20 77 5f 73 | 74 61 74 75 73 3b 0a 58 |.int w_s|tatus;.X|
|000029f0| 7d 3b 0a 58 23 64 65 66 | 69 6e 65 09 76 66 6f 72 |};.X#def|ine.vfor|
|00002a00| 6b 28 29 09 09 66 6f 72 | 6b 28 29 09 09 09 09 2f |k()..for|k()..../|
|00002a10| 2a 20 66 6f 72 6b 20 6f | 6e 20 6e 6f 6e 2d 42 53 |* fork o|n non-BS|
|00002a20| 44 20 2a 2f 0a 58 23 64 | 65 66 69 6e 65 09 64 75 |D */.X#d|efine.du|
|00002a30| 70 32 28 66 72 6f 6d 2c | 74 6f 29 09 63 6c 6f 73 |p2(from,|to).clos|
|00002a40| 65 28 74 6f 29 3b 20 28 | 76 6f 69 64 29 20 64 75 |e(to); (|void) du|
|00002a50| 70 28 66 72 6f 6d 29 09 | 2f 2a 20 67 6f 6f 64 20 |p(from).|/* good |
|00002a60| 65 6e 6f 75 67 68 20 68 | 65 72 65 20 2a 2f 0a 58 |enough h|ere */.X|
|00002a70| 23 64 65 66 69 6e 65 09 | 69 6e 64 65 78 28 73 74 |#define.|index(st|
|00002a80| 72 2c 63 68 72 29 09 73 | 74 72 63 68 72 28 73 74 |r,chr).s|trchr(st|
|00002a90| 72 2c 63 68 72 29 09 09 | 09 2f 2a 20 73 74 72 63 |r,chr)..|./* strc|
|00002aa0| 68 72 20 6f 6e 20 6e 6f | 6e 2d 42 53 44 20 2a 2f |hr on no|n-BSD */|
|00002ab0| 0a 58 65 78 74 65 72 6e | 20 63 68 61 72 20 2a 73 |.Xextern| char *s|
|00002ac0| 74 72 63 68 72 28 29 3b | 0a 58 65 78 74 65 72 6e |trchr();|.Xextern|
|00002ad0| 20 6c 6f 6e 67 20 74 69 | 6d 65 28 29 3b 0a 58 65 | long ti|me();.Xe|
|00002ae0| 78 74 65 72 6e 20 76 6f | 69 64 20 65 78 69 74 28 |xtern vo|id exit(|
|00002af0| 29 3b 0a 58 65 78 74 65 | 72 6e 20 76 6f 69 64 20 |);.Xexte|rn void |
|00002b00| 5f 65 78 69 74 28 29 3b | 0a 58 65 78 74 65 72 6e |_exit();|.Xextern|
|00002b10| 20 76 6f 69 64 20 70 65 | 72 72 6f 72 28 29 3b 0a | void pe|rror();.|
|00002b20| 58 65 78 74 65 72 6e 20 | 75 6e 73 69 67 6e 65 64 |Xextern |unsigned|
|00002b30| 20 69 6e 74 20 73 6c 65 | 65 70 28 29 3b 0a 58 23 | int sle|ep();.X#|
|00002b40| 65 6e 64 69 66 09 42 53 | 44 0a 58 0a 58 65 78 74 |endif.BS|D.X.Xext|
|00002b50| 65 72 6e 20 69 6e 74 20 | 6f 70 74 69 6e 64 3b 0a |ern int |optind;.|
|00002b60| 58 65 78 74 65 72 6e 20 | 63 68 61 72 20 2a 6f 70 |Xextern |char *op|
|00002b70| 74 61 72 67 3b 0a 58 0a | 58 6c 6f 6e 67 20 77 61 |targ;.X.|Xlong wa|
|00002b80| 69 74 5f 64 65 6c 61 79 | 20 3d 20 44 45 4c 41 59 |it_delay| = DELAY|
|00002b90| 3b 09 2f 2a 20 64 65 6c | 61 79 20 69 6e 74 65 72 |;./* del|ay inter|
|00002ba0| 76 61 6c 20 2a 2f 0a 58 | 69 6e 74 20 66 6f 72 63 |val */.X|int forc|
|00002bb0| 65 20 3d 20 30 3b 09 09 | 09 2f 2a 20 74 72 75 65 |e = 0;..|./* true|
|00002bc0| 20 74 6f 20 66 6f 72 63 | 65 20 63 6f 6e 74 69 6e | to forc|e contin|
|00002bd0| 75 65 64 20 65 78 65 63 | 75 74 69 6f 6e 20 2a 2f |ued exec|ution */|
|00002be0| 0a 58 69 6e 74 20 6e 65 | 65 64 73 68 65 6c 6c 20 |.Xint ne|edshell |
|00002bf0| 3d 20 30 3b 09 09 2f 2a | 20 6e 6f 6e 2d 7a 65 72 |= 0;../*| non-zer|
|00002c00| 6f 20 69 66 20 73 75 62 | 73 68 65 6c 6c 20 6e 65 |o if sub|shell ne|
|00002c10| 65 64 65 64 20 2a 2f 0a | 58 0a 58 2f 2a 20 63 72 |eded */.|X.X/* cr|
|00002c20| 65 61 74 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |eate com|mand lin|
|00002c30| 65 20 73 74 72 69 6e 67 | 20 66 6f 72 20 64 69 73 |e string| for dis|
|00002c40| 70 6c 61 79 20 2a 2f 0a | 58 73 74 61 74 69 63 20 |play */.|Xstatic |
|00002c50| 63 68 61 72 20 2a 63 6f | 6d 6d 61 6e 64 28 61 72 |char *co|mmand(ar|
|00002c60| 67 63 2c 20 61 72 67 76 | 29 0a 58 69 6e 74 20 61 |gc, argv|).Xint a|
|00002c70| 72 67 63 3b 0a 58 63 68 | 61 72 20 2a 2a 61 72 67 |rgc;.Xch|ar **arg|
|00002c80| 76 3b 0a 58 7b 0a 58 09 | 73 74 61 74 69 63 20 63 |v;.X{.X.|static c|
|00002c90| 68 61 72 20 73 74 72 69 | 6e 67 5b 32 35 35 5d 3b |har stri|ng[255];|
|00002ca0| 0a 58 09 69 6e 74 20 63 | 6f 75 6e 74 20 3d 20 30 |.X.int c|ount = 0|
|00002cb0| 3b 0a 58 09 63 68 61 72 | 20 2a 63 70 20 3d 20 73 |;.X.char| *cp = s|
|00002cc0| 74 72 69 6e 67 3b 0a 58 | 0a 58 09 64 6f 20 7b 0a |tring;.X|.X.do {.|
|00002cd0| 58 09 09 28 76 6f 69 64 | 29 20 73 70 72 69 6e 74 |X..(void|) sprint|
|00002ce0| 66 28 63 70 2c 20 22 25 | 73 20 22 2c 20 61 72 67 |f(cp, "%|s ", arg|
|00002cf0| 76 5b 63 6f 75 6e 74 5d | 29 3b 0a 58 09 09 63 70 |v[count]|);.X..cp|
|00002d00| 20 2b 3d 20 73 74 72 6c | 65 6e 28 63 70 29 3b 0a | += strl|en(cp);.|
|00002d10| 58 09 09 6e 65 65 64 73 | 68 65 6c 6c 20 7c 3d 20 |X..needs|hell |= |
|00002d20| 28 69 6e 74 29 20 69 6e | 64 65 78 28 61 72 67 76 |(int) in|dex(argv|
|00002d30| 5b 63 6f 75 6e 74 5d 2c | 20 27 7c 27 29 3b 0a 58 |[count],| '|');.X|
|00002d40| 09 09 6e 65 65 64 73 68 | 65 6c 6c 20 7c 3d 20 28 |..needsh|ell |= (|
|00002d50| 69 6e 74 29 20 69 6e 64 | 65 78 28 61 72 67 76 5b |int) ind|ex(argv[|
|00002d60| 63 6f 75 6e 74 5d 2c 20 | 27 3b 27 29 3b 0a 58 09 |count], |';');.X.|
|00002d70| 7d 20 77 68 69 6c 65 20 | 28 2b 2b 63 6f 75 6e 74 |} while |(++count|
|00002d80| 20 3c 20 61 72 67 63 29 | 3b 0a 58 09 2a 2d 2d 63 | < argc)|;.X.*--c|
|00002d90| 70 20 3d 20 27 5c 30 30 | 30 27 3b 0a 58 09 72 65 |p = '\00|0';.X.re|
|00002da0| 74 75 72 6e 20 28 73 74 | 72 69 6e 67 29 3b 0a 58 |turn (st|ring);.X|
|00002db0| 7d 0a 58 0a 58 2f 2a 20 | 61 6c 6c 20 64 6f 6e 65 |}.X.X/* |all done|
|00002dc0| 2c 20 63 6c 65 61 6e 75 | 70 20 61 6e 64 20 65 78 |, cleanu|p and ex|
|00002dd0| 69 74 20 2a 2f 0a 58 73 | 74 61 74 69 63 20 69 6e |it */.Xs|tatic in|
|00002de0| 74 20 74 65 72 6d 69 6e | 61 74 65 28 63 61 75 73 |t termin|ate(caus|
|00002df0| 65 29 0a 58 7b 0a 58 23 | 69 66 64 65 66 09 42 53 |e).X{.X#|ifdef.BS|
|00002e00| 44 0a 58 09 28 76 6f 69 | 64 29 20 73 69 67 73 65 |D.X.(voi|d) sigse|
|00002e10| 74 6d 61 73 6b 28 2d 31 | 29 3b 0a 58 23 65 6e 64 |tmask(-1|);.X#end|
|00002e20| 69 66 0a 58 09 6d 6f 76 | 65 28 4c 49 4e 45 53 20 |if.X.mov|e(LINES |
|00002e30| 2d 20 31 2c 20 30 29 3b | 0a 58 09 63 6c 72 74 6f |- 1, 0);|.X.clrto|
|00002e40| 65 6f 6c 28 29 3b 0a 58 | 09 65 63 68 6f 28 29 3b |eol();.X|.echo();|
|00002e50| 0a 58 09 72 65 66 72 65 | 73 68 28 29 3b 0a 58 09 |.X.refre|sh();.X.|
|00002e60| 65 6e 64 77 69 6e 28 29 | 3b 0a 58 09 65 78 69 74 |endwin()|;.X.exit|
|00002e70| 28 63 61 75 73 65 29 3b | 0a 58 7d 0a 58 0a 58 69 |(cause);|.X}.X.Xi|
|00002e80| 6e 74 20 6d 61 69 6e 28 | 61 72 67 63 2c 20 61 72 |nt main(|argc, ar|
|00002e90| 67 76 29 0a 58 69 6e 74 | 20 61 72 67 63 3b 0a 58 |gv).Xint| argc;.X|
|00002ea0| 63 68 61 72 20 2a 2a 61 | 72 67 76 3b 0a 58 7b 0a |char **a|rgv;.X{.|
|00002eb0| 58 09 72 65 67 69 73 74 | 65 72 20 69 6e 74 20 63 |X.regist|er int c|
|00002ec0| 75 72 6c 69 6e 65 3b 0a | 58 09 72 65 67 69 73 74 |urline;.|X.regist|
|00002ed0| 65 72 20 69 6e 74 20 69 | 74 65 72 61 74 69 6f 6e |er int i|teration|
|00002ee0| 20 3d 20 30 3b 0a 58 09 | 72 65 67 69 73 74 65 72 | = 0;.X.|register|
|00002ef0| 20 69 6e 74 20 63 3b 0a | 58 09 69 6e 74 20 73 77 | int c;.|X.int sw|
|00002f00| 3b 0a 58 09 69 6e 74 20 | 62 61 64 73 77 20 3d 20 |;.X.int |badsw = |
|00002f10| 30 3b 0a 58 09 69 6e 74 | 20 62 61 73 65 6c 69 6e |0;.X.int| baselin|
|00002f20| 65 20 3d 20 42 41 53 45 | 4c 49 4e 45 3b 0a 58 09 |e = BASE|LINE;.X.|
|00002f30| 6c 6f 6e 67 20 6e 65 78 | 74 63 79 63 6c 65 3b 0a |long nex|tcycle;.|
|00002f40| 58 09 6c 6f 6e 67 20 63 | 75 72 74 69 6d 65 3b 0a |X.long c|urtime;.|
|00002f50| 58 09 6c 6f 6e 67 20 64 | 65 6c 74 61 3b 0a 58 09 |X.long d|elta;.X.|
|00002f60| 69 6e 74 20 66 69 6c 64 | 65 73 5b 32 5d 3b 0a 58 |int fild|es[2];.X|
|00002f70| 09 69 6e 74 20 70 69 64 | 3b 0a 58 09 75 6e 69 6f |.int pid|;.X.unio|
|00002f80| 6e 20 77 61 69 74 20 73 | 74 61 74 75 73 3b 0a 58 |n wait s|tatus;.X|
|00002f90| 09 63 68 61 72 20 2a 63 | 6d 64 20 3d 20 61 72 67 |.char *c|md = arg|
|00002fa0| 76 5b 30 5d 3b 0a 58 09 | 63 68 61 72 20 2a 73 68 |v[0];.X.|char *sh|
|00002fb0| 63 6d 64 5b 34 5d 3b 0a | 58 09 46 49 4c 45 20 2a |cmd[4];.|X.FILE *|
|00002fc0| 66 70 3b 0a 58 0a 58 09 | 28 76 6f 69 64 29 20 73 |fp;.X.X.|(void) s|
|00002fd0| 69 67 6e 61 6c 28 53 49 | 47 51 55 49 54 2c 20 74 |ignal(SI|GQUIT, t|
|00002fe0| 65 72 6d 69 6e 61 74 65 | 29 3b 09 2f 2a 20 65 78 |erminate|);./* ex|
|00002ff0| 69 74 20 77 68 65 6e 20 | 72 65 71 75 65 73 74 65 |it when |requeste|
|00003000| 64 20 2a 2f 0a 58 09 28 | 76 6f 69 64 29 20 73 69 |d */.X.(|void) si|
|00003010| 67 6e 61 6c 28 53 49 47 | 49 4e 54 2c 20 74 65 72 |gnal(SIG|INT, ter|
|00003020| 6d 69 6e 61 74 65 29 3b | 09 2f 2a 20 65 78 69 74 |minate);|./* exit|
|00003030| 20 77 68 65 6e 20 72 65 | 71 75 65 73 74 65 64 20 | when re|quested |
|00003040| 2a 2f 0a 58 09 28 76 6f | 69 64 29 20 73 69 67 6e |*/.X.(vo|id) sign|
|00003050| 61 6c 28 53 49 47 50 49 | 50 45 2c 20 53 49 47 5f |al(SIGPI|PE, SIG_|
|00003060| 49 47 4e 29 3b 09 2f 2a | 20 77 68 65 6e 20 6f 75 |IGN);./*| when ou|
|00003070| 74 70 75 74 20 3e 20 73 | 63 72 65 65 6e 20 73 69 |tput > s|creen si|
|00003080| 7a 65 20 2a 2f 0a 58 0a | 58 09 77 68 69 6c 65 20 |ze */.X.|X.while |
|00003090| 28 28 73 77 20 3d 20 67 | 65 74 6f 70 74 20 28 61 |((sw = g|etopt (a|
|000030a0| 72 67 63 2c 20 61 72 67 | 76 2c 20 22 64 3a 66 22 |rgc, arg|v, "d:f"|
|000030b0| 29 29 20 21 3d 20 45 4f | 46 29 0a 58 09 09 73 77 |)) != EO|F).X..sw|
|000030c0| 69 74 63 68 20 28 73 77 | 29 20 7b 0a 58 09 09 09 |itch (sw|) {.X...|
|000030d0| 63 61 73 65 20 27 66 27 | 3a 0a 58 09 09 09 09 66 |case 'f'|:.X....f|
|000030e0| 6f 72 63 65 20 3d 20 21 | 66 6f 72 63 65 3b 0a 58 |orce = !|force;.X|
|000030f0| 09 09 09 09 62 72 65 61 | 6b 3b 0a 58 09 09 09 63 |....brea|k;.X...c|
|00003100| 61 73 65 20 27 64 27 3a | 0a 58 09 09 09 09 77 61 |ase 'd':|.X....wa|
|00003110| 69 74 5f 64 65 6c 61 79 | 20 3d 20 61 74 6f 69 28 |it_delay| = atoi(|
|00003120| 6f 70 74 61 72 67 29 3b | 0a 58 09 09 09 09 69 66 |optarg);|.X....if|
|00003130| 20 28 77 61 69 74 5f 64 | 65 6c 61 79 20 3c 20 31 | (wait_d|elay < 1|
|00003140| 29 20 77 61 69 74 5f 64 | 65 6c 61 79 20 3d 20 31 |) wait_d|elay = 1|
|00003150| 3b 0a 58 09 09 09 09 62 | 72 65 61 6b 3b 0a 58 09 |;.X....b|reak;.X.|
|00003160| 09 09 63 61 73 65 20 27 | 3f 27 3a 0a 58 09 09 09 |..case '|?':.X...|
|00003170| 64 65 66 61 75 6c 74 3a | 0a 58 09 09 09 09 62 61 |default:|.X....ba|
|00003180| 64 73 77 20 3d 20 31 3b | 0a 58 09 09 09 09 62 72 |dsw = 1;|.X....br|
|00003190| 65 61 6b 3b 0a 58 09 09 | 7d 0a 58 09 61 72 67 76 |eak;.X..|}.X.argv|
|000031a0| 20 3d 20 26 61 72 67 76 | 5b 6f 70 74 69 6e 64 5d | = &argv|[optind]|
|000031b0| 3b 0a 58 09 61 72 67 63 | 20 2d 3d 20 6f 70 74 69 |;.X.argc| -= opti|
|000031c0| 6e 64 3b 0a 58 09 69 66 | 20 28 62 61 64 73 77 20 |nd;.X.if| (badsw |
|000031d0| 7c 7c 20 61 72 67 63 20 | 3c 20 31 29 20 7b 0a 58 ||| argc |< 1) {.X|
|000031e0| 09 09 28 76 6f 69 64 29 | 20 66 70 72 69 6e 74 66 |..(void)| fprintf|
|000031f0| 28 73 74 64 65 72 72 2c | 0a 58 09 09 09 22 55 73 |(stderr,|.X..."Us|
|00003200| 61 67 65 3a 20 25 73 20 | 5b 2d 64 20 64 65 6c 61 |age: %s |[-d dela|
|00003210| 79 5d 20 5b 2d 66 5d 20 | 63 6f 6d 6d 61 6e 64 20 |y] [-f] |command |
|00003220| 5b 61 72 67 73 5d 5c 6e | 22 2c 20 63 6d 64 29 3b |[args]\n|", cmd);|
|00003230| 0a 58 09 09 65 78 69 74 | 20 28 2d 31 29 3b 0a 58 |.X..exit| (-1);.X|
|00003240| 09 7d 0a 58 09 69 6e 69 | 74 73 63 72 28 29 3b 0a |.}.X.ini|tscr();.|
|00003250| 58 09 63 6d 64 20 3d 20 | 63 6f 6d 6d 61 6e 64 28 |X.cmd = |command(|
|00003260| 61 72 67 63 2c 20 61 72 | 67 76 29 3b 0a 58 09 69 |argc, ar|gv);.X.i|
|00003270| 66 20 28 6e 65 65 64 73 | 68 65 6c 6c 20 21 3d 20 |f (needs|hell != |
|00003280| 30 29 20 7b 0a 58 09 09 | 73 68 63 6d 64 5b 30 5d |0) {.X..|shcmd[0]|
|00003290| 20 3d 20 22 73 68 22 3b | 0a 58 09 09 73 68 63 6d | = "sh";|.X..shcm|
|000032a0| 64 5b 31 5d 20 3d 20 22 | 2d 63 22 3b 0a 58 09 09 |d[1] = "|-c";.X..|
|000032b0| 73 68 63 6d 64 5b 32 5d | 20 3d 20 63 6d 64 3b 0a |shcmd[2]| = cmd;.|
|000032c0| 58 09 09 73 68 63 6d 64 | 5b 33 5d 20 3d 20 28 63 |X..shcmd|[3] = (c|
|000032d0| 68 61 72 20 2a 29 20 30 | 3b 0a 58 09 7d 0a 58 09 |har *) 0|;.X.}.X.|
|000032e0| 69 66 20 28 77 61 69 74 | 5f 64 65 6c 61 79 20 21 |if (wait|_delay !|
|000032f0| 3d 20 44 45 4c 41 59 29 | 20 7b 0a 58 09 09 69 66 |= DELAY)| {.X..if|
|00003300| 20 28 73 74 72 6c 65 6e | 28 63 6d 64 29 20 3e 20 | (strlen|(cmd) > |
|00003310| 43 4f 4c 53 2d 33 39 29 | 0a 58 09 09 09 28 76 6f |COLS-39)|.X...(vo|
|00003320| 69 64 29 20 73 70 72 69 | 6e 74 66 28 63 6d 64 2c |id) spri|ntf(cmd,|
|00003330| 20 22 25 2e 2a 73 2e 2e | 2e 22 2c 20 43 4f 4c 53 | "%.*s..|.", COLS|
|00003340| 2d 34 32 2c 20 63 6d 64 | 29 3b 0a 58 09 09 6d 76 |-42, cmd|);.X..mv|
|00003350| 70 72 69 6e 74 77 28 30 | 2c 20 6d 61 78 28 28 43 |printw(0|, max((C|
|00003360| 4f 4c 53 2d 31 31 29 2f | 32 2c 20 73 74 72 6c 65 |OLS-11)/|2, strle|
|00003370| 6e 28 63 6d 64 29 2b 31 | 35 29 2c 20 22 44 65 6c |n(cmd)+1|5), "Del|
|00003380| 61 79 3a 20 20 25 64 22 | 2c 0a 58 09 09 09 77 61 |ay: %d"|,.X...wa|
|00003390| 69 74 5f 64 65 6c 61 79 | 29 3b 0a 58 09 7d 20 65 |it_delay|);.X.} e|
|000033a0| 6c 73 65 20 69 66 20 28 | 73 74 72 6c 65 6e 28 63 |lse if (|strlen(c|
|000033b0| 6d 64 29 20 3e 20 43 4f | 4c 53 2d 32 31 29 0a 58 |md) > CO|LS-21).X|
|000033c0| 09 09 28 76 6f 69 64 29 | 20 73 70 72 69 6e 74 66 |..(void)| sprintf|
|000033d0| 28 63 6d 64 2c 20 22 25 | 2e 2a 73 2e 2e 2e 22 2c |(cmd, "%|.*s...",|
|000033e0| 20 43 4f 4c 53 2d 32 34 | 2c 20 63 6d 64 29 3b 0a | COLS-24|, cmd);.|
|000033f0| 58 09 6d 76 70 72 69 6e | 74 77 28 30 2c 20 30 2c |X.mvprin|tw(0, 0,|
|00003400| 20 22 43 6f 6d 6d 61 6e | 64 3a 20 20 25 73 22 2c | "Comman|d: %s",|
|00003410| 20 63 6d 64 29 3b 0a 58 | 09 6e 6f 65 63 68 6f 28 | cmd);.X|.noecho(|
|00003420| 29 3b 09 09 09 2f 2a 20 | 64 6f 6e 27 74 20 6c 65 |);.../* |don't le|
|00003430| 74 20 74 79 70 69 6e 67 | 20 72 75 69 6e 20 6f 75 |t typing| ruin ou|
|00003440| 72 20 70 61 69 6e 74 69 | 6e 67 20 2a 2f 0a 58 09 |r painti|ng */.X.|
|00003450| 6e 65 78 74 63 79 63 6c | 65 20 3d 20 74 69 6d 65 |nextcycl|e = time|
|00003460| 28 30 29 20 2b 20 77 61 | 69 74 5f 64 65 6c 61 79 |(0) + wa|it_delay|
|00003470| 3b 0a 58 09 77 68 69 6c | 65 20 28 31 29 20 7b 0a |;.X.whil|e (1) {.|
|00003480| 58 09 09 6d 76 70 72 69 | 6e 74 77 28 30 2c 20 43 |X..mvpri|ntw(0, C|
|00003490| 4f 4c 53 20 2d 20 31 30 | 2c 20 22 45 78 65 63 3a |OLS - 10|, "Exec:|
|000034a0| 20 20 25 64 22 2c 20 2b | 2b 69 74 65 72 61 74 69 | %d", +|+iterati|
|000034b0| 6f 6e 29 3b 0a 58 09 09 | 69 66 20 28 69 74 65 72 |on);.X..|if (iter|
|000034c0| 61 74 69 6f 6e 20 3d 3d | 20 31 29 20 72 65 66 72 |ation ==| 1) refr|
|000034d0| 65 73 68 28 29 3b 0a 58 | 09 09 28 76 6f 69 64 29 |esh();.X|..(void)|
|000034e0| 20 70 69 70 65 28 66 69 | 6c 64 65 73 29 3b 0a 58 | pipe(fi|ldes);.X|
|000034f0| 09 09 2f 2a 20 66 6f 72 | 6b 20 61 6e 64 20 65 78 |../* for|k and ex|
|00003500| 65 63 20 72 65 64 69 72 | 65 63 74 69 6e 67 20 73 |ec redir|ecting s|
|00003510| 74 64 6f 75 74 20 74 68 | 72 75 20 70 69 70 65 20 |tdout th|ru pipe |
|00003520| 74 6f 20 63 75 72 73 65 | 73 20 2a 2f 0a 58 09 09 |to curse|s */.X..|
|00003530| 69 66 20 28 21 28 70 69 | 64 20 3d 20 76 66 6f 72 |if (!(pi|d = vfor|
|00003540| 6b 28 29 29 29 20 7b 0a | 58 09 09 09 28 76 6f 69 |k())) {.|X...(voi|
|00003550| 64 29 20 64 75 70 32 28 | 70 6f 75 74 70 75 74 2c |d) dup2(|poutput,|
|00003560| 20 31 29 3b 0a 58 09 09 | 09 28 76 6f 69 64 29 20 | 1);.X..|.(void) |
|00003570| 64 75 70 32 28 70 6f 75 | 74 70 75 74 2c 20 32 29 |dup2(pou|tput, 2)|
|00003580| 3b 0a 58 09 09 09 28 76 | 6f 69 64 29 20 63 6c 6f |;.X...(v|oid) clo|
|00003590| 73 65 28 70 69 6e 70 75 | 74 29 3b 0a 58 09 09 09 |se(pinpu|t);.X...|
|000035a0| 69 66 20 28 6e 65 65 64 | 73 68 65 6c 6c 20 3d 3d |if (need|shell ==|
|000035b0| 20 30 29 20 28 76 6f 69 | 64 29 20 65 78 65 63 76 | 0) (voi|d) execv|
|000035c0| 70 28 2a 61 72 67 76 2c | 20 61 72 67 76 29 3b 0a |p(*argv,| argv);.|
|000035d0| 58 09 09 09 65 6c 73 65 | 20 28 76 6f 69 64 29 20 |X...else| (void) |
|000035e0| 65 78 65 63 76 28 22 2f | 62 69 6e 2f 73 68 22 2c |execv("/|bin/sh",|
|000035f0| 20 73 68 63 6d 64 29 3b | 0a 58 09 09 09 70 65 72 | shcmd);|.X...per|
|00003600| 72 6f 72 28 2a 61 72 67 | 76 29 3b 0a 58 09 09 09 |ror(*arg|v);.X...|
|00003610| 5f 65 78 69 74 28 2d 31 | 29 3b 0a 58 09 09 7d 0a |_exit(-1|);.X..}.|
|00003620| 58 09 09 69 66 20 28 70 | 69 64 20 3d 3d 20 2d 31 |X..if (p|id == -1|
|00003630| 29 20 74 65 72 6d 69 6e | 61 74 65 28 2d 32 29 3b |) termin|ate(-2);|
|00003640| 0a 58 09 09 69 66 20 28 | 21 28 66 70 20 3d 20 66 |.X..if (|!(fp = f|
|00003650| 64 6f 70 65 6e 28 70 69 | 6e 70 75 74 2c 20 22 72 |dopen(pi|nput, "r|
|00003660| 22 29 29 29 20 74 65 72 | 6d 69 6e 61 74 65 28 2d |"))) ter|minate(-|
|00003670| 33 29 3b 0a 58 09 09 28 | 76 6f 69 64 29 20 63 6c |3);.X..(|void) cl|
|00003680| 6f 73 65 28 70 6f 75 74 | 70 75 74 29 3b 0a 58 09 |ose(pout|put);.X.|
|00003690| 09 63 75 72 6c 69 6e 65 | 20 3d 20 62 61 73 65 6c |.curline| = basel|
|000036a0| 69 6e 65 3b 0a 58 09 09 | 6d 6f 76 65 28 63 75 72 |ine;.X..|move(cur|
|000036b0| 6c 69 6e 65 2c 20 30 29 | 3b 0a 58 09 09 2f 2a 20 |line, 0)|;.X../* |
|000036c0| 72 65 61 64 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |read the| command|
|000036d0| 27 73 20 6f 75 74 70 75 | 74 20 2a 2f 0a 58 09 09 |'s outpu|t */.X..|
|000036e0| 77 68 69 6c 65 20 28 28 | 63 20 3d 20 67 65 74 63 |while ((|c = getc|
|000036f0| 28 66 70 29 29 20 21 3d | 20 45 4f 46 20 26 26 20 |(fp)) !=| EOF && |
|00003700| 21 66 65 72 72 6f 72 28 | 66 70 29 20 26 26 20 63 |!ferror(|fp) && c|
|00003710| 75 72 6c 69 6e 65 20 3c | 20 4c 49 4e 45 53 29 0a |urline <| LINES).|
|00003720| 58 09 09 09 09 69 66 20 | 28 63 20 3d 3d 20 27 5c |X....if |(c == '\|
|00003730| 6e 27 29 20 7b 0a 58 09 | 09 09 09 09 63 6c 72 74 |n') {.X.|....clrt|
|00003740| 6f 65 6f 6c 28 29 3b 0a | 58 09 09 09 09 09 6d 6f |oeol();.|X.....mo|
|00003750| 76 65 28 2b 2b 63 75 72 | 6c 69 6e 65 2c 20 30 29 |ve(++cur|line, 0)|
|00003760| 3b 0a 58 09 09 09 09 7d | 0a 58 09 09 09 09 65 6c |;.X....}|.X....el|
|00003770| 73 65 20 61 64 64 63 68 | 28 63 29 3b 0a 58 09 09 |se addch|(c);.X..|
|00003780| 69 66 20 28 66 65 72 72 | 6f 72 28 66 70 29 29 20 |if (ferr|or(fp)) |
|00003790| 74 65 72 6d 69 6e 61 74 | 65 28 2d 34 29 3b 0a 58 |terminat|e(-4);.X|
|000037a0| 09 09 69 66 20 28 62 61 | 73 65 6c 69 6e 65 20 3e |..if (ba|seline >|
|000037b0| 20 31 20 26 26 20 63 75 | 72 6c 69 6e 65 20 3d 3d | 1 && cu|rline ==|
|000037c0| 20 4c 49 4e 45 53 20 26 | 26 20 63 20 21 3d 20 45 | LINES &|& c != E|
|000037d0| 4f 46 29 0a 58 09 09 09 | 2d 2d 62 61 73 65 6c 69 |OF).X...|--baseli|
|000037e0| 6e 65 3b 0a 58 09 09 2f | 2a 20 77 65 27 76 65 20 |ne;.X../|* we've |
|000037f0| 66 6f 75 6e 64 20 74 68 | 65 20 65 6e 64 20 6f 66 |found th|e end of|
|00003800| 20 66 69 6c 65 2c 20 74 | 68 75 73 2c 20 74 68 65 | file, t|hus, the|
|00003810| 20 65 6e 64 20 6f 66 20 | 65 78 65 63 20 2a 2f 0a | end of |exec */.|
|00003820| 58 09 09 28 76 6f 69 64 | 29 20 66 63 6c 6f 73 65 |X..(void|) fclose|
|00003830| 28 66 70 29 3b 0a 58 09 | 09 63 6c 72 74 6f 62 6f |(fp);.X.|.clrtobo|
|00003840| 74 28 29 3b 0a 58 09 09 | 6d 6f 76 65 28 4c 49 4e |t();.X..|move(LIN|
|00003850| 45 53 20 2d 20 31 2c 20 | 30 29 3b 0a 58 09 09 72 |ES - 1, |0);.X..r|
|00003860| 65 66 72 65 73 68 28 29 | 3b 0a 58 09 09 28 76 6f |efresh()|;.X..(vo|
|00003870| 69 64 29 20 77 61 69 74 | 28 26 73 74 61 74 75 73 |id) wait|(&status|
|00003880| 29 3b 09 2f 2a 20 77 61 | 69 74 20 66 6f 72 20 63 |);./* wa|it for c|
|00003890| 68 69 6c 64 20 74 6f 20 | 74 65 72 6d 69 6e 61 74 |hild to |terminat|
|000038a0| 65 20 2a 2f 0a 58 09 09 | 2f 2a 20 69 66 20 63 68 |e */.X..|/* if ch|
|000038b0| 69 6c 64 20 64 69 64 6e | 27 74 20 74 65 72 6d 69 |ild didn|'t termi|
|000038c0| 6e 61 74 65 20 70 72 6f | 70 65 72 6c 79 2c 20 77 |nate pro|perly, w|
|000038d0| 5f 73 74 61 74 75 73 20 | 77 69 6c 6c 20 21 3d 20 |_status |will != |
|000038e0| 30 20 2a 2f 0a 58 09 09 | 69 66 20 28 73 74 61 74 |0 */.X..|if (stat|
|000038f0| 75 73 2e 77 5f 73 74 61 | 74 75 73 29 20 7b 0a 58 |us.w_sta|tus) {.X|
|00003900| 09 09 09 6d 76 70 72 69 | 6e 74 77 28 30 2c 20 43 |...mvpri|ntw(0, C|
|00003910| 4f 4c 53 20 2d 20 31 32 | 2c 20 22 21 22 29 3b 0a |OLS - 12|, "!");.|
|00003920| 58 09 09 09 69 66 20 28 | 21 66 6f 72 63 65 29 20 |X...if (|!force) |
|00003930| 74 65 72 6d 69 6e 61 74 | 65 28 73 74 61 74 75 73 |terminat|e(status|
|00003940| 2e 77 5f 73 74 61 74 75 | 73 29 3b 0a 58 09 09 7d |.w_statu|s);.X..}|
|00003950| 0a 58 09 09 63 75 72 74 | 69 6d 65 20 3d 20 74 69 |.X..curt|ime = ti|
|00003960| 6d 65 28 30 29 3b 0a 58 | 09 09 64 65 6c 74 61 20 |me(0);.X|..delta |
|00003970| 3d 20 6e 65 78 74 63 79 | 63 6c 65 20 2d 20 63 75 |= nextcy|cle - cu|
|00003980| 72 74 69 6d 65 3b 0a 58 | 09 09 69 66 20 28 64 65 |rtime;.X|..if (de|
|00003990| 6c 74 61 20 3e 20 30 29 | 20 7b 0a 58 09 09 09 6e |lta > 0)| {.X...n|
|000039a0| 65 78 74 63 79 63 6c 65 | 20 3d 20 63 75 72 74 69 |extcycle| = curti|
|000039b0| 6d 65 20 2b 20 64 65 6c | 74 61 20 2b 20 77 61 69 |me + del|ta + wai|
|000039c0| 74 5f 64 65 6c 61 79 3b | 0a 58 09 09 09 28 76 6f |t_delay;|.X...(vo|
|000039d0| 69 64 29 20 73 6c 65 65 | 70 28 28 75 6e 73 69 67 |id) slee|p((unsig|
|000039e0| 6e 65 64 29 20 64 65 6c | 74 61 29 3b 0a 58 09 09 |ned) del|ta);.X..|
|000039f0| 7d 20 65 6c 73 65 20 6e | 65 78 74 63 79 63 6c 65 |} else n|extcycle|
|00003a00| 20 3d 20 63 75 72 74 69 | 6d 65 20 2b 20 77 61 69 | = curti|me + wai|
|00003a10| 74 5f 64 65 6c 61 79 3b | 0a 58 09 7d 0a 58 7d 0a |t_delay;|.X.}.X}.|
|00003a20| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 65 78 69 74 |SHAR_EOF|.fi.exit|
|00003a30| 20 30 0a 23 09 45 6e 64 | 20 6f 66 20 73 68 65 6c | 0.#.End| of shel|
|00003a40| 6c 20 61 72 63 68 69 76 | 65 0a 2d 2d 20 0a 47 65 |l archiv|e.-- .Ge|
|00003a50| 6f 72 67 65 20 4d 2e 20 | 53 69 70 65 2c 09 09 50 |orge M. |Sipe,..P|
|00003a60| 68 6f 6e 65 3a 20 28 34 | 30 34 29 20 36 36 32 2d |hone: (4|04) 662-|
|00003a70| 31 35 33 33 0a 54 6f 6c | 65 72 61 6e 74 20 53 79 |1533.Tol|erant Sy|
|00003a80| 73 74 65 6d 73 2c 20 36 | 39 36 31 20 50 65 61 63 |stems, 6|961 Peac|
|00003a90| 68 74 72 65 65 20 49 6e | 64 75 73 74 72 69 61 6c |htree In|dustrial|
|00003aa0| 2c 20 4e 6f 72 63 72 6f | 73 73 2c 20 47 41 20 20 |, Norcro|ss, GA |
|00003ab0| 33 30 30 37 31 0a 55 55 | 43 50 3a 20 2e 2e 2e 21 |30071.UU|CP: ...!|
|00003ac0| 7b 64 65 63 76 61 78 2c | 68 70 6c 61 62 73 2c 6c |{decvax,|hplabs,l|
|00003ad0| 69 6e 75 73 2c 72 75 74 | 67 65 72 73 2c 73 65 69 |inus,rut|gers,sei|
|00003ae0| 73 6d 6f 7d 21 67 61 74 | 65 63 68 21 72 65 62 65 |smo}!gat|ech!rebe|
|00003af0| 6c 21 67 65 6f 72 67 65 | 0a 0a 0a |l!george|... |
+--------+-------------------------+-------------------------+--------+--------+