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, with overstriking
| 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 6a 2e | 63 63 2e 70 75 72 64 75 |Path: j.|cc.purdu|
|00000010| 65 2e 65 64 75 21 6d 65 | 6e 74 6f 72 2e 63 63 2e |e.edu!me|ntor.cc.|
|00000020| 70 75 72 64 75 65 2e 65 | 64 75 21 6e 6f 6f 73 65 |purdue.e|du!noose|
|00000030| 2e 65 63 6e 2e 70 75 72 | 64 75 65 2e 65 64 75 21 |.ecn.pur|due.edu!|
|00000040| 73 61 6d 73 75 6e 67 21 | 63 73 2e 75 74 65 78 61 |samsung!|cs.utexa|
|00000050| 73 2e 65 64 75 21 75 75 | 6e 65 74 21 70 61 70 61 |s.edu!uu|net!papa|
|00000060| 79 61 2e 62 62 6e 2e 63 | 6f 6d 21 72 73 61 6c 7a |ya.bbn.c|om!rsalz|
|00000070| 0a 46 72 6f 6d 3a 20 72 | 73 61 6c 7a 40 62 62 6e |.From: r|salz@bbn|
|00000080| 2e 63 6f 6d 20 28 52 69 | 63 68 20 53 61 6c 7a 29 |.com (Ri|ch Salz)|
|00000090| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|000000a0| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 53 |p.source|s.unix.S|
|000000b0| 75 62 6a 65 63 74 3a 20 | 76 32 33 69 30 33 36 3a |ubject: |v23i036:|
|000000c0| 20 20 52 75 6e 20 61 20 | 70 72 6f 67 72 61 6d 20 | Run a |program |
|000000d0| 75 6e 64 65 72 20 61 20 | 70 74 79 20 73 65 73 73 |under a |pty sess|
|000000e0| 69 6f 6e 2c 20 50 61 72 | 74 30 36 2f 30 36 0a 4d |ion, Par|t06/06.M|
|000000f0| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 32 38 38 36 |essage-I|D: <2886|
|00000100| 40 6c 69 74 63 68 69 2e | 62 62 6e 2e 63 6f 6d 3e |@litchi.|bbn.com>|
|00000110| 0a 44 61 74 65 3a 20 31 | 30 20 4f 63 74 20 39 30 |.Date: 1|0 Oct 90|
|00000120| 20 31 34 3a 31 37 3a 31 | 34 20 47 4d 54 0a 4f 72 | 14:17:1|4 GMT.Or|
|00000130| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 42 42 4e 20 |ganizati|on: BBN |
|00000140| 53 79 73 74 65 6d 73 20 | 61 6e 64 20 54 65 63 68 |Systems |and Tech|
|00000150| 6e 6f 6c 6f 67 69 65 73 | 2c 20 43 61 6d 62 72 69 |nologies|, Cambri|
|00000160| 64 67 65 20 4d 41 0a 4c | 69 6e 65 73 3a 20 35 31 |dge MA.L|ines: 51|
|00000170| 34 0a 41 70 70 72 6f 76 | 65 64 3a 20 72 73 61 6c |4.Approv|ed: rsal|
|00000180| 7a 40 75 75 6e 65 74 2e | 55 55 2e 4e 45 54 0a 58 |z@uunet.|UU.NET.X|
|00000190| 2d 43 68 65 63 6b 73 75 | 6d 2d 53 6e 65 66 72 75 |-Checksu|m-Snefru|
|000001a0| 3a 20 65 31 63 61 63 37 | 62 39 20 34 62 35 64 33 |: e1cac7|b9 4b5d3|
|000001b0| 36 33 34 20 35 32 65 61 | 35 37 38 32 20 66 64 37 |634 52ea|5782 fd7|
|000001c0| 34 66 38 39 31 0a 0a 53 | 75 62 6d 69 74 74 65 64 |4f891..S|ubmitted|
|000001d0| 2d 62 79 3a 20 44 61 6e | 20 42 65 72 6e 73 74 65 |-by: Dan| Bernste|
|000001e0| 69 6e 20 3c 62 72 6e 73 | 74 6e 64 40 6b 72 61 6d |in <brns|tnd@kram|
|000001f0| 64 65 6e 2e 61 63 66 2e | 6e 79 75 2e 65 64 75 3e |den.acf.|nyu.edu>|
|00000200| 0a 50 6f 73 74 69 6e 67 | 2d 6e 75 6d 62 65 72 3a |.Posting|-number:|
|00000210| 20 56 6f 6c 75 6d 65 20 | 32 33 2c 20 49 73 73 75 | Volume |23, Issu|
|00000220| 65 20 33 36 0a 41 72 63 | 68 69 76 65 2d 6e 61 6d |e 36.Arc|hive-nam|
|00000230| 65 3a 20 70 74 79 2f 70 | 61 72 74 30 36 0a 0a 23 |e: pty/p|art06..#|
|00000240| 21 20 2f 62 69 6e 2f 73 | 68 0a 23 20 54 68 69 73 |! /bin/s|h.# This|
|00000250| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|00000260| 69 76 65 2e 20 20 52 65 | 6d 6f 76 65 20 61 6e 79 |ive. Re|move any|
|00000270| 74 68 69 6e 67 20 62 65 | 66 6f 72 65 20 74 68 69 |thing be|fore thi|
|00000280| 73 20 6c 69 6e 65 2c 20 | 74 68 65 6e 20 66 65 65 |s line, |then fee|
|00000290| 64 20 69 74 0a 23 20 69 | 6e 74 6f 20 61 20 73 68 |d it.# i|nto a sh|
|000002a0| 65 6c 6c 20 76 69 61 20 | 22 73 68 20 66 69 6c 65 |ell via |"sh file|
|000002b0| 22 20 6f 72 20 73 69 6d | 69 6c 61 72 2e 20 20 54 |" or sim|ilar. T|
|000002c0| 6f 20 6f 76 65 72 77 72 | 69 74 65 20 65 78 69 73 |o overwr|ite exis|
|000002d0| 74 69 6e 67 20 66 69 6c | 65 73 2c 0a 23 20 74 79 |ting fil|es,.# ty|
|000002e0| 70 65 20 22 73 68 20 66 | 69 6c 65 20 2d 63 22 2e |pe "sh f|ile -c".|
|000002f0| 0a 23 20 54 68 65 20 74 | 6f 6f 6c 20 74 68 61 74 |.# The t|ool that|
|00000300| 20 67 65 6e 65 72 61 74 | 65 64 20 74 68 69 73 20 | generat|ed this |
|00000310| 61 70 70 65 61 72 65 64 | 20 69 6e 20 74 68 65 20 |appeared| in the |
|00000320| 63 6f 6d 70 2e 73 6f 75 | 72 63 65 73 2e 75 6e 69 |comp.sou|rces.uni|
|00000330| 78 20 6e 65 77 73 67 72 | 6f 75 70 3b 0a 23 20 73 |x newsgr|oup;.# s|
|00000340| 65 6e 64 20 6d 61 69 6c | 20 74 6f 20 63 6f 6d 70 |end mail| to comp|
|00000350| 2d 73 6f 75 72 63 65 73 | 2d 75 6e 69 78 40 75 75 |-sources|-unix@uu|
|00000360| 6e 65 74 2e 75 75 2e 6e | 65 74 20 69 66 20 79 6f |net.uu.n|et if yo|
|00000370| 75 20 77 61 6e 74 20 74 | 68 61 74 20 74 6f 6f 6c |u want t|hat tool|
|00000380| 2e 0a 23 20 43 6f 6e 74 | 65 6e 74 73 3a 20 20 65 |..# Cont|ents: e|
|00000390| 72 72 2e 68 20 66 69 6c | 65 2e 68 20 66 69 6c 65 |rr.h fil|e.h file|
|000003a0| 2e 68 2e 6e 65 77 20 67 | 65 74 6f 70 74 2e 68 20 |.h.new g|etopt.h |
|000003b0| 6c 6f 67 73 2e 68 20 6d | 61 73 74 65 72 2e 68 20 |logs.h m|aster.h |
|000003c0| 6d 69 73 63 2e 68 0a 23 | 20 20 20 70 61 74 63 68 |misc.h.#| patch|
|000003d0| 2f 54 45 4c 4e 45 54 2e | 46 54 50 20 73 69 67 6c |/TELNET.|FTP sigl|
|000003e0| 65 72 2e 68 20 73 6c 61 | 76 65 2e 68 20 74 65 78 |er.h sla|ve.h tex|
|000003f0| 74 73 2e 68 20 75 74 69 | 6c 2f 63 6f 6e 64 6f 6d |ts.h uti|l/condom|
|00000400| 0a 23 20 20 20 75 74 69 | 6c 2f 65 78 63 6c 6f 66 |.# uti|l/exclof|
|00000410| 66 2e 31 20 75 74 69 6c | 2f 65 78 63 6c 6f 66 66 |f.1 util|/excloff|
|00000420| 2e 63 20 75 74 69 6c 2f | 65 78 63 6c 6f 6e 2e 63 |.c util/|exclon.c|
|00000430| 20 75 74 69 6c 2f 73 63 | 72 69 70 74 0a 23 20 20 | util/sc|ript.# |
|00000440| 20 75 74 69 6c 2f 73 63 | 72 69 70 74 2e 74 69 64 | util/sc|ript.tid|
|00000450| 79 20 75 74 69 6c 2f 73 | 65 73 73 20 75 74 69 6c |y util/s|ess util|
|00000460| 2f 74 69 6f 63 73 74 69 | 2e 31 20 75 74 69 6c 2f |/tiocsti|.1 util/|
|00000470| 74 69 6f 63 73 74 69 2e | 63 0a 23 20 20 20 75 74 |tiocsti.|c.# ut|
|00000480| 69 6c 2f 74 74 79 2e 31 | 20 75 74 69 6c 2f 74 74 |il/tty.1| util/tt|
|00000490| 79 2e 63 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |y.c.# Wr|apped by|
|000004a0| 20 72 73 61 6c 7a 40 6c | 69 74 63 68 69 2e 62 62 | rsalz@l|itchi.bb|
|000004b0| 6e 2e 63 6f 6d 20 6f 6e | 20 57 65 64 20 4f 63 74 |n.com on| Wed Oct|
|000004c0| 20 31 30 20 31 30 3a 31 | 31 3a 34 33 20 31 39 39 | 10 10:1|1:43 199|
|000004d0| 30 0a 50 41 54 48 3d 2f | 62 69 6e 3a 2f 75 73 72 |0.PATH=/|bin:/usr|
|000004e0| 2f 62 69 6e 3a 2f 75 73 | 72 2f 75 63 62 20 3b 20 |/bin:/us|r/ucb ; |
|000004f0| 65 78 70 6f 72 74 20 50 | 41 54 48 0a 65 63 68 6f |export P|ATH.echo|
|00000500| 20 49 66 20 74 68 69 73 | 20 61 72 63 68 69 76 65 | If this| archive|
|00000510| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2c 20 79 6f | is comp|lete, yo|
|00000520| 75 20 77 69 6c 6c 20 73 | 65 65 20 74 68 65 20 66 |u will s|ee the f|
|00000530| 6f 6c 6c 6f 77 69 6e 67 | 20 6d 65 73 73 61 67 65 |ollowing| message|
|00000540| 3a 0a 65 63 68 6f 20 27 | 20 20 20 20 20 20 20 20 |:.echo '| |
|00000550| 20 20 22 73 68 61 72 3a | 20 45 6e 64 20 6f 66 20 | "shar:| End of |
|00000560| 61 72 63 68 69 76 65 20 | 36 20 28 6f 66 20 36 29 |archive |6 (of 6)|
|00000570| 2e 22 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |."'.if t|est -f '|
|00000580| 65 72 72 2e 68 27 20 2d | 61 20 22 24 7b 31 7d 22 |err.h' -|a "${1}"|
|00000590| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|000005a0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|000005b0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|000005c0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|000005d0| 65 72 72 2e 68 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |err.h'\"|.else. |
|000005e0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000005f0| 63 74 69 6e 67 20 5c 22 | 27 65 72 72 2e 68 27 5c |cting \"|'err.h'\|
|00000600| 22 20 5c 28 33 38 35 20 | 63 68 61 72 61 63 74 65 |" \(385 |characte|
|00000610| 72 73 5c 29 0a 20 20 73 | 65 64 20 22 73 2f 5e 58 |rs\). s|ed "s/^X|
|00000620| 2f 2f 22 20 3e 27 65 72 | 72 2e 68 27 20 3c 3c 27 |//" >'er|r.h' <<'|
|00000630| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 2f 2a |END_OF_F|ILE'.X/*|
|00000640| 20 43 6f 70 79 72 69 67 | 68 74 20 31 39 39 30 2c | Copyrig|ht 1990,|
|00000650| 20 44 61 6e 69 65 6c 20 | 4a 2e 20 42 65 72 6e 73 | Daniel |J. Berns|
|00000660| 74 65 69 6e 2e 20 41 6c | 6c 20 72 69 67 68 74 73 |tein. Al|l rights|
|00000670| 20 72 65 73 65 72 76 65 | 64 2e 20 2a 2f 0a 58 0a | reserve|d. */.X.|
|00000680| 58 23 69 66 6e 64 65 66 | 20 50 54 59 5f 45 52 52 |X#ifndef| PTY_ERR|
|00000690| 5f 48 0a 58 23 64 65 66 | 69 6e 65 20 50 54 59 5f |_H.X#def|ine PTY_|
|000006a0| 45 52 52 5f 48 0a 58 0a | 58 23 69 6e 63 6c 75 64 |ERR_H.X.|X#includ|
|000006b0| 65 20 3c 65 72 72 6e 6f | 2e 68 3e 0a 58 65 78 74 |e <errno|.h>.Xext|
|000006c0| 65 72 6e 20 69 6e 74 20 | 65 72 72 6e 6f 3b 20 2f |ern int |errno; /|
|000006d0| 2a 20 6e 6f 74 20 61 6c | 77 61 79 73 20 64 65 66 |* not al|ways def|
|000006e0| 69 6e 65 64 20 69 6e 20 | 65 72 72 6e 6f 2e 68 2c |ined in |errno.h,|
|000006f0| 20 67 72 72 72 72 20 2a | 2f 0a 58 65 78 74 65 72 | grrrr *|/.Xexter|
|00000700| 6e 20 69 6e 74 20 73 79 | 73 5f 6e 65 72 72 3b 0a |n int sy|s_nerr;.|
|00000710| 58 65 78 74 65 72 6e 20 | 63 68 61 72 20 2a 73 79 |Xextern |char *sy|
|00000720| 73 5f 65 72 72 6c 69 73 | 74 5b 5d 3b 0a 58 0a 58 |s_errlis|t[];.X.X|
|00000730| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 66 61 74 61 |extern v|oid fata|
|00000740| 6c 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 76 6f 69 |l();.Xex|tern voi|
|00000750| 64 20 66 61 74 61 6c 69 | 6e 66 6f 28 29 3b 0a 58 |d fatali|nfo();.X|
|00000760| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 66 61 74 61 |extern v|oid fata|
|00000770| 6c 65 72 72 28 29 3b 0a | 58 65 78 74 65 72 6e 20 |lerr();.|Xextern |
|00000780| 76 6f 69 64 20 66 61 74 | 61 6c 65 72 72 32 70 28 |void fat|alerr2p(|
|00000790| 29 3b 0a 58 65 78 74 65 | 72 6e 20 76 6f 69 64 20 |);.Xexte|rn void |
|000007a0| 66 61 74 61 6c 65 72 72 | 70 28 29 3b 0a 58 65 78 |fatalerr|p();.Xex|
|000007b0| 74 65 72 6e 20 76 6f 69 | 64 20 77 61 72 6e 65 72 |tern voi|d warner|
|000007c0| 72 32 28 29 3b 0a 58 0a | 58 23 65 6e 64 69 66 0a |r2();.X.|X#endif.|
|000007d0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 20 20 69 66 |END_OF_F|ILE. if|
|000007e0| 20 74 65 73 74 20 33 38 | 35 20 2d 6e 65 20 60 77 | test 38|5 -ne `w|
|000007f0| 63 20 2d 63 20 3c 27 65 | 72 72 2e 68 27 60 3b 20 |c -c <'e|rr.h'`; |
|00000800| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00000810| 61 72 3a 20 5c 22 27 65 | 72 72 2e 68 27 5c 22 20 |ar: \"'e|rr.h'\" |
|00000820| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00000830| 6f 6e 67 20 73 69 7a 65 | 21 0a 20 20 66 69 0a 20 |ong size|!. fi. |
|00000840| 20 23 20 65 6e 64 20 6f | 66 20 27 65 72 72 2e 68 | # end o|f 'err.h|
|00000850| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00000860| 27 66 69 6c 65 2e 68 27 | 20 2d 61 20 22 24 7b 31 |'file.h'| -a "${1|
|00000870| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00000880| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00000890| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|000008a0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000008b0| 22 27 66 69 6c 65 2e 68 | 27 5c 22 0a 65 6c 73 65 |"'file.h|'\".else|
|000008c0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |. echo |shar: Ex|
|000008d0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 66 69 6c 65 |tracting| \"'file|
|000008e0| 2e 68 27 5c 22 20 5c 28 | 32 32 34 20 63 68 61 72 |.h'\" \(|224 char|
|000008f0| 61 63 74 65 72 73 5c 29 | 0a 20 20 73 65 64 20 22 |acters\)|. sed "|
|00000900| 73 2f 5e 58 2f 2f 22 20 | 3e 27 66 69 6c 65 2e 68 |s/^X//" |>'file.h|
|00000910| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00000920| 27 0a 58 2f 2a 20 43 6f | 70 79 72 69 67 68 74 20 |'.X/* Co|pyright |
|00000930| 31 39 39 30 2c 20 44 61 | 6e 69 65 6c 20 4a 2e 20 |1990, Da|niel J. |
|00000940| 42 65 72 6e 73 74 65 69 | 6e 2e 20 41 6c 6c 20 72 |Bernstei|n. All r|
|00000950| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 20 |ights re|served. |
|00000960| 2a 2f 0a 58 0a 58 23 69 | 66 6e 64 65 66 20 50 54 |*/.X.X#i|fndef PT|
|00000970| 59 5f 46 49 4c 45 5f 48 | 0a 58 23 64 65 66 69 6e |Y_FILE_H|.X#defin|
|00000980| 65 20 50 54 59 5f 46 49 | 4c 45 5f 48 0a 58 0a 58 |e PTY_FI|LE_H.X.X|
|00000990| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 66 69 |#include| <sys/fi|
|000009a0| 6c 65 2e 68 3e 0a 58 23 | 69 66 64 65 66 20 42 53 |le.h>.X#|ifdef BS|
|000009b0| 44 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 6c 69 6d |D.X#incl|ude <lim|
|000009c0| 69 74 73 2e 68 3e 0a 58 | 23 65 6e 64 69 66 0a 58 |its.h>.X|#endif.X|
|000009d0| 23 69 6e 63 6c 75 64 65 | 20 3c 66 63 6e 74 6c 2e |#include| <fcntl.|
|000009e0| 68 3e 0a 58 65 78 74 65 | 72 6e 20 6c 6f 6e 67 20 |h>.Xexte|rn long |
|000009f0| 6c 73 65 65 6b 28 29 3b | 20 2f 2a 20 73 69 67 68 |lseek();| /* sigh|
|00000a00| 2e 20 2a 2f 0a 58 0a 58 | 23 65 6e 64 69 66 0a 45 |. */.X.X|#endif.E|
|00000a10| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00000a20| 74 65 73 74 20 32 32 34 | 20 2d 6e 65 20 60 77 63 |test 224| -ne `wc|
|00000a30| 20 2d 63 20 3c 27 66 69 | 6c 65 2e 68 27 60 3b 20 | -c <'fi|le.h'`; |
|00000a40| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00000a50| 61 72 3a 20 5c 22 27 66 | 69 6c 65 2e 68 27 5c 22 |ar: \"'f|ile.h'\"|
|00000a60| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00000a70| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|00000a80| 20 20 23 20 65 6e 64 20 | 6f 66 20 27 66 69 6c 65 | # end |of 'file|
|00000a90| 2e 68 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |.h'.fi.i|f test -|
|00000aa0| 66 20 27 66 69 6c 65 2e | 68 2e 6e 65 77 27 20 2d |f 'file.|h.new' -|
|00000ab0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000ac0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000ad0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000ae0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000af0| 66 69 6c 65 20 5c 22 27 | 66 69 6c 65 2e 68 2e 6e |file \"'|file.h.n|
|00000b00| 65 77 27 5c 22 0a 65 6c | 73 65 0a 20 20 65 63 68 |ew'\".el|se. ech|
|00000b10| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00000b20| 6e 67 20 5c 22 27 66 69 | 6c 65 2e 68 2e 6e 65 77 |ng \"'fi|le.h.new|
|00000b30| 27 5c 22 20 5c 28 32 32 | 34 20 63 68 61 72 61 63 |'\" \(22|4 charac|
|00000b40| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00000b50| 5e 58 2f 2f 22 20 3e 27 | 66 69 6c 65 2e 68 2e 6e |^X//" >'|file.h.n|
|00000b60| 65 77 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |ew' <<'E|ND_OF_FI|
|00000b70| 4c 45 27 0a 58 2f 2a 20 | 43 6f 70 79 72 69 67 68 |LE'.X/* |Copyrigh|
|00000b80| 74 20 31 39 39 30 2c 20 | 44 61 6e 69 65 6c 20 4a |t 1990, |Daniel J|
|00000b90| 2e 20 42 65 72 6e 73 74 | 65 69 6e 2e 20 41 6c 6c |. Bernst|ein. All|
|00000ba0| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|00000bb0| 2e 20 2a 2f 0a 58 0a 58 | 23 69 66 6e 64 65 66 20 |. */.X.X|#ifndef |
|00000bc0| 50 54 59 5f 46 49 4c 45 | 5f 48 0a 58 23 64 65 66 |PTY_FILE|_H.X#def|
|00000bd0| 69 6e 65 20 50 54 59 5f | 46 49 4c 45 5f 48 0a 58 |ine PTY_|FILE_H.X|
|00000be0| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|00000bf0| 66 69 6c 65 2e 68 3e 0a | 58 23 69 66 64 65 66 20 |file.h>.|X#ifdef |
|00000c00| 42 53 44 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 6c |BSD.X#in|clude <l|
|00000c10| 69 6d 69 74 73 2e 68 3e | 0a 58 23 65 6e 64 69 66 |imits.h>|.X#endif|
|00000c20| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 66 63 6e 74 |.X#inclu|de <fcnt|
|00000c30| 6c 2e 68 3e 0a 58 65 78 | 74 65 72 6e 20 6c 6f 6e |l.h>.Xex|tern lon|
|00000c40| 67 20 6c 73 65 65 6b 28 | 29 3b 20 2f 2a 20 73 69 |g lseek(|); /* si|
|00000c50| 67 68 2e 20 2a 2f 0a 58 | 0a 58 23 65 6e 64 69 66 |gh. */.X|.X#endif|
|00000c60| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00000c70| 66 20 74 65 73 74 20 32 | 32 34 20 2d 6e 65 20 60 |f test 2|24 -ne `|
|00000c80| 77 63 20 2d 63 20 3c 27 | 66 69 6c 65 2e 68 2e 6e |wc -c <'|file.h.n|
|00000c90| 65 77 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |ew'`; th|en. e|
|00000ca0| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 66 69 6c |cho shar|: \"'fil|
|00000cb0| 65 2e 68 2e 6e 65 77 27 | 5c 22 20 75 6e 70 61 63 |e.h.new'|\" unpac|
|00000cc0| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00000cd0| 69 7a 65 21 0a 20 20 66 | 69 0a 20 20 23 20 65 6e |ize!. f|i. # en|
|00000ce0| 64 20 6f 66 20 27 66 69 | 6c 65 2e 68 2e 6e 65 77 |d of 'fi|le.h.new|
|00000cf0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00000d00| 27 67 65 74 6f 70 74 2e | 68 27 20 2d 61 20 22 24 |'getopt.|h' -a "$|
|00000d10| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00000d20| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00000d30| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00000d40| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00000d50| 20 5c 22 27 67 65 74 6f | 70 74 2e 68 27 5c 22 0a | \"'geto|pt.h'\".|
|00000d60| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|00000d70| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00000d80| 67 65 74 6f 70 74 2e 68 | 27 5c 22 20 5c 28 32 35 |getopt.h|'\" \(25|
|00000d90| 30 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 20 |0 charac|ters\). |
|00000da0| 20 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 | sed "s/|^X//" >'|
|00000db0| 67 65 74 6f 70 74 2e 68 | 27 20 3c 3c 27 45 4e 44 |getopt.h|' <<'END|
|00000dc0| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 20 43 6f |_OF_FILE|'.X/* Co|
|00000dd0| 70 79 72 69 67 68 74 20 | 31 39 39 30 2c 20 44 61 |pyright |1990, Da|
|00000de0| 6e 69 65 6c 20 4a 2e 20 | 42 65 72 6e 73 74 65 69 |niel J. |Bernstei|
|00000df0| 6e 2e 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |n. All r|ights re|
|00000e00| 73 65 72 76 65 64 2e 20 | 2a 2f 0a 58 0a 58 23 69 |served. |*/.X.X#i|
|00000e10| 66 6e 64 65 66 20 50 54 | 59 5f 47 45 54 4f 50 54 |fndef PT|Y_GETOPT|
|00000e20| 5f 48 0a 58 23 64 65 66 | 69 6e 65 20 50 54 59 5f |_H.X#def|ine PTY_|
|00000e30| 47 45 54 4f 50 54 5f 48 | 0a 58 0a 58 2f 2a 20 54 |GETOPT_H|.X.X/* T|
|00000e40| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 73 68 6f |he follo|wing sho|
|00000e50| 75 6c 64 20 62 65 20 69 | 6e 20 2f 75 73 72 2f 69 |uld be i|n /usr/i|
|00000e60| 6e 63 6c 75 64 65 2f 67 | 65 74 6f 70 74 2e 68 20 |nclude/g|etopt.h |
|00000e70| 62 75 74 20 6f 66 74 65 | 6e 20 61 72 65 6e 27 74 |but ofte|n aren't|
|00000e80| 2e 20 2a 2f 0a 58 65 78 | 74 65 72 6e 20 69 6e 74 |. */.Xex|tern int|
|00000e90| 20 67 65 74 6f 70 74 28 | 29 3b 0a 58 65 78 74 65 | getopt(|);.Xexte|
|00000ea0| 72 6e 20 63 68 61 72 20 | 2a 6f 70 74 61 72 67 3b |rn char |*optarg;|
|00000eb0| 0a 58 65 78 74 65 72 6e | 20 69 6e 74 20 6f 70 74 |.Xextern| int opt|
|00000ec0| 69 6e 64 3b 0a 58 0a 58 | 23 65 6e 64 69 66 0a 45 |ind;.X.X|#endif.E|
|00000ed0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00000ee0| 74 65 73 74 20 32 35 30 | 20 2d 6e 65 20 60 77 63 |test 250| -ne `wc|
|00000ef0| 20 2d 63 20 3c 27 67 65 | 74 6f 70 74 2e 68 27 60 | -c <'ge|topt.h'`|
|00000f00| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00000f10| 73 68 61 72 3a 20 5c 22 | 27 67 65 74 6f 70 74 2e |shar: \"|'getopt.|
|00000f20| 68 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |h'\" unp|acked wi|
|00000f30| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 20 |th wrong| size!. |
|00000f40| 20 66 69 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 | fi. # |end of '|
|00000f50| 67 65 74 6f 70 74 2e 68 | 27 0a 66 69 0a 69 66 20 |getopt.h|'.fi.if |
|00000f60| 74 65 73 74 20 2d 66 20 | 27 6c 6f 67 73 2e 68 27 |test -f |'logs.h'|
|00000f70| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00000f80| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00000f90| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|00000fa0| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|00000fb0| 67 20 66 69 6c 65 20 5c | 22 27 6c 6f 67 73 2e 68 |g file \|"'logs.h|
|00000fc0| 27 5c 22 0a 65 6c 73 65 | 0a 20 20 65 63 68 6f 20 |'\".else|. echo |
|00000fd0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000fe0| 20 5c 22 27 6c 6f 67 73 | 2e 68 27 5c 22 20 5c 28 | \"'logs|.h'\" \(|
|00000ff0| 31 36 39 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |169 char|acters\)|
|00001000| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|00001010| 3e 27 6c 6f 67 73 2e 68 | 27 20 3c 3c 27 45 4e 44 |>'logs.h|' <<'END|
|00001020| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 20 43 6f |_OF_FILE|'.X/* Co|
|00001030| 70 79 72 69 67 68 74 20 | 31 39 39 30 2c 20 44 61 |pyright |1990, Da|
|00001040| 6e 69 65 6c 20 4a 2e 20 | 42 65 72 6e 73 74 65 69 |niel J. |Bernstei|
|00001050| 6e 2e 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |n. All r|ights re|
|00001060| 73 65 72 76 65 64 2e 20 | 2a 2f 0a 58 0a 58 23 69 |served. |*/.X.X#i|
|00001070| 66 6e 64 65 66 20 50 54 | 59 5f 4c 4f 47 53 5f 48 |fndef PT|Y_LOGS_H|
|00001080| 0a 58 23 64 65 66 69 6e | 65 20 50 54 59 5f 4c 4f |.X#defin|e PTY_LO|
|00001090| 47 53 5f 48 0a 58 0a 58 | 65 78 74 65 72 6e 20 6c |GS_H.X.X|extern l|
|000010a0| 6f 6e 67 20 6e 6f 77 28 | 29 3b 0a 58 65 78 74 65 |ong now(|);.Xexte|
|000010b0| 72 6e 20 69 6e 74 20 75 | 74 6d 70 28 29 3b 0a 58 |rn int u|tmp();.X|
|000010c0| 65 78 74 65 72 6e 20 69 | 6e 74 20 77 74 6d 70 28 |extern i|nt wtmp(|
|000010d0| 29 3b 0a 58 0a 58 23 65 | 6e 64 69 66 0a 45 4e 44 |);.X.X#e|ndif.END|
|000010e0| 5f 4f 46 5f 46 49 4c 45 | 0a 20 20 69 66 20 74 65 |_OF_FILE|. if te|
|000010f0| 73 74 20 31 36 39 20 2d | 6e 65 20 60 77 63 20 2d |st 169 -|ne `wc -|
|00001100| 63 20 3c 27 6c 6f 67 73 | 2e 68 27 60 3b 20 74 68 |c <'logs|.h'`; th|
|00001110| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00001120| 3a 20 5c 22 27 6c 6f 67 | 73 2e 68 27 5c 22 20 75 |: \"'log|s.h'\" u|
|00001130| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00001140| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|00001150| 23 20 65 6e 64 20 6f 66 | 20 27 6c 6f 67 73 2e 68 |# end of| 'logs.h|
|00001160| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00001170| 27 6d 61 73 74 65 72 2e | 68 27 20 2d 61 20 22 24 |'master.|h' -a "$|
|00001180| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00001190| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|000011a0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|000011b0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|000011c0| 20 5c 22 27 6d 61 73 74 | 65 72 2e 68 27 5c 22 0a | \"'mast|er.h'\".|
|000011d0| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|000011e0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|000011f0| 6d 61 73 74 65 72 2e 68 | 27 5c 22 20 5c 28 31 33 |master.h|'\" \(13|
|00001200| 38 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 20 |8 charac|ters\). |
|00001210| 20 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 | sed "s/|^X//" >'|
|00001220| 6d 61 73 74 65 72 2e 68 | 27 20 3c 3c 27 45 4e 44 |master.h|' <<'END|
|00001230| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 20 43 6f |_OF_FILE|'.X/* Co|
|00001240| 70 79 72 69 67 68 74 20 | 31 39 39 30 2c 20 44 61 |pyright |1990, Da|
|00001250| 6e 69 65 6c 20 4a 2e 20 | 42 65 72 6e 73 74 65 69 |niel J. |Bernstei|
|00001260| 6e 2e 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |n. All r|ights re|
|00001270| 73 65 72 76 65 64 2e 20 | 2a 2f 0a 58 0a 58 23 69 |served. |*/.X.X#i|
|00001280| 66 6e 64 65 66 20 50 54 | 59 5f 4d 41 53 54 45 52 |fndef PT|Y_MASTER|
|00001290| 5f 48 0a 58 23 64 65 66 | 69 6e 65 20 50 54 59 5f |_H.X#def|ine PTY_|
|000012a0| 4d 41 53 54 45 52 5f 48 | 0a 58 0a 58 65 78 74 65 |MASTER_H|.X.Xexte|
|000012b0| 72 6e 20 76 6f 69 64 20 | 6d 61 73 74 65 72 28 29 |rn void |master()|
|000012c0| 3b 0a 58 0a 58 23 65 6e | 64 69 66 0a 45 4e 44 5f |;.X.X#en|dif.END_|
|000012d0| 4f 46 5f 46 49 4c 45 0a | 20 20 69 66 20 74 65 73 |OF_FILE.| if tes|
|000012e0| 74 20 31 33 38 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 138 -n|e `wc -c|
|000012f0| 20 3c 27 6d 61 73 74 65 | 72 2e 68 27 60 3b 20 74 | <'maste|r.h'`; t|
|00001300| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00001310| 72 3a 20 5c 22 27 6d 61 | 73 74 65 72 2e 68 27 5c |r: \"'ma|ster.h'\|
|00001320| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00001330| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 20 20 66 69 |wrong si|ze!. fi|
|00001340| 0a 20 20 23 20 65 6e 64 | 20 6f 66 20 27 6d 61 73 |. # end| of 'mas|
|00001350| 74 65 72 2e 68 27 0a 66 | 69 0a 69 66 20 74 65 73 |ter.h'.f|i.if tes|
|00001360| 74 20 2d 66 20 27 6d 69 | 73 63 2e 68 27 20 2d 61 |t -f 'mi|sc.h' -a|
|00001370| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00001380| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00001390| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|000013a0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|000013b0| 69 6c 65 20 5c 22 27 6d | 69 73 63 2e 68 27 5c 22 |ile \"'m|isc.h'\"|
|000013c0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|000013d0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000013e0| 27 6d 69 73 63 2e 68 27 | 5c 22 20 5c 28 31 39 30 |'misc.h'|\" \(190|
|000013f0| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 20 20 | charact|ers\). |
|00001400| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 6d |sed "s/^|X//" >'m|
|00001410| 69 73 63 2e 68 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |isc.h' <|<'END_OF|
|00001420| 5f 46 49 4c 45 27 0a 58 | 2f 2a 20 43 6f 70 79 72 |_FILE'.X|/* Copyr|
|00001430| 69 67 68 74 20 31 39 39 | 30 2c 20 44 61 6e 69 65 |ight 199|0, Danie|
|00001440| 6c 20 4a 2e 20 42 65 72 | 6e 73 74 65 69 6e 2e 20 |l J. Ber|nstein. |
|00001450| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|00001460| 76 65 64 2e 20 2a 2f 0a | 58 0a 58 23 69 66 6e 64 |ved. */.|X.X#ifnd|
|00001470| 65 66 20 50 54 59 5f 4d | 49 53 43 5f 48 0a 58 23 |ef PTY_M|ISC_H.X#|
|00001480| 64 65 66 69 6e 65 20 50 | 54 59 5f 4d 49 53 43 5f |define P|TY_MISC_|
|00001490| 48 0a 58 0a 58 65 78 74 | 65 72 6e 20 69 6e 74 20 |H.X.Xext|ern int |
|000014a0| 73 65 73 73 64 69 72 28 | 29 3b 0a 58 65 78 74 65 |sessdir(|);.Xexte|
|000014b0| 72 6e 20 63 68 61 72 20 | 2a 72 65 61 6c 5f 74 74 |rn char |*real_tt|
|000014c0| 79 6e 61 6d 65 28 29 3b | 0a 58 65 78 74 65 72 6e |yname();|.Xextern|
|000014d0| 20 76 6f 69 64 20 73 65 | 74 75 73 65 72 6e 61 6d | void se|tusernam|
|000014e0| 65 28 29 3b 0a 58 0a 58 | 23 65 6e 64 69 66 0a 45 |e();.X.X|#endif.E|
|000014f0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00001500| 74 65 73 74 20 31 39 30 | 20 2d 6e 65 20 60 77 63 |test 190| -ne `wc|
|00001510| 20 2d 63 20 3c 27 6d 69 | 73 63 2e 68 27 60 3b 20 | -c <'mi|sc.h'`; |
|00001520| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00001530| 61 72 3a 20 5c 22 27 6d | 69 73 63 2e 68 27 5c 22 |ar: \"'m|isc.h'\"|
|00001540| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00001550| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|00001560| 20 20 23 20 65 6e 64 20 | 6f 66 20 27 6d 69 73 63 | # end |of 'misc|
|00001570| 2e 68 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |.h'.fi.i|f test -|
|00001580| 66 20 27 70 61 74 63 68 | 2f 54 45 4c 4e 45 54 2e |f 'patch|/TELNET.|
|00001590| 46 54 50 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |FTP' -a |"${1}" !|
|000015a0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000015b0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|000015c0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|000015d0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 70 61 |sting fi|le \"'pa|
|000015e0| 74 63 68 2f 54 45 4c 4e | 45 54 2e 46 54 50 27 5c |tch/TELN|ET.FTP'\|
|000015f0| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|00001600| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00001610| 22 27 70 61 74 63 68 2f | 54 45 4c 4e 45 54 2e 46 |"'patch/|TELNET.F|
|00001620| 54 50 27 5c 22 20 5c 28 | 36 39 20 63 68 61 72 61 |TP'\" \(|69 chara|
|00001630| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|00001640| 2f 5e 58 2f 2f 22 20 3e | 27 70 61 74 63 68 2f 54 |/^X//" >|'patch/T|
|00001650| 45 4c 4e 45 54 2e 46 54 | 50 27 20 3c 3c 27 45 4e |ELNET.FT|P' <<'EN|
|00001660| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 75 73 65 72 |D_OF_FIL|E'.Xuser|
|00001670| 20 61 6e 6f 6e 79 6d 6f | 75 73 20 70 74 79 0a 58 | anonymo|us pty.X|
|00001680| 63 64 20 70 75 62 0a 58 | 74 79 70 65 20 62 69 6e |cd pub.X|type bin|
|00001690| 61 72 79 0a 58 67 65 74 | 20 74 65 6c 6e 65 74 2e |ary.Xget| telnet.|
|000016a0| 39 30 2e 30 36 2e 32 38 | 2e 74 61 72 2e 5a 0a 58 |90.06.28|.tar.Z.X|
|000016b0| 71 75 69 74 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |quit.END|_OF_FILE|
|000016c0| 0a 20 20 69 66 20 74 65 | 73 74 20 36 39 20 2d 6e |. if te|st 69 -n|
|000016d0| 65 20 60 77 63 20 2d 63 | 20 3c 27 70 61 74 63 68 |e `wc -c| <'patch|
|000016e0| 2f 54 45 4c 4e 45 54 2e | 46 54 50 27 60 3b 20 74 |/TELNET.|FTP'`; t|
|000016f0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00001700| 72 3a 20 5c 22 27 70 61 | 74 63 68 2f 54 45 4c 4e |r: \"'pa|tch/TELN|
|00001710| 45 54 2e 46 54 50 27 5c | 22 20 75 6e 70 61 63 6b |ET.FTP'\|" unpack|
|00001720| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00001730| 7a 65 21 0a 20 20 66 69 | 0a 20 20 23 20 65 6e 64 |ze!. fi|. # end|
|00001740| 20 6f 66 20 27 70 61 74 | 63 68 2f 54 45 4c 4e 45 | of 'pat|ch/TELNE|
|00001750| 54 2e 46 54 50 27 0a 66 | 69 0a 69 66 20 74 65 73 |T.FTP'.f|i.if tes|
|00001760| 74 20 2d 66 20 27 73 69 | 67 6c 65 72 2e 68 27 20 |t -f 'si|gler.h' |
|00001770| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00001780| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00001790| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|000017a0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|000017b0| 20 66 69 6c 65 20 5c 22 | 27 73 69 67 6c 65 72 2e | file \"|'sigler.|
|000017c0| 68 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |h'\".els|e. echo|
|000017d0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000017e0| 67 20 5c 22 27 73 69 67 | 6c 65 72 2e 68 27 5c 22 |g \"'sig|ler.h'\"|
|000017f0| 20 5c 28 31 33 38 20 63 | 68 61 72 61 63 74 65 72 | \(138 c|haracter|
|00001800| 73 5c 29 0a 20 20 73 65 | 64 20 22 73 2f 5e 58 2f |s\). se|d "s/^X/|
|00001810| 2f 22 20 3e 27 73 69 67 | 6c 65 72 2e 68 27 20 3c |/" >'sig|ler.h' <|
|00001820| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00001830| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |/* Copyr|ight 199|
|00001840| 30 2c 20 44 61 6e 69 65 | 6c 20 4a 2e 20 42 65 72 |0, Danie|l J. Ber|
|00001850| 6e 73 74 65 69 6e 2e 20 | 41 6c 6c 20 72 69 67 68 |nstein. |All righ|
|00001860| 74 73 20 72 65 73 65 72 | 76 65 64 2e 20 2a 2f 0a |ts reser|ved. */.|
|00001870| 58 0a 58 23 69 66 6e 64 | 65 66 20 50 54 59 5f 53 |X.X#ifnd|ef PTY_S|
|00001880| 49 47 4c 45 52 5f 48 0a | 58 23 64 65 66 69 6e 65 |IGLER_H.|X#define|
|00001890| 20 50 54 59 5f 53 49 47 | 4c 45 52 5f 48 0a 58 0a | PTY_SIG|LER_H.X.|
|000018a0| 58 65 78 74 65 72 6e 20 | 76 6f 69 64 20 73 69 67 |Xextern |void sig|
|000018b0| 6c 65 72 28 29 3b 0a 58 | 0a 58 23 65 6e 64 69 66 |ler();.X|.X#endif|
|000018c0| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|000018d0| 66 20 74 65 73 74 20 31 | 33 38 20 2d 6e 65 20 60 |f test 1|38 -ne `|
|000018e0| 77 63 20 2d 63 20 3c 27 | 73 69 67 6c 65 72 2e 68 |wc -c <'|sigler.h|
|000018f0| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00001900| 6f 20 73 68 61 72 3a 20 | 5c 22 27 73 69 67 6c 65 |o shar: |\"'sigle|
|00001910| 72 2e 68 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |r.h'\" u|npacked |
|00001920| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00001930| 0a 20 20 66 69 0a 20 20 | 23 20 65 6e 64 20 6f 66 |. fi. |# end of|
|00001940| 20 27 73 69 67 6c 65 72 | 2e 68 27 0a 66 69 0a 69 | 'sigler|.h'.fi.i|
|00001950| 66 20 74 65 73 74 20 2d | 66 20 27 73 6c 61 76 65 |f test -|f 'slave|
|00001960| 2e 68 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.h' -a "|${1}" !=|
|00001970| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00001980| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00001990| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|000019a0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 73 6c 61 |ting fil|e \"'sla|
|000019b0| 76 65 2e 68 27 5c 22 0a | 65 6c 73 65 0a 20 20 65 |ve.h'\".|else. e|
|000019c0| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|000019d0| 74 69 6e 67 20 5c 22 27 | 73 6c 61 76 65 2e 68 27 |ting \"'|slave.h'|
|000019e0| 5c 22 20 5c 28 31 33 35 | 20 63 68 61 72 61 63 74 |\" \(135| charact|
|000019f0| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|00001a00| 58 2f 2f 22 20 3e 27 73 | 6c 61 76 65 2e 68 27 20 |X//" >'s|lave.h' |
|00001a10| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00001a20| 58 2f 2a 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |X/* Copy|right 19|
|00001a30| 39 30 2c 20 44 61 6e 69 | 65 6c 20 4a 2e 20 42 65 |90, Dani|el J. Be|
|00001a40| 72 6e 73 74 65 69 6e 2e | 20 41 6c 6c 20 72 69 67 |rnstein.| All rig|
|00001a50| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 20 2a 2f |hts rese|rved. */|
|00001a60| 0a 58 0a 58 23 69 66 6e | 64 65 66 20 50 54 59 5f |.X.X#ifn|def PTY_|
|00001a70| 53 4c 41 56 45 5f 48 0a | 58 23 64 65 66 69 6e 65 |SLAVE_H.|X#define|
|00001a80| 20 50 54 59 5f 53 4c 41 | 56 45 5f 48 0a 58 0a 58 | PTY_SLA|VE_H.X.X|
|00001a90| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 73 6c 61 76 |extern v|oid slav|
|00001aa0| 65 28 29 3b 0a 58 0a 58 | 23 65 6e 64 69 66 0a 45 |e();.X.X|#endif.E|
|00001ab0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00001ac0| 74 65 73 74 20 31 33 35 | 20 2d 6e 65 20 60 77 63 |test 135| -ne `wc|
|00001ad0| 20 2d 63 20 3c 27 73 6c | 61 76 65 2e 68 27 60 3b | -c <'sl|ave.h'`;|
|00001ae0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00001af0| 68 61 72 3a 20 5c 22 27 | 73 6c 61 76 65 2e 68 27 |har: \"'|slave.h'|
|00001b00| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00001b10| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 20 20 66 | wrong s|ize!. f|
|00001b20| 69 0a 20 20 23 20 65 6e | 64 20 6f 66 20 27 73 6c |i. # en|d of 'sl|
|00001b30| 61 76 65 2e 68 27 0a 66 | 69 0a 69 66 20 74 65 73 |ave.h'.f|i.if tes|
|00001b40| 74 20 2d 66 20 27 74 65 | 78 74 73 2e 68 27 20 2d |t -f 'te|xts.h' -|
|00001b50| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00001b60| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00001b70| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00001b80| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00001b90| 66 69 6c 65 20 5c 22 27 | 74 65 78 74 73 2e 68 27 |file \"'|texts.h'|
|00001ba0| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|00001bb0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00001bc0| 5c 22 27 74 65 78 74 73 | 2e 68 27 5c 22 20 5c 28 |\"'texts|.h'\" \(|
|00001bd0| 32 37 33 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |273 char|acters\)|
|00001be0| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|00001bf0| 3e 27 74 65 78 74 73 2e | 68 27 20 3c 3c 27 45 4e |>'texts.|h' <<'EN|
|00001c00| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2f 2a 20 43 |D_OF_FIL|E'.X/* C|
|00001c10| 6f 70 79 72 69 67 68 74 | 20 31 39 39 30 2c 20 44 |opyright| 1990, D|
|00001c20| 61 6e 69 65 6c 20 4a 2e | 20 42 65 72 6e 73 74 65 |aniel J.| Bernste|
|00001c30| 69 6e 2e 20 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |in. All |rights r|
|00001c40| 65 73 65 72 76 65 64 2e | 20 2a 2f 0a 58 0a 58 23 |eserved.| */.X.X#|
|00001c50| 69 66 6e 64 65 66 20 50 | 54 59 5f 54 45 58 54 53 |ifndef P|TY_TEXTS|
|00001c60| 5f 48 0a 58 23 64 65 66 | 69 6e 65 20 50 54 59 5f |_H.X#def|ine PTY_|
|00001c70| 54 45 58 54 53 5f 48 0a | 58 0a 58 65 78 74 65 72 |TEXTS_H.|X.Xexter|
|00001c80| 6e 20 63 68 61 72 20 2a | 70 74 79 61 75 74 68 6f |n char *|ptyautho|
|00001c90| 72 5b 5d 3b 0a 58 65 78 | 74 65 72 6e 20 63 68 61 |r[];.Xex|tern cha|
|00001ca0| 72 20 2a 70 74 79 76 65 | 72 73 69 6f 6e 5b 5d 3b |r *ptyve|rsion[];|
|00001cb0| 0a 58 65 78 74 65 72 6e | 20 63 68 61 72 20 2a 70 |.Xextern| char *p|
|00001cc0| 74 79 63 6f 70 79 72 69 | 67 68 74 5b 5d 3b 0a 58 |tycopyri|ght[];.X|
|00001cd0| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 70 74 79 |extern c|har *pty|
|00001ce0| 77 61 72 72 61 6e 74 79 | 5b 5d 3b 0a 58 65 78 74 |warranty|[];.Xext|
|00001cf0| 65 72 6e 20 63 68 61 72 | 20 2a 70 74 79 75 73 61 |ern char| *ptyusa|
|00001d00| 67 65 5b 5d 3b 0a 58 65 | 78 74 65 72 6e 20 63 68 |ge[];.Xe|xtern ch|
|00001d10| 61 72 20 2a 70 74 79 68 | 65 6c 70 5b 5d 3b 0a 58 |ar *ptyh|elp[];.X|
|00001d20| 0a 58 23 65 6e 64 69 66 | 0a 45 4e 44 5f 4f 46 5f |.X#endif|.END_OF_|
|00001d30| 46 49 4c 45 0a 20 20 69 | 66 20 74 65 73 74 20 32 |FILE. i|f test 2|
|00001d40| 37 33 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |73 -ne `|wc -c <'|
|00001d50| 74 65 78 74 73 2e 68 27 | 60 3b 20 74 68 65 6e 0a |texts.h'|`; then.|
|00001d60| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00001d70| 22 27 74 65 78 74 73 2e | 68 27 5c 22 20 75 6e 70 |"'texts.|h'\" unp|
|00001d80| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00001d90| 20 73 69 7a 65 21 0a 20 | 20 66 69 0a 20 20 23 20 | size!. | fi. # |
|00001da0| 65 6e 64 20 6f 66 20 27 | 74 65 78 74 73 2e 68 27 |end of '|texts.h'|
|00001db0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00001dc0| 75 74 69 6c 2f 63 6f 6e | 64 6f 6d 27 20 2d 61 20 |util/con|dom' -a |
|00001dd0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00001de0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00001df0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00001e00| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00001e10| 6c 65 20 5c 22 27 75 74 | 69 6c 2f 63 6f 6e 64 6f |le \"'ut|il/condo|
|00001e20| 6d 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |m'\".els|e. echo|
|00001e30| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00001e40| 67 20 5c 22 27 75 74 69 | 6c 2f 63 6f 6e 64 6f 6d |g \"'uti|l/condom|
|00001e50| 27 5c 22 20 5c 28 34 34 | 20 63 68 61 72 61 63 74 |'\" \(44| charact|
|00001e60| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|00001e70| 58 2f 2f 22 20 3e 27 75 | 74 69 6c 2f 63 6f 6e 64 |X//" >'u|til/cond|
|00001e80| 6f 6d 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |om' <<'E|ND_OF_FI|
|00001e90| 4c 45 27 0a 58 23 21 2f | 62 69 6e 2f 73 68 0a 58 |LE'.X#!/|bin/sh.X|
|00001ea0| 23 20 50 75 62 6c 69 63 | 20 64 6f 6d 61 69 6e 2e |# Public| domain.|
|00001eb0| 0a 58 65 78 65 63 20 70 | 74 79 20 2d 30 20 22 24 |.Xexec p|ty -0 "$|
|00001ec0| 40 22 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |@".END_O|F_FILE. |
|00001ed0| 20 69 66 20 74 65 73 74 | 20 34 34 20 2d 6e 65 20 | if test| 44 -ne |
|00001ee0| 60 77 63 20 2d 63 20 3c | 27 75 74 69 6c 2f 63 6f |`wc -c <|'util/co|
|00001ef0| 6e 64 6f 6d 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |ndom'`; |then. |
|00001f00| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 75 | echo sh|ar: \"'u|
|00001f10| 74 69 6c 2f 63 6f 6e 64 | 6f 6d 27 5c 22 20 75 6e |til/cond|om'\" un|
|00001f20| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00001f30| 67 20 73 69 7a 65 21 0a | 20 20 66 69 0a 20 20 63 |g size!.| fi. c|
|00001f40| 68 6d 6f 64 20 2b 78 20 | 27 75 74 69 6c 2f 63 6f |hmod +x |'util/co|
|00001f50| 6e 64 6f 6d 27 0a 20 20 | 23 20 65 6e 64 20 6f 66 |ndom'. |# end of|
|00001f60| 20 27 75 74 69 6c 2f 63 | 6f 6e 64 6f 6d 27 0a 66 | 'util/c|ondom'.f|
|00001f70| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 75 74 |i.if tes|t -f 'ut|
|00001f80| 69 6c 2f 65 78 63 6c 6f | 66 66 2e 31 27 20 2d 61 |il/exclo|ff.1' -a|
|00001f90| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00001fa0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00001fb0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00001fc0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00001fd0| 69 6c 65 20 5c 22 27 75 | 74 69 6c 2f 65 78 63 6c |ile \"'u|til/excl|
|00001fe0| 6f 66 66 2e 31 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |off.1'\"|.else. |
|00001ff0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00002000| 63 74 69 6e 67 20 5c 22 | 27 75 74 69 6c 2f 65 78 |cting \"|'util/ex|
|00002010| 63 6c 6f 66 66 2e 31 27 | 5c 22 20 5c 28 31 38 20 |cloff.1'|\" \(18 |
|00002020| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 20 20 73 |characte|rs\). s|
|00002030| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 75 74 |ed "s/^X|//" >'ut|
|00002040| 69 6c 2f 65 78 63 6c 6f | 66 66 2e 31 27 20 3c 3c |il/exclo|ff.1' <<|
|00002050| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 2e |'END_OF_|FILE'.X.|
|00002060| 73 6f 20 6d 61 6e 31 2f | 65 78 63 6c 6f 6e 2e 31 |so man1/|exclon.1|
|00002070| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00002080| 66 20 74 65 73 74 20 31 | 38 20 2d 6e 65 20 60 77 |f test 1|8 -ne `w|
|00002090| 63 20 2d 63 20 3c 27 75 | 74 69 6c 2f 65 78 63 6c |c -c <'u|til/excl|
|000020a0| 6f 66 66 2e 31 27 60 3b | 20 74 68 65 6e 0a 20 20 |off.1'`;| then. |
|000020b0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|000020c0| 75 74 69 6c 2f 65 78 63 | 6c 6f 66 66 2e 31 27 5c |util/exc|loff.1'\|
|000020d0| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|000020e0| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 20 20 66 69 |wrong si|ze!. fi|
|000020f0| 0a 20 20 23 20 65 6e 64 | 20 6f 66 20 27 75 74 69 |. # end| of 'uti|
|00002100| 6c 2f 65 78 63 6c 6f 66 | 66 2e 31 27 0a 66 69 0a |l/exclof|f.1'.fi.|
|00002110| 69 66 20 74 65 73 74 20 | 2d 66 20 27 75 74 69 6c |if test |-f 'util|
|00002120| 2f 65 78 63 6c 6f 66 66 | 2e 63 27 20 2d 61 20 22 |/excloff|.c' -a "|
|00002130| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00002140| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00002150| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00002160| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00002170| 65 20 5c 22 27 75 74 69 | 6c 2f 65 78 63 6c 6f 66 |e \"'uti|l/exclof|
|00002180| 66 2e 63 27 5c 22 0a 65 | 6c 73 65 0a 20 20 65 63 |f.c'\".e|lse. ec|
|00002190| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|000021a0| 69 6e 67 20 5c 22 27 75 | 74 69 6c 2f 65 78 63 6c |ing \"'u|til/excl|
|000021b0| 6f 66 66 2e 63 27 5c 22 | 20 5c 28 31 31 30 20 63 |off.c'\"| \(110 c|
|000021c0| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 20 20 73 65 |haracter|s\). se|
|000021d0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 75 74 69 |d "s/^X/|/" >'uti|
|000021e0| 6c 2f 65 78 63 6c 6f 66 | 66 2e 63 27 20 3c 3c 27 |l/exclof|f.c' <<'|
|000021f0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 2f 2a |END_OF_F|ILE'.X/*|
|00002200| 20 50 75 62 6c 69 63 20 | 64 6f 6d 61 69 6e 2e 20 | Public |domain. |
|00002210| 2a 2f 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |*/.X#inc|lude <sy|
|00002220| 73 2f 69 6f 63 74 6c 2e | 68 3e 0a 58 0a 58 6d 61 |s/ioctl.|h>.X.Xma|
|00002230| 69 6e 28 29 0a 58 7b 0a | 58 20 28 76 6f 69 64 29 |in().X{.|X (void)|
|00002240| 20 69 6f 63 74 6c 28 31 | 2c 28 75 6e 73 69 67 6e | ioctl(1|,(unsign|
|00002250| 65 64 20 6c 6f 6e 67 29 | 20 54 49 4f 43 4e 58 43 |ed long)| TIOCNXC|
|00002260| 4c 2c 28 63 68 61 72 20 | 2a 29 20 30 29 3b 0a 58 |L,(char |*) 0);.X|
|00002270| 7d 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 20 20 |}.END_OF|_FILE. |
|00002280| 69 66 20 74 65 73 74 20 | 31 31 30 20 2d 6e 65 20 |if test |110 -ne |
|00002290| 60 77 63 20 2d 63 20 3c | 27 75 74 69 6c 2f 65 78 |`wc -c <|'util/ex|
|000022a0| 63 6c 6f 66 66 2e 63 27 | 60 3b 20 74 68 65 6e 0a |cloff.c'|`; then.|
|000022b0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|000022c0| 22 27 75 74 69 6c 2f 65 | 78 63 6c 6f 66 66 2e 63 |"'util/e|xcloff.c|
|000022d0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000022e0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|000022f0| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 75 |fi. # e|nd of 'u|
|00002300| 74 69 6c 2f 65 78 63 6c | 6f 66 66 2e 63 27 0a 66 |til/excl|off.c'.f|
|00002310| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 75 74 |i.if tes|t -f 'ut|
|00002320| 69 6c 2f 65 78 63 6c 6f | 6e 2e 63 27 20 2d 61 20 |il/exclo|n.c' -a |
|00002330| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00002340| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00002350| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00002360| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00002370| 6c 65 20 5c 22 27 75 74 | 69 6c 2f 65 78 63 6c 6f |le \"'ut|il/exclo|
|00002380| 6e 2e 63 27 5c 22 0a 65 | 6c 73 65 0a 20 20 65 63 |n.c'\".e|lse. ec|
|00002390| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|000023a0| 69 6e 67 20 5c 22 27 75 | 74 69 6c 2f 65 78 63 6c |ing \"'u|til/excl|
|000023b0| 6f 6e 2e 63 27 5c 22 20 | 5c 28 31 31 30 20 63 68 |on.c'\" |\(110 ch|
|000023c0| 61 72 61 63 74 65 72 73 | 5c 29 0a 20 20 73 65 64 |aracters|\). sed|
|000023d0| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 75 74 69 6c | "s/^X//|" >'util|
|000023e0| 2f 65 78 63 6c 6f 6e 2e | 63 27 20 3c 3c 27 45 4e |/exclon.|c' <<'EN|
|000023f0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2f 2a 20 50 |D_OF_FIL|E'.X/* P|
|00002400| 75 62 6c 69 63 20 64 6f | 6d 61 69 6e 2e 20 2a 2f |ublic do|main. */|
|00002410| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|00002420| 69 6f 63 74 6c 2e 68 3e | 0a 58 0a 58 6d 61 69 6e |ioctl.h>|.X.Xmain|
|00002430| 28 29 0a 58 7b 0a 58 20 | 28 76 6f 69 64 29 20 69 |().X{.X |(void) i|
|00002440| 6f 63 74 6c 28 31 2c 28 | 75 6e 73 69 67 6e 65 64 |octl(1,(|unsigned|
|00002450| 20 6c 6f 6e 67 29 20 54 | 49 4f 43 45 58 43 4c 2c | long) T|IOCEXCL,|
|00002460| 28 63 68 61 72 20 2a 29 | 20 30 29 3b 0a 58 7d 0a |(char *)| 0);.X}.|
|00002470| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 20 20 69 66 |END_OF_F|ILE. if|
|00002480| 20 74 65 73 74 20 31 31 | 30 20 2d 6e 65 20 60 77 | test 11|0 -ne `w|
|00002490| 63 20 2d 63 20 3c 27 75 | 74 69 6c 2f 65 78 63 6c |c -c <'u|til/excl|
|000024a0| 6f 6e 2e 63 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |on.c'`; |then. |
|000024b0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 75 | echo sh|ar: \"'u|
|000024c0| 74 69 6c 2f 65 78 63 6c | 6f 6e 2e 63 27 5c 22 20 |til/excl|on.c'\" |
|000024d0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000024e0| 6f 6e 67 20 73 69 7a 65 | 21 0a 20 20 66 69 0a 20 |ong size|!. fi. |
|000024f0| 20 23 20 65 6e 64 20 6f | 66 20 27 75 74 69 6c 2f | # end o|f 'util/|
|00002500| 65 78 63 6c 6f 6e 2e 63 | 27 0a 66 69 0a 69 66 20 |exclon.c|'.fi.if |
|00002510| 74 65 73 74 20 2d 66 20 | 27 75 74 69 6c 2f 73 63 |test -f |'util/sc|
|00002520| 72 69 70 74 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |ript' -a| "${1}" |
|00002530| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00002540| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00002550| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00002560| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 75 |isting f|ile \"'u|
|00002570| 74 69 6c 2f 73 63 72 69 | 70 74 27 5c 22 0a 65 6c |til/scri|pt'\".el|
|00002580| 73 65 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |se. ech|o shar: |
|00002590| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 75 74 |Extracti|ng \"'ut|
|000025a0| 69 6c 2f 73 63 72 69 70 | 74 27 5c 22 20 5c 28 32 |il/scrip|t'\" \(2|
|000025b0| 39 39 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |99 chara|cters\).|
|000025c0| 20 20 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e | sed "s|/^X//" >|
|000025d0| 27 75 74 69 6c 2f 73 63 | 72 69 70 74 27 20 3c 3c |'util/sc|ript' <<|
|000025e0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 23 |'END_OF_|FILE'.X#|
|000025f0| 21 2f 62 69 6e 2f 73 68 | 0a 58 23 20 50 75 62 6c |!/bin/sh|.X# Publ|
|00002600| 69 63 20 64 6f 6d 61 69 | 6e 2e 0a 58 63 61 73 65 |ic domai|n..Xcase|
|00002610| 20 22 24 40 22 20 69 6e | 0a 58 22 22 29 20 65 78 | "$@" in|.X"") ex|
|00002620| 74 72 61 3d 74 79 70 65 | 73 63 72 69 70 74 20 3b |tra=type|script ;|
|00002630| 3b 0a 58 22 2d 61 22 29 | 20 65 78 74 72 61 3d 74 |;.X"-a")| extra=t|
|00002640| 79 70 65 73 63 72 69 70 | 74 20 3b 3b 0a 58 22 2d |ypescrip|t ;;.X"-|
|00002650| 69 22 29 20 65 78 74 72 | 61 3d 74 79 70 65 73 63 |i") extr|a=typesc|
|00002660| 72 69 70 74 20 3b 3b 0a | 58 22 2d 61 20 2d 69 22 |ript ;;.|X"-a -i"|
|00002670| 29 20 65 78 74 72 61 3d | 74 79 70 65 73 63 72 69 |) extra=|typescri|
|00002680| 70 74 20 3b 3b 0a 58 65 | 73 61 63 0a 58 65 63 68 |pt ;;.Xe|sac.Xech|
|00002690| 6f 20 22 53 63 72 69 70 | 74 20 73 74 61 72 74 65 |o "Scrip|t starte|
|000026a0| 64 2c 20 74 65 65 69 6e | 67 20 24 40 22 20 22 24 |d, teein|g $@" "$|
|000026b0| 65 78 74 72 61 22 0a 58 | 28 20 65 63 68 6f 20 27 |extra".X|( echo '|
|000026c0| 53 63 72 69 70 74 20 73 | 74 61 72 74 65 64 20 6f |Script s|tarted o|
|000026d0| 6e 20 27 60 64 61 74 65 | 60 3b 0a 58 20 20 70 74 |n '`date|`;.X pt|
|000026e0| 79 20 2d 73 20 22 24 53 | 48 45 4c 4c 22 3b 0a 58 |y -s "$S|HELL";.X|
|000026f0| 20 20 65 63 68 6f 20 27 | 53 63 72 69 70 74 20 64 | echo '|Script d|
|00002700| 6f 6e 65 20 6f 6e 20 27 | 60 64 61 74 65 60 20 29 |one on '|`date` )|
|00002710| 20 7c 20 74 65 65 20 22 | 24 40 22 20 22 24 65 78 | | tee "|$@" "$ex|
|00002720| 74 72 61 22 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |tra".END|_OF_FILE|
|00002730| 0a 20 20 69 66 20 74 65 | 73 74 20 32 39 39 20 2d |. if te|st 299 -|
|00002740| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 75 74 69 6c |ne `wc -|c <'util|
|00002750| 2f 73 63 72 69 70 74 27 | 60 3b 20 74 68 65 6e 0a |/script'|`; then.|
|00002760| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00002770| 22 27 75 74 69 6c 2f 73 | 63 72 69 70 74 27 5c 22 |"'util/s|cript'\"|
|00002780| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00002790| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|000027a0| 20 20 63 68 6d 6f 64 20 | 2b 78 20 27 75 74 69 6c | chmod |+x 'util|
|000027b0| 2f 73 63 72 69 70 74 27 | 0a 20 20 23 20 65 6e 64 |/script'|. # end|
|000027c0| 20 6f 66 20 27 75 74 69 | 6c 2f 73 63 72 69 70 74 | of 'uti|l/script|
|000027d0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|000027e0| 27 75 74 69 6c 2f 73 63 | 72 69 70 74 2e 74 69 64 |'util/sc|ript.tid|
|000027f0| 79 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |y' -a "$|{1}" != |
|00002800| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00002810| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00002820| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00002830| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 75 74 69 6c |ing file| \"'util|
|00002840| 2f 73 63 72 69 70 74 2e | 74 69 64 79 27 5c 22 0a |/script.|tidy'\".|
|00002850| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|00002860| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00002870| 75 74 69 6c 2f 73 63 72 | 69 70 74 2e 74 69 64 79 |util/scr|ipt.tidy|
|00002880| 27 5c 22 20 5c 28 36 33 | 20 63 68 61 72 61 63 74 |'\" \(63| charact|
|00002890| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|000028a0| 58 2f 2f 22 20 3e 27 75 | 74 69 6c 2f 73 63 72 69 |X//" >'u|til/scri|
|000028b0| 70 74 2e 74 69 64 79 27 | 20 3c 3c 27 45 4e 44 5f |pt.tidy'| <<'END_|
|000028c0| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 21 2f 62 69 6e |OF_FILE'|.X#!/bin|
|000028d0| 2f 73 68 0a 58 23 20 50 | 75 62 6c 69 63 20 64 6f |/sh.X# P|ublic do|
|000028e0| 6d 61 69 6e 2e 0a 58 65 | 78 65 63 20 73 65 64 20 |main..Xe|xec sed |
|000028f0| 2d 65 20 27 73 2f 24 2f | 2f 27 20 2d 65 20 27 73 |-e 's/$/|/' -e 's|
|00002900| 2f 5b 5e 08 5d 08 2f 2f | 67 27 0a 45 4e 44 5f 4f |/[^.].//|g'.END_O|
|00002910| 46 5f 46 49 4c 45 0a 20 | 20 65 63 68 6f 20 73 68 |F_FILE. | echo sh|
|00002920| 61 72 3a 20 32 20 63 6f | 6e 74 72 6f 6c 20 63 68 |ar: 2 co|ntrol ch|
|00002930| 61 72 61 63 74 65 72 73 | 20 6d 61 79 20 62 65 20 |aracters| may be |
|00002940| 6d 69 73 73 69 6e 67 20 | 66 72 6f 6d 20 5c 22 27 |missing |from \"'|
|00002950| 75 74 69 6c 2f 73 63 72 | 69 70 74 2e 74 69 64 79 |util/scr|ipt.tidy|
|00002960| 27 5c 22 0a 20 20 69 66 | 20 74 65 73 74 20 36 33 |'\". if| test 63|
|00002970| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 75 74 | -ne `wc| -c <'ut|
|00002980| 69 6c 2f 73 63 72 69 70 | 74 2e 74 69 64 79 27 60 |il/scrip|t.tidy'`|
|00002990| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000029a0| 73 68 61 72 3a 20 5c 22 | 27 75 74 69 6c 2f 73 63 |shar: \"|'util/sc|
|000029b0| 72 69 70 74 2e 74 69 64 | 79 27 5c 22 20 75 6e 70 |ript.tid|y'\" unp|
|000029c0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|000029d0| 20 73 69 7a 65 21 0a 20 | 20 66 69 0a 20 20 63 68 | size!. | fi. ch|
|000029e0| 6d 6f 64 20 2b 78 20 27 | 75 74 69 6c 2f 73 63 72 |mod +x '|util/scr|
|000029f0| 69 70 74 2e 74 69 64 79 | 27 0a 20 20 23 20 65 6e |ipt.tidy|'. # en|
|00002a00| 64 20 6f 66 20 27 75 74 | 69 6c 2f 73 63 72 69 70 |d of 'ut|il/scrip|
|00002a10| 74 2e 74 69 64 79 27 0a | 66 69 0a 69 66 20 74 65 |t.tidy'.|fi.if te|
|00002a20| 73 74 20 2d 66 20 27 75 | 74 69 6c 2f 73 65 73 73 |st -f 'u|til/sess|
|00002a30| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00002a40| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00002a50| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00002a60| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00002a70| 6e 67 20 66 69 6c 65 20 | 5c 22 27 75 74 69 6c 2f |ng file |\"'util/|
|00002a80| 73 65 73 73 27 5c 22 0a | 65 6c 73 65 0a 20 20 65 |sess'\".|else. e|
|00002a90| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00002aa0| 74 69 6e 67 20 5c 22 27 | 75 74 69 6c 2f 73 65 73 |ting \"'|util/ses|
|00002ab0| 73 27 5c 22 20 5c 28 34 | 34 20 63 68 61 72 61 63 |s'\" \(4|4 charac|
|00002ac0| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00002ad0| 5e 58 2f 2f 22 20 3e 27 | 75 74 69 6c 2f 73 65 73 |^X//" >'|util/ses|
|00002ae0| 73 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |s' <<'EN|D_OF_FIL|
|00002af0| 45 27 0a 58 23 21 2f 62 | 69 6e 2f 73 68 0a 58 23 |E'.X#!/b|in/sh.X#|
|00002b00| 20 50 75 62 6c 69 63 20 | 64 6f 6d 61 69 6e 2e 0a | Public |domain..|
|00002b10| 58 65 78 65 63 20 70 74 | 79 20 2d 73 20 22 24 40 |Xexec pt|y -s "$@|
|00002b20| 22 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 20 20 |".END_OF|_FILE. |
|00002b30| 69 66 20 74 65 73 74 20 | 34 34 20 2d 6e 65 20 60 |if test |44 -ne `|
|00002b40| 77 63 20 2d 63 20 3c 27 | 75 74 69 6c 2f 73 65 73 |wc -c <'|util/ses|
|00002b50| 73 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |s'`; the|n. ec|
|00002b60| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 75 74 69 6c |ho shar:| \"'util|
|00002b70| 2f 73 65 73 73 27 5c 22 | 20 75 6e 70 61 63 6b 65 |/sess'\"| unpacke|
|00002b80| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00002b90| 65 21 0a 20 20 66 69 0a | 20 20 63 68 6d 6f 64 20 |e!. fi.| chmod |
|00002ba0| 2b 78 20 27 75 74 69 6c | 2f 73 65 73 73 27 0a 20 |+x 'util|/sess'. |
|00002bb0| 20 23 20 65 6e 64 20 6f | 66 20 27 75 74 69 6c 2f | # end o|f 'util/|
|00002bc0| 73 65 73 73 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |sess'.fi|.if test|
|00002bd0| 20 2d 66 20 27 75 74 69 | 6c 2f 74 69 6f 63 73 74 | -f 'uti|l/tiocst|
|00002be0| 69 2e 31 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |i.1' -a |"${1}" !|
|00002bf0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00002c00| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00002c10| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00002c20| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 75 74 |sting fi|le \"'ut|
|00002c30| 69 6c 2f 74 69 6f 63 73 | 74 69 2e 31 27 5c 22 0a |il/tiocs|ti.1'\".|
|00002c40| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|00002c50| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00002c60| 75 74 69 6c 2f 74 69 6f | 63 73 74 69 2e 31 27 5c |util/tio|csti.1'\|
|00002c70| 22 20 5c 28 32 35 30 20 | 63 68 61 72 61 63 74 65 |" \(250 |characte|
|00002c80| 72 73 5c 29 0a 20 20 73 | 65 64 20 22 73 2f 5e 58 |rs\). s|ed "s/^X|
|00002c90| 2f 2f 22 20 3e 27 75 74 | 69 6c 2f 74 69 6f 63 73 |//" >'ut|il/tiocs|
|00002ca0| 74 69 2e 31 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |ti.1' <<|'END_OF_|
|00002cb0| 46 49 4c 45 27 0a 58 2e | 54 48 20 74 69 6f 63 73 |FILE'.X.|TH tiocs|
|00002cc0| 74 69 20 31 0a 58 2e 53 | 48 20 4e 41 4d 45 0a 58 |ti 1.X.S|H NAME.X|
|00002cd0| 74 69 6f 63 73 74 69 20 | 5c 2d 20 73 69 6d 75 6c |tiocsti |\- simul|
|00002ce0| 61 74 65 20 74 65 72 6d | 69 6e 61 6c 20 69 6e 70 |ate term|inal inp|
|00002cf0| 75 74 0a 58 2e 53 48 20 | 53 59 4e 4f 50 53 49 53 |ut.X.SH |SYNOPSIS|
|00002d00| 0a 58 2e 42 20 74 69 6f | 63 73 74 69 0a 58 5b 0a |.X.B tio|csti.X[.|
|00002d10| 58 2e 49 20 61 72 67 0a | 58 5d 20 2e 2e 2e 0a 58 |X.I arg.|X] ....X|
|00002d20| 2e 53 48 20 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |.SH DESC|RIPTION.|
|00002d30| 58 2e 49 20 74 69 6f 63 | 73 74 69 0a 58 60 60 74 |X.I tioc|sti.X``t|
|00002d40| 79 70 65 73 27 27 20 65 | 61 63 68 20 6f 66 20 69 |ypes'' e|ach of i|
|00002d50| 74 73 20 61 72 67 75 6d | 65 6e 74 73 20 6f 6e 20 |ts argum|ents on |
|00002d60| 74 68 65 0a 58 63 75 72 | 72 65 6e 74 20 74 65 72 |the.Xcur|rent ter|
|00002d70| 6d 69 6e 61 6c 2c 20 73 | 65 70 61 72 61 74 65 64 |minal, s|eparated|
|00002d80| 20 62 79 20 73 70 61 63 | 65 73 2c 0a 58 61 73 20 | by spac|es,.Xas |
|00002d90| 69 66 20 79 6f 75 20 68 | 61 64 20 74 79 70 65 64 |if you h|ad typed|
|00002da0| 20 74 68 65 6d 2e 0a 58 | 2e 53 48 20 22 53 45 45 | them..X|.SH "SEE|
|00002db0| 20 41 4c 53 4f 22 0a 58 | 74 74 79 28 34 29 0a 45 | ALSO".X|tty(4).E|
|00002dc0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00002dd0| 74 65 73 74 20 32 35 30 | 20 2d 6e 65 20 60 77 63 |test 250| -ne `wc|
|00002de0| 20 2d 63 20 3c 27 75 74 | 69 6c 2f 74 69 6f 63 73 | -c <'ut|il/tiocs|
|00002df0| 74 69 2e 31 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |ti.1'`; |then. |
|00002e00| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 75 | echo sh|ar: \"'u|
|00002e10| 74 69 6c 2f 74 69 6f 63 | 73 74 69 2e 31 27 5c 22 |til/tioc|sti.1'\"|
|00002e20| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00002e30| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|00002e40| 20 20 23 20 65 6e 64 20 | 6f 66 20 27 75 74 69 6c | # end |of 'util|
|00002e50| 2f 74 69 6f 63 73 74 69 | 2e 31 27 0a 66 69 0a 69 |/tiocsti|.1'.fi.i|
|00002e60| 66 20 74 65 73 74 20 2d | 66 20 27 75 74 69 6c 2f |f test -|f 'util/|
|00002e70| 74 69 6f 63 73 74 69 2e | 63 27 20 2d 61 20 22 24 |tiocsti.|c' -a "$|
|00002e80| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00002e90| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00002ea0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00002eb0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00002ec0| 20 5c 22 27 75 74 69 6c | 2f 74 69 6f 63 73 74 69 | \"'util|/tiocsti|
|00002ed0| 2e 63 27 5c 22 0a 65 6c | 73 65 0a 20 20 65 63 68 |.c'\".el|se. ech|
|00002ee0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00002ef0| 6e 67 20 5c 22 27 75 74 | 69 6c 2f 74 69 6f 63 73 |ng \"'ut|il/tiocs|
|00002f00| 74 69 2e 63 27 5c 22 20 | 5c 28 33 32 32 20 63 68 |ti.c'\" |\(322 ch|
|00002f10| 61 72 61 63 74 65 72 73 | 5c 29 0a 20 20 73 65 64 |aracters|\). sed|
|00002f20| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 75 74 69 6c | "s/^X//|" >'util|
|00002f30| 2f 74 69 6f 63 73 74 69 | 2e 63 27 20 3c 3c 27 45 |/tiocsti|.c' <<'E|
|00002f40| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 2f 2a 20 |ND_OF_FI|LE'.X/* |
|00002f50| 50 75 62 6c 69 63 20 64 | 6f 6d 61 69 6e 2e 20 2a |Public d|omain. *|
|00002f60| 2f 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |/.X#incl|ude <sys|
|00002f70| 2f 69 6f 63 74 6c 2e 68 | 3e 0a 58 0a 58 6d 61 69 |/ioctl.h|>.X.Xmai|
|00002f80| 6e 28 61 72 67 63 2c 61 | 72 67 76 29 0a 58 69 6e |n(argc,a|rgv).Xin|
|00002f90| 74 20 61 72 67 63 3b 0a | 58 63 68 61 72 20 2a 61 |t argc;.|Xchar *a|
|00002fa0| 72 67 76 5b 5d 3b 0a 58 | 7b 0a 58 20 69 6e 74 20 |rgv[];.X|{.X int |
|00002fb0| 6a 3b 0a 58 20 63 68 61 | 72 20 2a 73 3b 0a 58 0a |j;.X cha|r *s;.X.|
|00002fc0| 58 20 69 66 20 28 69 6f | 63 74 6c 28 33 2c 54 49 |X if (io|ctl(3,TI|
|00002fd0| 4f 43 47 50 47 52 50 2c | 28 63 68 61 72 20 2a 29 |OCGPGRP,|(char *)|
|00002fe0| 20 26 6a 29 20 3d 3d 20 | 2d 31 29 0a 58 20 20 20 | &j) == |-1).X |
|00002ff0| 28 76 6f 69 64 29 20 64 | 75 70 32 28 30 2c 33 29 |(void) d|up2(0,3)|
|00003000| 3b 0a 58 0a 58 20 66 6f | 72 20 28 6a 20 3d 20 31 |;.X.X fo|r (j = 1|
|00003010| 3b 6a 20 3c 20 61 72 67 | 63 3b 6a 2b 2b 29 0a 58 |;j < arg|c;j++).X|
|00003020| 20 20 7b 0a 58 20 20 20 | 66 6f 72 20 28 73 20 3d | {.X |for (s =|
|00003030| 20 61 72 67 76 5b 6a 5d | 3b 2a 73 3b 73 2b 2b 29 | argv[j]|;*s;s++)|
|00003040| 0a 58 20 20 20 20 20 28 | 76 6f 69 64 29 20 69 6f |.X (|void) io|
|00003050| 63 74 6c 28 33 2c 54 49 | 4f 43 53 54 49 2c 73 29 |ctl(3,TI|OCSTI,s)|
|00003060| 3b 0a 58 20 20 20 69 66 | 20 28 6a 20 3c 20 61 72 |;.X if| (j < ar|
|00003070| 67 63 20 2d 20 31 29 0a | 58 20 20 20 20 20 28 76 |gc - 1).|X (v|
|00003080| 6f 69 64 29 20 69 6f 63 | 74 6c 28 33 2c 54 49 4f |oid) ioc|tl(3,TIO|
|00003090| 43 53 54 49 2c 22 20 22 | 29 3b 0a 58 20 20 7d 0a |CSTI," "|);.X }.|
|000030a0| 58 7d 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |X}.END_O|F_FILE. |
|000030b0| 20 69 66 20 74 65 73 74 | 20 33 32 32 20 2d 6e 65 | if test| 322 -ne|
|000030c0| 20 60 77 63 20 2d 63 20 | 3c 27 75 74 69 6c 2f 74 | `wc -c |<'util/t|
|000030d0| 69 6f 63 73 74 69 2e 63 | 27 60 3b 20 74 68 65 6e |iocsti.c|'`; then|
|000030e0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|000030f0| 5c 22 27 75 74 69 6c 2f | 74 69 6f 63 73 74 69 2e |\"'util/|tiocsti.|
|00003100| 63 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |c'\" unp|acked wi|
|00003110| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 20 |th wrong| size!. |
|00003120| 20 66 69 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 | fi. # |end of '|
|00003130| 75 74 69 6c 2f 74 69 6f | 63 73 74 69 2e 63 27 0a |util/tio|csti.c'.|
|00003140| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 75 |fi.if te|st -f 'u|
|00003150| 74 69 6c 2f 74 74 79 2e | 31 27 20 2d 61 20 22 24 |til/tty.|1' -a "$|
|00003160| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00003170| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00003180| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00003190| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|000031a0| 20 5c 22 27 75 74 69 6c | 2f 74 74 79 2e 31 27 5c | \"'util|/tty.1'\|
|000031b0| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|000031c0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000031d0| 22 27 75 74 69 6c 2f 74 | 74 79 2e 31 27 5c 22 20 |"'util/t|ty.1'\" |
|000031e0| 5c 28 32 37 39 20 63 68 | 61 72 61 63 74 65 72 73 |\(279 ch|aracters|
|000031f0| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00003200| 22 20 3e 27 75 74 69 6c | 2f 74 74 79 2e 31 27 20 |" >'util|/tty.1' |
|00003210| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00003220| 58 2e 54 48 20 74 74 79 | 20 31 0a 58 2e 53 48 20 |X.TH tty| 1.X.SH |
|00003230| 4e 41 4d 45 0a 58 74 74 | 79 20 5c 2d 20 67 65 74 |NAME.Xtt|y \- get|
|00003240| 20 74 65 72 6d 69 6e 61 | 6c 20 6e 61 6d 65 0a 58 | termina|l name.X|
|00003250| 2e 53 48 20 53 59 4e 4f | 50 53 49 53 0a 58 2e 42 |.SH SYNO|PSIS.X.B|
|00003260| 20 74 74 79 0a 58 5b 0a | 58 2e 42 5c 2d 73 0a 58 | tty.X[.|X.B\-s.X|
|00003270| 5d 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |].X.SH D|ESCRIPTI|
|00003280| 4f 4e 0a 58 2e 49 20 74 | 74 79 0a 58 70 72 69 6e |ON.X.I t|ty.Xprin|
|00003290| 74 73 20 74 68 65 20 70 | 61 74 68 6e 61 6d 65 20 |ts the p|athname |
|000032a0| 6f 66 20 74 68 65 20 75 | 73 65 72 27 73 20 74 65 |of the u|ser's te|
|000032b0| 72 6d 69 6e 61 6c 2c 0a | 58 6f 72 0a 58 60 60 6e |rminal,.|Xor.X``n|
|000032c0| 6f 74 20 61 20 74 74 79 | 27 27 0a 58 69 66 20 69 |ot a tty|''.Xif i|
|000032d0| 74 73 20 69 6e 70 75 74 | 20 69 73 20 6e 6f 74 20 |ts input| is not |
|000032e0| 61 20 74 65 72 6d 69 6e | 61 6c 2e 0a 58 2e 49 20 |a termin|al..X.I |
|000032f0| 74 74 79 20 5c 2d 73 0a | 58 70 72 69 6e 74 73 20 |tty \-s.|Xprints |
|00003300| 6e 6f 74 68 69 6e 67 2e | 0a 58 2e 53 48 20 22 45 |nothing.|.X.SH "E|
|00003310| 58 49 54 20 56 41 4c 55 | 45 22 0a 58 30 20 69 66 |XIT VALU|E".X0 if|
|00003320| 20 74 68 65 20 69 6e 70 | 75 74 20 69 73 20 61 20 | the inp|ut is a |
|00003330| 74 65 72 6d 69 6e 61 6c | 2c 0a 58 31 20 69 66 20 |terminal|,.X1 if |
|00003340| 69 74 20 69 73 6e 27 74 | 2e 0a 45 4e 44 5f 4f 46 |it isn't|..END_OF|
|00003350| 5f 46 49 4c 45 0a 20 20 | 69 66 20 74 65 73 74 20 |_FILE. |if test |
|00003360| 32 37 39 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |279 -ne |`wc -c <|
|00003370| 27 75 74 69 6c 2f 74 74 | 79 2e 31 27 60 3b 20 74 |'util/tt|y.1'`; t|
|00003380| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00003390| 72 3a 20 5c 22 27 75 74 | 69 6c 2f 74 74 79 2e 31 |r: \"'ut|il/tty.1|
|000033a0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000033b0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|000033c0| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 75 |fi. # e|nd of 'u|
|000033d0| 74 69 6c 2f 74 74 79 2e | 31 27 0a 66 69 0a 69 66 |til/tty.|1'.fi.if|
|000033e0| 20 74 65 73 74 20 2d 66 | 20 27 75 74 69 6c 2f 74 | test -f| 'util/t|
|000033f0| 74 79 2e 63 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |ty.c' -a| "${1}" |
|00003400| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00003410| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00003420| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00003430| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 75 |isting f|ile \"'u|
|00003440| 74 69 6c 2f 74 74 79 2e | 63 27 5c 22 0a 65 6c 73 |til/tty.|c'\".els|
|00003450| 65 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 45 |e. echo| shar: E|
|00003460| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 75 74 69 |xtractin|g \"'uti|
|00003470| 6c 2f 74 74 79 2e 63 27 | 5c 22 20 5c 28 32 39 38 |l/tty.c'|\" \(298|
|00003480| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 20 20 | charact|ers\). |
|00003490| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 75 |sed "s/^|X//" >'u|
|000034a0| 74 69 6c 2f 74 74 79 2e | 63 27 20 3c 3c 27 45 4e |til/tty.|c' <<'EN|
|000034b0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2f 2a 20 50 |D_OF_FIL|E'.X/* P|
|000034c0| 75 62 6c 69 63 20 64 6f | 6d 61 69 6e 2e 20 2a 2f |ublic do|main. */|
|000034d0| 0a 58 0a 58 65 78 74 65 | 72 6e 20 63 68 61 72 20 |.X.Xexte|rn char |
|000034e0| 2a 74 74 79 6e 61 6d 65 | 28 29 3b 0a 58 0a 58 6d |*ttyname|();.X.Xm|
|000034f0| 61 69 6e 28 61 72 67 63 | 2c 61 72 67 76 29 0a 58 |ain(argc|,argv).X|
|00003500| 69 6e 74 20 61 72 67 63 | 3b 0a 58 63 68 61 72 20 |int argc|;.Xchar |
|00003510| 2a 61 72 67 76 5b 5d 3b | 0a 58 7b 0a 58 20 63 68 |*argv[];|.X{.X ch|
|00003520| 61 72 20 2a 73 3b 0a 58 | 0a 58 20 73 20 3d 20 74 |ar *s;.X|.X s = t|
|00003530| 74 79 6e 61 6d 65 28 30 | 29 3b 0a 58 0a 58 20 69 |tyname(0|);.X.X i|
|00003540| 66 20 28 28 61 72 67 63 | 20 21 3d 20 32 29 0a 58 |f ((argc| != 2).X|
|00003550| 20 20 20 7c 7c 28 61 72 | 67 76 5b 31 5d 5b 30 5d | ||(ar|gv[1][0]|
|00003560| 20 21 3d 20 27 2d 27 29 | 20 7c 7c 20 28 61 72 67 | != '-')| || (arg|
|00003570| 76 5b 31 5d 5b 31 5d 20 | 21 3d 20 27 73 27 29 20 |v[1][1] |!= 's') |
|00003580| 7c 7c 20 28 61 72 67 76 | 5b 31 5d 5b 32 5d 20 21 ||| (argv|[1][2] !|
|00003590| 3d 20 27 5c 30 27 29 29 | 0a 58 20 20 20 69 66 20 |= '\0'))|.X if |
|000035a0| 28 73 29 0a 58 20 20 20 | 20 20 28 76 6f 69 64 29 |(s).X | (void)|
|000035b0| 20 70 75 74 73 28 73 29 | 3b 0a 58 20 20 20 65 6c | puts(s)|;.X el|
|000035c0| 73 65 0a 58 20 20 20 20 | 20 28 76 6f 69 64 29 20 |se.X | (void) |
|000035d0| 70 75 74 73 28 22 6e 6f | 74 20 61 20 74 74 79 22 |puts("no|t a tty"|
|000035e0| 29 3b 0a 58 20 28 76 6f | 69 64 29 20 65 78 69 74 |);.X (vo|id) exit|
|000035f0| 28 21 73 29 3b 0a 58 7d | 0a 45 4e 44 5f 4f 46 5f |(!s);.X}|.END_OF_|
|00003600| 46 49 4c 45 0a 20 20 69 | 66 20 74 65 73 74 20 32 |FILE. i|f test 2|
|00003610| 39 38 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |98 -ne `|wc -c <'|
|00003620| 75 74 69 6c 2f 74 74 79 | 2e 63 27 60 3b 20 74 68 |util/tty|.c'`; th|
|00003630| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00003640| 3a 20 5c 22 27 75 74 69 | 6c 2f 74 74 79 2e 63 27 |: \"'uti|l/tty.c'|
|00003650| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00003660| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 20 20 66 | wrong s|ize!. f|
|00003670| 69 0a 20 20 23 20 65 6e | 64 20 6f 66 20 27 75 74 |i. # en|d of 'ut|
|00003680| 69 6c 2f 74 74 79 2e 63 | 27 0a 66 69 0a 65 63 68 |il/tty.c|'.fi.ech|
|00003690| 6f 20 73 68 61 72 3a 20 | 45 6e 64 20 6f 66 20 61 |o shar: |End of a|
|000036a0| 72 63 68 69 76 65 20 36 | 20 5c 28 6f 66 20 36 5c |rchive 6| \(of 6\|
|000036b0| 29 2e 0a 63 70 20 2f 64 | 65 76 2f 6e 75 6c 6c 20 |)..cp /d|ev/null |
|000036c0| 61 72 6b 36 69 73 64 6f | 6e 65 0a 4d 49 53 53 49 |ark6isdo|ne.MISSI|
|000036d0| 4e 47 3d 22 22 0a 66 6f | 72 20 49 20 69 6e 20 31 |NG="".fo|r I in 1|
|000036e0| 20 32 20 33 20 34 20 35 | 20 36 20 3b 20 64 6f 0a | 2 3 4 5| 6 ; do.|
|000036f0| 20 20 20 20 69 66 20 74 | 65 73 74 20 21 20 2d 66 | if t|est ! -f|
|00003700| 20 61 72 6b 24 7b 49 7d | 69 73 64 6f 6e 65 20 3b | ark${I}|isdone ;|
|00003710| 20 74 68 65 6e 0a 09 4d | 49 53 53 49 4e 47 3d 22 | then..M|ISSING="|
|00003720| 24 7b 4d 49 53 53 49 4e | 47 7d 20 24 7b 49 7d 22 |${MISSIN|G} ${I}"|
|00003730| 0a 20 20 20 20 66 69 0a | 64 6f 6e 65 0a 69 66 20 |. fi.|done.if |
|00003740| 74 65 73 74 20 22 24 7b | 4d 49 53 53 49 4e 47 7d |test "${|MISSING}|
|00003750| 22 20 3d 20 22 22 20 3b | 20 74 68 65 6e 0a 20 20 |" = "" ;| then. |
|00003760| 20 20 65 63 68 6f 20 59 | 6f 75 20 68 61 76 65 20 | echo Y|ou have |
|00003770| 75 6e 70 61 63 6b 65 64 | 20 61 6c 6c 20 36 20 61 |unpacked| all 6 a|
|00003780| 72 63 68 69 76 65 73 2e | 0a 20 20 20 20 72 6d 20 |rchives.|. rm |
|00003790| 2d 66 20 61 72 6b 5b 31 | 2d 39 5d 69 73 64 6f 6e |-f ark[1|-9]isdon|
|000037a0| 65 0a 65 6c 73 65 0a 20 | 20 20 20 65 63 68 6f 20 |e.else. | echo |
|000037b0| 59 6f 75 20 73 74 69 6c | 6c 20 6d 75 73 74 20 75 |You stil|l must u|
|000037c0| 6e 70 61 63 6b 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |npack th|e follow|
|000037d0| 69 6e 67 20 61 72 63 68 | 69 76 65 73 3a 0a 20 20 |ing arch|ives:. |
|000037e0| 20 20 65 63 68 6f 20 22 | 20 20 20 20 20 20 20 20 | echo "| |
|000037f0| 22 20 24 7b 4d 49 53 53 | 49 4e 47 7d 0a 66 69 0a |" ${MISS|ING}.fi.|
|00003800| 65 78 69 74 20 30 0a 65 | 78 69 74 20 30 20 23 20 |exit 0.e|xit 0 # |
|00003810| 4a 75 73 74 20 69 6e 20 | 63 61 73 65 2e 2e 2e 0a |Just in |case....|
|00003820| 2d 2d 20 0a 50 6c 65 61 | 73 65 20 73 65 6e 64 20 |-- .Plea|se send |
|00003830| 63 6f 6d 70 2e 73 6f 75 | 72 63 65 73 2e 75 6e 69 |comp.sou|rces.uni|
|00003840| 78 2d 72 65 6c 61 74 65 | 64 20 6d 61 69 6c 20 74 |x-relate|d mail t|
|00003850| 6f 20 72 73 61 6c 7a 40 | 75 75 6e 65 74 2e 75 75 |o rsalz@|uunet.uu|
|00003860| 2e 6e 65 74 2e 0a 55 73 | 65 20 61 20 64 6f 6d 61 |.net..Us|e a doma|
|00003870| 69 6e 2d 62 61 73 65 64 | 20 61 64 64 72 65 73 73 |in-based| address|
|00003880| 20 6f 72 20 67 69 76 65 | 20 61 6c 74 65 72 6e 61 | or give| alterna|
|00003890| 74 65 20 70 61 74 68 73 | 2c 20 6f 72 20 79 6f 75 |te paths|, or you|
|000038a0| 20 6d 61 79 20 6c 6f 73 | 65 20 6f 75 74 2e 0a | may los|e out.. |
+--------+-------------------------+-------------------------+--------+--------+