home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume8 / help.jn < prev    next >
SHell self-extracting ARchive  |  1989-08-19  |  59.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 73 75 |.sources|.misc.su|
|00000020| 62 6a 65 63 74 3a 20 76 | 30 38 69 30 30 31 3a 20 |bject: v|08i001: |
|00000030| 41 20 48 45 4c 50 20 66 | 61 63 69 6c 69 74 79 20 |A HELP f|acility |
|00000040| 66 6f 72 20 55 6e 69 78 | 0a 46 72 6f 6d 3a 20 61 |for Unix|.From: a|
|00000050| 6c 6c 62 65 72 79 40 75 | 75 6e 65 74 2e 55 55 2e |llbery@u|unet.UU.|
|00000060| 4e 45 54 20 28 42 72 61 | 6e 64 6f 6e 20 53 2e 20 |NET (Bra|ndon S. |
|00000070| 41 6c 6c 62 65 72 79 20 | 2d 20 63 6f 6d 70 2e 73 |Allbery |- comp.s|
|00000080| 6f 75 72 63 65 73 2e 6d | 69 73 63 29 0a 52 65 70 |ources.m|isc).Rep|
|00000090| 6c 79 2d 54 6f 3a 20 6e | 65 6c 73 6f 6e 40 75 6e |ly-To: n|elson@un|
|000000a0| 63 65 63 73 2e 65 64 75 | 20 28 6a 69 6d 20 6e 65 |cecs.edu| (jim ne|
|000000b0| 6c 73 6f 6e 29 0a 0a 50 | 6f 73 74 69 6e 67 2d 6e |lson)..P|osting-n|
|000000c0| 75 6d 62 65 72 3a 20 56 | 6f 6c 75 6d 65 20 38 2c |umber: V|olume 8,|
|000000d0| 20 49 73 73 75 65 20 31 | 0a 53 75 62 6d 69 74 74 | Issue 1|.Submitt|
|000000e0| 65 64 2d 62 79 3a 20 6e | 65 6c 73 6f 6e 40 75 6e |ed-by: n|elson@un|
|000000f0| 63 65 63 73 2e 65 64 75 | 20 28 6a 69 6d 20 6e 65 |cecs.edu| (jim ne|
|00000100| 6c 73 6f 6e 29 0a 41 72 | 63 68 69 76 65 2d 6e 61 |lson).Ar|chive-na|
|00000110| 6d 65 3a 20 68 65 6c 70 | 2e 6a 6e 0a 0a 48 65 72 |me: help|.jn..Her|
|00000120| 65 20 69 73 20 61 20 6c | 69 74 74 6c 65 20 48 65 |e is a l|ittle He|
|00000130| 6c 70 2d 66 61 63 69 6c | 69 74 79 20 73 6f 6d 65 |lp-facil|ity some|
|00000140| 77 68 61 74 20 6c 69 6b | 65 20 73 6f 6d 65 20 6f |what lik|e some o|
|00000150| 74 68 65 72 20 6f 70 65 | 72 61 74 69 6e 67 0a 73 |ther ope|rating.s|
|00000160| 79 73 74 65 6d 73 20 70 | 72 6f 76 69 64 65 2e 20 |ystems p|rovide. |
|00000170| 20 49 74 27 73 20 73 6f | 72 74 61 20 63 72 75 64 | It's so|rta crud|
|00000180| 65 20 61 74 20 74 68 65 | 20 6d 6f 6d 65 6e 74 2c |e at the| moment,|
|00000190| 20 62 75 74 20 69 74 20 | 77 6f 72 6b 73 20 77 65 | but it |works we|
|000001a0| 6c 6c 2e 0a 49 74 20 72 | 75 6e 73 20 75 6e 64 65 |ll..It r|uns unde|
|000001b0| 72 20 42 53 44 2c 20 58 | 65 6e 69 78 2c 20 61 6e |r BSD, X|enix, an|
|000001c0| 64 20 53 79 73 56 2c 20 | 61 6c 74 68 6f 75 67 68 |d SysV, |although|
|000001d0| 20 49 20 73 74 69 6c 6c | 20 64 6f 6e 27 74 20 6b | I still| don't k|
|000001e0| 6e 6f 77 20 71 75 69 74 | 65 0a 68 6f 77 20 74 6f |now quit|e.how to|
|000001f0| 20 64 6f 20 22 6d 79 20 | 6f 77 6e 20 70 61 67 65 | do "my |own page|
|00000200| 72 22 20 75 6e 64 65 72 | 20 58 65 6e 69 78 20 6f |r" under| Xenix o|
|00000210| 72 20 53 79 73 56 2e 20 | 20 49 66 20 74 68 69 73 |r SysV. | If this|
|00000220| 20 68 61 73 20 62 65 65 | 6e 20 64 6f 6e 65 0a 62 | has bee|n done.b|
|00000230| 65 66 6f 72 65 20 69 6e | 20 74 68 65 20 72 65 63 |efore in| the rec|
|00000240| 65 6e 74 20 70 61 73 74 | 2c 20 64 6f 6e 27 74 20 |ent past|, don't |
|00000250| 70 6f 73 74 2c 20 6a 75 | 73 74 20 74 72 61 73 68 |post, ju|st trash|
|00000260| 2e 20 20 48 6f 77 65 76 | 65 72 2c 20 49 20 6b 69 |. Howev|er, I ki|
|00000270| 6e 64 61 0a 6c 69 6b 65 | 20 69 74 2c 20 61 6e 64 |nda.like| it, and|
|00000280| 20 77 65 20 28 49 29 20 | 70 6c 61 6e 20 74 6f 20 | we (I) |plan to |
|00000290| 73 70 72 69 6e 67 20 69 | 74 20 6f 6e 20 6f 75 72 |spring i|t on our|
|000002a0| 20 66 72 65 73 68 6d 65 | 6e 20 64 75 65 20 74 6f | freshme|n due to|
|000002b0| 20 61 72 72 69 76 65 20 | 69 6e 0a 61 20 63 6f 75 | arrive |in.a cou|
|000002c0| 70 6c 65 20 6f 66 20 77 | 65 65 6b 73 2e 0a 2d 2d |ple of w|eeks..--|
|000002d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 20 63 |--------|------ c|
|000002e0| 75 74 20 68 65 72 65 20 | 2d 2d 2d 2d 2d 2d 2d 2d |ut here |--------|
|000002f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 23 21 20 2f 62 69 |--------|-.#! /bi|
|00000300| 6e 2f 73 68 0a 23 20 54 | 68 69 73 20 69 73 20 61 |n/sh.# T|his is a|
|00000310| 20 73 68 65 6c 6c 20 61 | 72 63 68 69 76 65 2e 20 | shell a|rchive. |
|00000320| 20 52 65 6d 6f 76 65 20 | 61 6e 79 74 68 69 6e 67 | Remove |anything|
|00000330| 20 62 65 66 6f 72 65 20 | 74 68 69 73 20 6c 69 6e | before |this lin|
|00000340| 65 2c 20 74 68 65 6e 20 | 75 6e 70 61 63 6b 0a 23 |e, then |unpack.#|
|00000350| 20 69 74 20 62 79 20 73 | 61 76 69 6e 67 20 69 74 | it by s|aving it|
|00000360| 20 69 6e 74 6f 20 61 20 | 66 69 6c 65 20 61 6e 64 | into a |file and|
|00000370| 20 74 79 70 69 6e 67 20 | 22 73 68 20 66 69 6c 65 | typing |"sh file|
|00000380| 22 2e 20 20 54 6f 20 6f | 76 65 72 77 72 69 74 65 |". To o|verwrite|
|00000390| 20 65 78 69 73 74 69 6e | 67 0a 23 20 66 69 6c 65 | existin|g.# file|
|000003a0| 73 2c 20 74 79 70 65 20 | 22 73 68 20 66 69 6c 65 |s, type |"sh file|
|000003b0| 20 2d 63 22 2e 20 20 59 | 6f 75 20 63 61 6e 20 61 | -c". Y|ou can a|
|000003c0| 6c 73 6f 20 66 65 65 64 | 20 74 68 69 73 20 61 73 |lso feed| this as|
|000003d0| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|000003e0| 76 69 61 0a 23 20 75 6e | 73 68 61 72 2c 20 6f 72 |via.# un|shar, or|
|000003f0| 20 62 79 20 74 79 70 69 | 6e 67 20 22 73 68 20 3c | by typi|ng "sh <|
|00000400| 66 69 6c 65 22 2c 20 65 | 2e 67 2e 2e 20 20 49 66 |file", e|.g.. If|
|00000410| 20 74 68 69 73 20 61 72 | 63 68 69 76 65 20 69 73 | this ar|chive is|
|00000420| 20 63 6f 6d 70 6c 65 74 | 65 2c 20 79 6f 75 0a 23 | complet|e, you.#|
|00000430| 20 77 69 6c 6c 20 73 65 | 65 20 74 68 65 20 66 6f | will se|e the fo|
|00000440| 6c 6c 6f 77 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |llowing |message |
|00000450| 61 74 20 74 68 65 20 65 | 6e 64 3a 0a 23 09 09 22 |at the e|nd:.#.."|
|00000460| 45 6e 64 20 6f 66 20 61 | 72 63 68 69 76 65 20 31 |End of a|rchive 1|
|00000470| 20 28 6f 66 20 31 29 2e | 22 0a 23 20 43 6f 6e 74 | (of 1).|".# Cont|
|00000480| 65 6e 74 73 3a 20 20 43 | 2d 6d 69 73 74 61 6b 65 |ents: C|-mistake|
|00000490| 73 2e 74 78 74 20 4d 41 | 4e 49 46 45 53 54 20 4d |s.txt MA|NIFEST M|
|000004a0| 61 6b 65 66 69 6c 65 20 | 52 45 41 44 4d 45 20 61 |akefile |README a|
|000004b0| 63 2e 74 78 74 20 61 66 | 2e 74 78 74 0a 23 20 20 |c.txt af|.txt.# |
|000004c0| 20 61 70 2e 74 78 74 20 | 61 70 72 6f 70 6f 73 2e | ap.txt |apropos.|
|000004d0| 74 78 74 20 62 79 65 2e | 74 78 74 20 63 61 74 2e |txt bye.|txt cat.|
|000004e0| 74 78 74 20 63 62 72 65 | 61 6b 2e 63 20 63 63 2e |txt cbre|ak.c cc.|
|000004f0| 74 78 74 20 63 64 2e 74 | 78 74 0a 23 20 20 20 63 |txt cd.t|xt.# c|
|00000500| 6f 6d 70 69 6c 65 72 73 | 2e 74 78 74 20 63 6f 70 |ompilers|.txt cop|
|00000510| 79 2e 74 78 74 20 63 70 | 2e 74 78 74 20 63 73 68 |y.txt cp|.txt csh|
|00000520| 2e 74 78 74 20 64 69 72 | 2e 74 78 74 20 65 64 2e |.txt dir|.txt ed.|
|00000530| 74 78 74 20 65 64 69 74 | 2e 74 78 74 0a 23 20 20 |txt edit|.txt.# |
|00000540| 20 65 78 69 74 2e 74 78 | 74 20 66 69 6c 65 73 20 | exit.tx|t files |
|00000550| 66 69 6c 65 73 2e 74 78 | 74 20 66 69 6c 65 73 2f |files.tx|t files/|
|00000560| 61 2e 6f 75 74 2e 74 78 | 74 20 66 69 6c 65 73 2f |a.out.tx|t files/|
|00000570| 62 69 6e 61 72 69 65 73 | 0a 23 20 20 20 66 69 6c |binaries|.# fil|
|00000580| 65 73 2f 62 69 6e 61 72 | 69 65 73 2e 74 78 74 20 |es/binar|ies.txt |
|00000590| 66 69 6c 65 73 2f 62 69 | 6e 61 72 69 65 73 2f 61 |files/bi|naries/a|
|000005a0| 2e 6f 75 74 2e 74 78 74 | 0a 23 20 20 20 66 69 6c |.out.txt|.# fil|
|000005b0| 65 73 2f 62 69 6e 61 72 | 69 65 73 2f 65 78 65 63 |es/binar|ies/exec|
|000005c0| 75 74 61 62 6c 65 73 2e | 74 78 74 20 66 69 6c 65 |utables.|txt file|
|000005d0| 73 2f 66 69 6c 65 6e 61 | 6d 65 73 2e 74 78 74 20 |s/filena|mes.txt |
|000005e0| 66 69 6c 65 73 2f 70 77 | 64 2e 74 78 74 0a 23 20 |files/pw|d.txt.# |
|000005f0| 20 20 66 69 6c 65 73 2f | 73 6f 75 72 63 65 73 2e | files/|sources.|
|00000600| 74 78 74 20 66 6f 72 74 | 72 61 6e 2e 74 78 74 20 |txt fort|ran.txt |
|00000610| 67 61 6d 65 73 2e 74 78 | 74 20 67 75 72 75 20 67 |games.tx|t guru g|
|00000620| 75 72 75 2e 31 20 67 75 | 72 75 2e 74 78 74 0a 23 |uru.1 gu|ru.txt.#|
|00000630| 20 20 20 68 65 6c 70 2e | 63 20 68 65 6c 70 2e 74 | help.|c help.t|
|00000640| 78 74 20 69 67 6f 72 73 | 20 69 67 6f 72 73 2e 31 |xt igors| igors.1|
|00000650| 20 69 67 6f 72 73 2e 74 | 78 74 20 6b 69 6e 64 65 | igors.t|xt kinde|
|00000660| 78 2e 63 20 6c 61 6e 67 | 75 61 67 65 73 2e 74 78 |x.c lang|uages.tx|
|00000670| 74 0a 23 20 20 20 6c 65 | 61 72 6e 2e 74 78 74 20 |t.# le|arn.txt |
|00000680| 6c 65 73 73 2e 74 78 74 | 20 6c 69 73 74 66 64 2e |less.txt| listfd.|
|00000690| 63 20 6c 69 73 74 69 74 | 2e 63 20 6c 6f 67 6f 66 |c listit|.c logof|
|000006a0| 66 2e 74 78 74 20 6c 6f | 67 6f 75 74 2e 74 78 74 |f.txt lo|gout.txt|
|000006b0| 0a 23 20 20 20 6d 61 69 | 6c 2e 74 78 74 20 6d 61 |.# mai|l.txt ma|
|000006c0| 6e 2e 74 78 74 20 6d 61 | 6e 75 61 6c 2e 74 78 74 |n.txt ma|nual.txt|
|000006d0| 20 6d 76 2e 74 78 74 20 | 6d 79 6d 6f 64 65 2e 63 | mv.txt |mymode.c|
|000006e0| 20 6e 65 77 73 2e 74 78 | 74 20 6e 6f 63 62 72 65 | news.tx|t nocbre|
|000006f0| 61 6b 2e 63 0a 23 20 20 | 20 6f 66 66 2e 74 78 74 |ak.c.# | off.txt|
|00000700| 20 70 61 73 63 61 6c 2e | 74 78 74 20 70 61 73 73 | pascal.|txt pass|
|00000710| 77 64 2e 74 78 74 20 70 | 68 6f 6e 65 2e 74 78 74 |wd.txt p|hone.txt|
|00000720| 20 70 77 64 2e 74 78 74 | 20 71 75 69 74 2e 74 78 | pwd.txt| quit.tx|
|00000730| 74 0a 23 20 20 20 72 65 | 6e 61 6d 65 2e 74 78 74 |t.# re|name.txt|
|00000740| 20 73 74 61 74 2e 63 20 | 74 61 6c 6b 2e 74 78 74 | stat.c |talk.txt|
|00000750| 20 74 65 72 6d 69 6e 61 | 6c 2e 74 78 74 20 74 65 | termina|l.txt te|
|00000760| 73 74 2e 74 78 74 20 75 | 6c 67 72 70 20 76 69 2e |st.txt u|lgrp vi.|
|00000770| 74 78 74 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |txt.# Wr|apped by|
|00000780| 20 6e 65 6c 73 6f 6e 40 | 75 6e 63 77 20 6f 6e 20 | nelson@|uncw on |
|00000790| 46 72 69 20 41 75 67 20 | 31 31 20 31 39 3a 30 38 |Fri Aug |11 19:08|
|000007a0| 3a 35 31 20 31 39 38 39 | 0a 50 41 54 48 3d 2f 62 |:51 1989|.PATH=/b|
|000007b0| 69 6e 3a 2f 75 73 72 2f | 62 69 6e 3a 2f 75 73 72 |in:/usr/|bin:/usr|
|000007c0| 2f 75 63 62 20 3b 20 65 | 78 70 6f 72 74 20 50 41 |/ucb ; e|xport PA|
|000007d0| 54 48 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 43 |TH.if te|st -f 'C|
|000007e0| 2d 6d 69 73 74 61 6b 65 | 73 2e 74 78 74 27 20 2d |-mistake|s.txt' -|
|000007f0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000800| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000810| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000820| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000830| 66 69 6c 65 20 5c 22 27 | 43 2d 6d 69 73 74 61 6b |file \"'|C-mistak|
|00000840| 65 73 2e 74 78 74 27 5c | 22 0a 65 6c 73 65 0a 65 |es.txt'\|".else.e|
|00000850| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00000860| 74 69 6e 67 20 5c 22 27 | 43 2d 6d 69 73 74 61 6b |ting \"'|C-mistak|
|00000870| 65 73 2e 74 78 74 27 5c | 22 20 5c 28 33 31 39 36 |es.txt'\|" \(3196|
|00000880| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|00000890| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 43 2d 6d |d "s/^X/|/" >'C-m|
|000008a0| 69 73 74 61 6b 65 73 2e | 74 78 74 27 20 3c 3c 27 |istakes.|txt' <<'|
|000008b0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 0a 58 |END_OF_F|ILE'.X.X|
|000008c0| 41 20 66 65 77 20 6f 66 | 20 44 72 2e 20 44 6f 6f |A few of| Dr. Doo|
|000008d0| 6d 27 73 20 6c 69 73 74 | 20 6f 66 20 43 2d 67 6f |m's list| of C-go|
|000008e0| 74 63 68 61 73 2c 20 63 | 6f 6e 64 65 6e 73 65 64 |tchas, c|ondensed|
|000008f0| 20 63 6f 6e 73 69 64 65 | 72 61 62 6c 79 20 66 72 | conside|rably fr|
|00000900| 6f 6d 20 74 68 65 0a 58 | 6f 72 69 67 69 6e 61 6c |om the.X|original|
|00000910| 73 3a 0a 58 0a 58 31 2e | 20 20 45 4f 46 20 69 73 |s:.X.X1.| EOF is|
|00000920| 20 61 6e 20 69 6e 74 2c | 20 6e 6f 74 20 61 20 63 | an int,| not a c|
|00000930| 68 61 72 3b 20 22 67 65 | 74 63 68 61 72 28 29 22 |har; "ge|tchar()"|
|00000940| 2c 20 64 65 73 70 69 74 | 65 20 69 74 73 0a 58 63 |, despit|e its.Xc|
|00000950| 68 61 72 61 63 74 65 72 | 2d 73 6f 75 6e 64 69 6e |haracter|-soundin|
|00000960| 67 20 6e 61 6d 65 2c 20 | 52 45 54 55 52 4e 53 20 |g name, |RETURNS |
|00000970| 41 4e 20 49 4e 54 21 20 | 20 49 6e 20 66 61 63 74 |AN INT! | In fact|
|00000980| 2c 20 61 6c 6c 20 66 75 | 6e 63 74 69 6f 6e 73 20 |, all fu|nctions |
|00000990| 69 6e 20 74 68 65 0a 58 | 43 20 6c 61 6e 67 75 61 |in the.X|C langua|
|000009a0| 67 65 20 72 65 74 75 72 | 6e 20 65 69 74 68 65 72 |ge retur|n either|
|000009b0| 20 61 6e 20 69 6e 74 20 | 6f 72 20 61 20 64 6f 75 | an int |or a dou|
|000009c0| 62 6c 65 3b 20 69 74 20 | 69 73 20 6e 6f 74 20 70 |ble; it |is not p|
|000009d0| 6f 73 73 69 62 6c 65 20 | 74 6f 0a 58 77 72 69 74 |ossible |to.Xwrit|
|000009e0| 65 20 61 20 66 75 6e 63 | 74 69 6f 6e 20 77 68 69 |e a func|tion whi|
|000009f0| 63 68 20 72 65 74 75 72 | 6e 73 20 61 20 63 68 61 |ch retur|ns a cha|
|00000a00| 72 2e 20 20 42 65 73 69 | 64 65 73 2c 20 74 68 65 |r. Besi|des, the|
|00000a10| 20 63 6f 6d 70 69 6c 65 | 72 20 67 65 6e 65 72 61 | compile|r genera|
|00000a20| 74 65 73 0a 58 63 6f 64 | 65 20 77 68 69 63 68 20 |tes.Xcod|e which |
|00000a30| 74 61 6b 65 73 20 74 68 | 65 20 73 61 6d 65 20 61 |takes th|e same a|
|00000a40| 6d 6f 75 6e 74 20 6f 66 | 20 73 70 61 63 65 20 66 |mount of| space f|
|00000a50| 6f 72 20 28 73 63 61 6c | 61 72 29 20 63 68 61 72 |or (scal|ar) char|
|00000a60| 73 20 61 6e 64 20 69 6e | 74 73 2e 0a 58 53 6f 3a |s and in|ts..XSo:|
|00000a70| 20 74 68 65 72 65 20 69 | 73 20 4e 45 56 45 52 20 | there i|s NEVER |
|00000a80| 61 6e 79 20 72 65 61 73 | 6f 6e 20 74 6f 20 73 61 |any reas|on to sa|
|00000a90| 79 2c 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 3a 20 |y, for e|xample: |
|00000aa0| 22 63 68 61 72 20 63 3b | 22 2e 20 20 59 6f 75 0a |"char c;|". You.|
|00000ab0| 58 73 68 6f 75 6c 64 20 | 41 4c 57 41 59 53 20 64 |Xshould |ALWAYS d|
|00000ac0| 65 63 6c 61 72 65 20 63 | 20 74 6f 20 62 65 20 61 |eclare c| to be a|
|00000ad0| 6e 20 69 6e 74 2c 20 65 | 73 70 65 63 69 61 6c 6c |n int, e|speciall|
|00000ae0| 79 20 77 68 65 6e 20 69 | 74 20 72 65 63 65 69 76 |y when i|t receiv|
|00000af0| 65 73 20 74 68 65 0a 58 | 72 65 74 75 72 6e 20 76 |es the.X|return v|
|00000b00| 61 6c 75 65 20 66 72 6f | 6d 20 67 65 74 63 68 61 |alue fro|m getcha|
|00000b10| 72 2c 20 77 68 69 63 68 | 20 69 73 20 74 68 65 6e |r, which| is then|
|00000b20| 20 63 6f 6d 70 61 72 65 | 64 20 74 6f 20 45 4f 46 | compare|d to EOF|
|00000b30| 2e 0a 58 0a 58 45 78 61 | 6d 70 6c 65 73 3a 0a 58 |..X.XExa|mples:.X|
|00000b40| 0a 58 09 2f 2a 20 74 68 | 69 73 20 69 73 20 57 52 |.X./* th|is is WR|
|00000b50| 4f 4e 47 20 28 57 52 4f | 4e 47 21 2c 20 57 52 4f |ONG (WRO|NG!, WRO|
|00000b60| 4e 47 21 2c 20 57 52 4f | 4e 47 21 20 2e 2e 2e 2a |NG!, WRO|NG! ...*|
|00000b70| 2f 0a 58 09 63 68 61 72 | 20 63 3b 0a 58 09 77 68 |/.X.char| c;.X.wh|
|00000b80| 69 6c 65 28 20 20 28 63 | 3d 67 65 74 63 68 61 72 |ile( (c|=getchar|
|00000b90| 28 29 29 20 21 3d 20 45 | 4f 46 29 7b 20 2e 2e 2e |()) != E|OF){ ...|
|00000ba0| 20 7d 0a 58 0a 58 09 2f | 2a 20 74 68 69 73 20 69 | }.X.X./|* this i|
|00000bb0| 73 20 52 49 47 48 54 20 | 2a 2f 0a 58 09 69 6e 74 |s RIGHT |*/.X.int|
|00000bc0| 20 63 3b 0a 58 09 77 68 | 69 6c 65 28 20 20 28 63 | c;.X.wh|ile( (c|
|00000bd0| 3d 67 65 74 63 68 61 72 | 28 29 29 20 21 3d 20 45 |=getchar|()) != E|
|00000be0| 4f 46 29 7b 20 2e 2e 2e | 20 7d 0a 58 0a 58 2d 2d |OF){ ...| }.X.X--|
|00000bf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c20| 2d 2d 0a 58 0a 58 32 2e | 20 20 42 65 77 61 72 65 |--.X.X2.| Beware|
|00000c30| 20 74 68 65 20 64 69 73 | 74 69 6e 63 74 69 6f 6e | the dis|tinction|
|00000c40| 20 62 65 74 77 65 65 6e | 20 22 3d 22 20 61 6e 64 | between| "=" and|
|00000c50| 20 22 3d 3d 22 2e 20 20 | 54 68 65 20 73 69 6e 67 | "==". |The sing|
|00000c60| 6c 65 2d 0a 58 65 71 75 | 61 6c 2d 73 69 67 6e 20 |le-.Xequ|al-sign |
|00000c70| 28 77 65 27 6c 6c 20 63 | 61 6c 6c 20 69 74 20 53 |(we'll c|all it S|
|00000c80| 45 29 20 63 61 75 73 65 | 73 20 74 68 65 20 74 68 |E) cause|s the th|
|00000c90| 69 6e 67 73 20 6f 6e 20 | 74 68 65 20 74 77 6f 20 |ings on |the two |
|00000ca0| 73 69 64 65 73 20 6f 66 | 20 69 74 0a 58 74 6f 20 |sides of| it.Xto |
|00000cb0| 42 45 43 4f 4d 45 20 65 | 71 75 61 6c 3b 20 74 68 |BECOME e|qual; th|
|00000cc0| 65 20 72 65 73 75 6c 74 | 61 6e 74 20 76 61 6c 75 |e result|ant valu|
|00000cd0| 65 20 69 73 20 74 68 65 | 6e 20 77 68 61 74 65 76 |e is the|n whatev|
|00000ce0| 65 72 20 76 61 6c 75 65 | 20 77 61 73 0a 58 6f 72 |er value| was.Xor|
|00000cf0| 69 67 69 6e 61 6c 6c 79 | 20 6f 6e 20 74 68 65 20 |iginally| on the |
|00000d00| 72 69 67 68 74 2d 68 61 | 6e 64 2d 73 69 64 65 20 |right-ha|nd-side |
|00000d10| 6f 66 20 74 68 65 20 53 | 45 20 6f 70 65 72 61 74 |of the S|E operat|
|00000d20| 6f 72 2e 20 20 54 68 65 | 20 64 6f 75 62 6c 65 2d |or. The| double-|
|00000d30| 65 71 75 61 6c 0a 58 73 | 69 67 6e 20 28 44 45 29 |equal.Xs|ign (DE)|
|00000d40| 20 66 69 72 73 74 20 74 | 65 73 74 73 20 74 68 65 | first t|ests the|
|00000d50| 20 74 77 6f 20 73 69 64 | 65 73 20 74 6f 20 73 65 | two sid|es to se|
|00000d60| 65 20 69 66 20 74 68 65 | 79 20 61 72 65 20 65 71 |e if the|y are eq|
|00000d70| 75 61 6c 3b 20 74 68 65 | 0a 58 72 65 73 75 6c 74 |ual; the|.Xresult|
|00000d80| 69 6e 67 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |ing valu|e of the|
|00000d90| 20 44 45 20 6f 70 65 72 | 61 74 6f 72 20 69 73 20 | DE oper|ator is |
|00000da0| 7a 65 72 6f 20 69 66 20 | 74 68 65 79 20 61 72 65 |zero if |they are|
|00000db0| 20 6e 6f 74 20 65 71 75 | 61 6c 2c 20 61 6e 64 0a | not equ|al, and.|
|00000dc0| 58 6f 6e 65 20 69 66 20 | 74 68 65 79 20 61 72 65 |Xone if |they are|
|00000dd0| 20 65 71 75 61 6c 2e 20 | 20 4e 6f 20 6f 74 68 65 | equal. | No othe|
|00000de0| 72 20 72 65 73 75 6c 74 | 73 20 61 72 65 20 70 6f |r result|s are po|
|00000df0| 73 73 69 62 6c 65 2e 20 | 20 0a 58 0a 58 45 78 61 |ssible. | .X.XExa|
|00000e00| 6d 70 6c 65 73 3a 0a 58 | 0a 58 09 2f 2a 20 74 68 |mples:.X|.X./* th|
|00000e10| 69 73 20 69 73 20 28 70 | 72 6f 62 61 62 6c 79 29 |is is (p|robably)|
|00000e20| 20 57 52 4f 4e 47 20 2a | 2f 0a 58 09 69 6e 74 20 | WRONG *|/.X.int |
|00000e30| 69 2c 6a 3b 0a 58 09 69 | 66 28 69 3d 6a 29 7b 20 |i,j;.X.i|f(i=j){ |
|00000e40| 2e 2e 2e 20 7d 20 20 2f | 2a 77 69 6c 6c 20 65 78 |... } /|*will ex|
|00000e50| 65 63 75 74 65 20 69 66 | 20 6a 20 69 73 20 6e 6f |ecute if| j is no|
|00000e60| 6e 7a 65 72 6f 20 2a 2f | 0a 58 0a 58 09 2f 2a 20 |nzero */|.X.X./* |
|00000e70| 74 68 69 73 20 69 73 20 | 28 70 72 6f 62 61 62 6c |this is |(probabl|
|00000e80| 79 29 20 52 49 47 48 54 | 20 2a 2f 0a 58 09 69 6e |y) RIGHT| */.X.in|
|00000e90| 74 20 69 2c 6a 3b 0a 58 | 09 69 66 28 69 3d 3d 6a |t i,j;.X|.if(i==j|
|00000ea0| 29 7b 20 2e 2e 2e 20 7d | 20 2f 2a 77 69 6c 6c 20 |){ ... }| /*will |
|00000eb0| 65 78 65 63 75 74 65 20 | 69 66 20 69 20 69 73 20 |execute |if i is |
|00000ec0| 65 71 75 61 6c 20 74 6f | 20 6a 20 2a 2f 0a 58 0a |equal to| j */.X.|
|00000ed0| 58 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X-------|--------|
|00000ee0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f00| 2d 2d 2d 2d 2d 0a 58 0a | 58 33 2e 20 20 45 76 65 |-----.X.|X3. Eve|
|00000f10| 6e 20 65 78 70 65 72 69 | 65 6e 63 65 64 20 70 72 |n experi|enced pr|
|00000f20| 6f 67 72 61 6d 6d 65 72 | 73 20 73 6f 6d 65 74 69 |ogrammer|s someti|
|00000f30| 6d 65 73 20 66 6f 72 67 | 65 74 20 74 68 65 20 22 |mes forg|et the "|
|00000f40| 26 22 73 20 77 68 69 63 | 68 0a 58 61 72 65 20 72 |&"s whic|h.Xare r|
|00000f50| 65 71 75 69 72 65 64 20 | 6f 6e 20 74 68 65 20 61 |equired |on the a|
|00000f60| 72 67 75 6d 65 6e 74 73 | 20 74 6f 20 73 63 61 6e |rguments| to scan|
|00000f70| 66 2e 20 20 41 6c 6c 20 | 61 72 67 75 6d 65 6e 74 |f. All |argument|
|00000f80| 73 20 61 66 74 65 72 20 | 74 68 65 0a 58 66 69 72 |s after |the.Xfir|
|00000f90| 73 74 20 6d 75 73 74 20 | 68 61 76 65 20 22 26 22 |st must |have "&"|
|00000fa0| 20 69 6e 20 66 72 6f 6e | 74 20 6f 66 20 69 74 2e | in fron|t of it.|
|00000fb0| 0a 58 0a 58 45 78 61 6d | 70 6c 65 73 3a 0a 58 09 |.X.XExam|ples:.X.|
|00000fc0| 2f 2a 20 57 52 4f 4e 47 | 20 2e 2e 2e 20 67 75 61 |/* WRONG| ... gua|
|00000fd0| 72 61 6e 74 65 65 64 20 | 74 6f 20 64 75 6d 70 20 |ranteed |to dump |
|00000fe0| 63 6f 72 65 20 2a 2f 0a | 58 09 69 6e 74 20 69 3b |core */.|X.int i;|
|00000ff0| 0a 58 09 73 63 61 6e 66 | 28 22 25 64 22 2c 69 29 |.X.scanf|("%d",i)|
|00001000| 3b 0a 58 0a 58 09 2f 2a | 20 52 49 47 48 54 20 2a |;.X.X./*| RIGHT *|
|00001010| 2f 0a 58 09 69 6e 74 20 | 69 3b 0a 58 09 73 63 61 |/.X.int |i;.X.sca|
|00001020| 6e 66 28 22 25 64 22 2c | 26 69 29 3b 0a 58 0a 58 |nf("%d",|&i);.X.X|
|00001030| 09 2f 2a 20 66 6f 72 20 | 61 64 76 61 6e 63 65 64 |./* for |advanced|
|00001040| 20 73 74 75 64 65 6e 74 | 73 20 6f 6e 6c 79 3a 20 | student|s only: |
|00001050| 2a 2f 0a 58 09 69 6e 74 | 20 6a 2c 20 2a 69 20 3d |*/.X.int| j, *i =|
|00001060| 20 26 6a 3b 0a 58 09 73 | 63 61 6e 66 28 22 25 64 | &j;.X.s|canf("%d|
|00001070| 22 2c 69 29 3b 0a 58 09 | 70 72 69 6e 74 66 28 22 |",i);.X.|printf("|
|00001080| 25 64 20 25 64 5c 6e 22 | 2c 69 2c 6a 29 3b 20 2f |%d %d\n"|,i,j); /|
|00001090| 2a 20 77 68 61 74 20 64 | 6f 65 73 20 69 74 20 70 |* what d|oes it p|
|000010a0| 72 69 6e 74 3f 20 2a 2f | 0a 58 0a 58 2d 2d 2d 2d |rint? */|.X.X----|
|000010b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000010c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000010d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000010e0| 0a 58 0a 58 34 2e 20 20 | 42 65 77 61 72 65 20 74 |.X.X4. |Beware t|
|000010f0| 68 65 20 65 78 74 72 61 | 6e 65 6f 75 73 20 73 65 |he extra|neous se|
|00001100| 6d 69 63 6f 6c 6f 6e 2e | 0a 58 0a 58 09 2f 2a 20 |micolon.|.X.X./* |
|00001110| 28 70 72 6f 62 61 62 6c | 79 29 20 57 52 4f 4e 47 |(probabl|y) WRONG|
|00001120| 20 2a 2f 0a 58 09 66 6f | 72 28 69 3d 30 3b 20 69 | */.X.fo|r(i=0; i|
|00001130| 3c 31 30 3b 20 69 2b 2b | 29 3b 0a 58 09 09 70 72 |<10; i++|);.X..pr|
|00001140| 69 6e 74 66 28 22 25 64 | 5c 6e 22 2c 69 29 3b 0a |intf("%d|\n",i);.|
|00001150| 58 0a 58 09 2f 2a 20 28 | 70 72 6f 62 61 62 6c 79 |X.X./* (|probably|
|00001160| 29 20 52 49 47 48 54 20 | 2a 2f 0a 58 09 66 6f 72 |) RIGHT |*/.X.for|
|00001170| 28 69 3d 30 3b 20 69 3c | 31 30 3b 20 69 2b 2b 29 |(i=0; i<|10; i++)|
|00001180| 0a 58 09 09 70 72 69 6e | 74 66 28 22 25 64 5c 6e |.X..prin|tf("%d\n|
|00001190| 22 2c 69 29 3b 0a 58 0a | 58 2d 2d 2d 2d 2d 2d 2d |",i);.X.|X-------|
|000011a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 58 0a |--------|-----.X.|
|000011d0| 58 35 2e 20 20 41 67 61 | 69 6e 2c 20 65 76 65 6e |X5. Aga|in, even|
|000011e0| 20 65 78 70 65 72 69 65 | 6e 63 65 64 20 70 72 6f | experie|nced pro|
|000011f0| 67 72 61 6d 6d 65 72 73 | 20 73 6f 6d 65 74 69 6d |grammers| sometim|
|00001200| 65 73 20 28 48 69 2c 20 | 43 68 72 69 73 21 29 0a |es (Hi, |Chris!).|
|00001210| 58 67 65 74 20 62 69 74 | 20 62 79 20 74 68 65 20 |Xget bit| by the |
|00001220| 22 64 61 6e 67 6c 69 6e | 67 20 65 6c 73 65 22 20 |"danglin|g else" |
|00001230| 62 75 67 3a 0a 58 0a 58 | 09 69 66 28 69 3d 3d 35 |bug:.X.X|.if(i==5|
|00001240| 29 0a 58 09 09 6b 3d 37 | 3b 0a 58 09 09 69 66 20 |).X..k=7|;.X..if |
|00001250| 28 6c 69 6e 65 3d 3d 32 | 37 29 20 64 20 3d 20 33 |(line==2|7) d = 3|
|00001260| 39 3b 0a 58 09 65 6c 73 | 65 0a 58 09 09 64 20 3d |9;.X.els|e.X..d =|
|00001270| 20 34 31 3b 0a 58 0a 58 | 61 6e 64 20 76 61 72 69 | 41;.X.X|and vari|
|00001280| 61 74 69 6f 6e 73 20 74 | 6f 6f 20 6e 75 6d 65 72 |ations t|oo numer|
|00001290| 6f 75 73 20 74 6f 20 73 | 68 6f 77 20 68 65 72 65 |ous to s|how here|
|000012a0| 2e 20 20 54 68 65 20 22 | 65 6c 73 65 22 20 67 6f |. The "|else" go|
|000012b0| 65 73 20 77 69 74 68 20 | 74 68 65 0a 58 6e 65 61 |es with |the.Xnea|
|000012c0| 72 65 73 74 20 70 72 65 | 63 65 64 69 6e 67 20 22 |rest pre|ceding "|
|000012d0| 69 66 22 20 28 77 65 6c | 6c 2c 20 61 63 74 75 61 |if" (wel|l, actua|
|000012e0| 6c 6c 79 2c 20 74 68 65 | 20 6e 65 61 72 65 73 74 |lly, the| nearest|
|000012f0| 20 70 72 65 63 65 64 69 | 6e 67 0a 58 22 69 66 22 | precedi|ng.X"if"|
|00001300| 20 74 68 61 74 20 64 6f | 65 73 6e 27 74 20 61 6c | that do|esn't al|
|00001310| 72 65 61 64 79 20 68 61 | 76 65 20 61 6e 20 22 65 |ready ha|ve an "e|
|00001320| 6c 73 65 22 20 61 73 73 | 6f 63 69 61 74 65 64 20 |lse" ass|ociated |
|00001330| 77 69 74 68 20 69 74 29 | 2e 20 20 0a 58 54 68 65 |with it)|. .XThe|
|00001340| 20 63 6f 6d 70 69 6c 65 | 72 20 64 6f 65 73 20 6e | compile|r does n|
|00001350| 6f 74 20 6b 6e 6f 77 20 | 69 6e 64 65 6e 74 61 74 |ot know |indentat|
|00001360| 69 6f 6e 2e 0a 58 0a 58 | 2d 2d 2d 2d 2d 2d 2d 2d |ion..X.X|--------|
|00001370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001380| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001390| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 0a 58 |--------|----.X.X|
|000013a0| 36 2e 20 20 53 63 61 6e | 66 28 29 20 66 72 6f 6d |6. Scan|f() from|
|000013b0| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 6c 20 63 61 | the ter|minal ca|
|000013c0| 6e 20 70 72 6f 64 75 63 | 65 20 73 6f 6d 65 20 70 |n produc|e some p|
|000013d0| 65 72 70 6c 65 78 69 6e | 67 20 72 65 73 75 6c 74 |erplexin|g result|
|000013e0| 73 0a 58 75 6e 74 69 6c | 20 79 6f 75 20 6c 65 61 |s.Xuntil| you lea|
|000013f0| 72 6e 20 61 62 6f 75 74 | 20 22 74 68 65 20 74 65 |rn about| "the te|
|00001400| 72 6d 69 6e 61 74 69 6e | 67 20 6e 65 77 6c 69 6e |rminatin|g newlin|
|00001410| 65 22 2c 20 61 6e 64 20 | 77 68 61 74 20 73 63 61 |e", and |what sca|
|00001420| 6e 66 0a 58 63 6f 6e 73 | 69 64 65 72 73 20 74 6f |nf.Xcons|iders to|
|00001430| 20 62 65 20 77 68 69 74 | 65 73 70 61 63 65 20 66 | be whit|espace f|
|00001440| 6f 72 20 25 64 2c 20 25 | 73 2c 20 61 6e 64 20 25 |or %d, %|s, and %|
|00001450| 63 20 66 6f 72 6d 61 74 | 73 2e 20 20 50 72 69 6d |c format|s. Prim|
|00001460| 61 72 69 6c 79 0a 58 74 | 72 79 20 74 6f 20 72 65 |arily.Xt|ry to re|
|00001470| 6d 65 6d 62 65 72 20 74 | 68 61 74 20 66 6f 72 20 |member t|hat for |
|00001480| 61 20 22 25 64 22 20 66 | 6f 72 6d 61 74 2c 20 73 |a "%d" f|ormat, s|
|00001490| 63 61 6e 66 20 49 47 4e | 4f 52 45 53 20 6c 65 61 |canf IGN|ORES lea|
|000014a0| 64 69 6e 67 0a 58 77 68 | 69 74 65 73 70 61 63 65 |ding.Xwh|itespace|
|000014b0| 2c 20 61 6e 64 20 50 55 | 54 53 20 42 41 43 4b 20 |, and PU|TS BACK |
|000014c0| 74 68 65 20 77 68 69 74 | 65 73 70 61 63 65 20 77 |the whit|espace w|
|000014d0| 68 69 63 68 20 63 61 75 | 73 65 64 20 74 68 65 20 |hich cau|sed the |
|000014e0| 74 65 72 6d 69 6e 61 74 | 69 6f 6e 0a 58 6f 66 20 |terminat|ion.Xof |
|000014f0| 61 20 22 25 64 22 20 73 | 63 61 6e 2e 20 20 4d 6f |a "%d" s|can. Mo|
|00001500| 72 61 6c 20 6f 66 20 74 | 68 65 20 73 74 6f 72 79 |ral of t|he story|
|00001510| 3a 20 22 64 6f 20 6e 6f | 74 20 6d 69 78 20 25 63 |: "do no|t mix %c|
|00001520| 20 61 6e 64 20 25 73 20 | 66 6f 72 6d 61 74 73 0a | and %s |formats.|
|00001530| 58 77 69 74 68 20 25 64 | 20 6f 72 20 25 66 20 66 |Xwith %d| or %f f|
|00001540| 6f 72 6d 61 74 73 2c 20 | 6e 6f 72 20 6d 69 78 20 |ormats, |nor mix |
|00001550| 73 63 61 6e 66 20 77 69 | 74 68 20 67 65 74 63 68 |scanf wi|th getch|
|00001560| 61 72 2c 20 75 6e 6c 65 | 73 73 20 79 6f 75 20 61 |ar, unle|ss you a|
|00001570| 72 65 0a 58 76 65 72 79 | 20 63 61 72 65 66 75 6c |re.Xvery| careful|
|00001580| 20 41 4e 44 20 6b 6e 6f | 77 20 77 68 61 74 20 79 | AND kno|w what y|
|00001590| 6f 75 27 72 65 20 64 6f | 69 6e 67 2e 22 0a 45 4e |ou're do|ing.".EN|
|000015a0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|000015b0| 74 20 33 31 39 36 20 2d | 6e 65 20 60 77 63 20 2d |t 3196 -|ne `wc -|
|000015c0| 63 20 3c 27 43 2d 6d 69 | 73 74 61 6b 65 73 2e 74 |c <'C-mi|stakes.t|
|000015d0| 78 74 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |xt'`; th|en. e|
|000015e0| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 43 2d 6d |cho shar|: \"'C-m|
|000015f0| 69 73 74 61 6b 65 73 2e | 74 78 74 27 5c 22 20 75 |istakes.|txt'\" u|
|00001600| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00001610| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00001620| 64 20 6f 66 20 27 43 2d | 6d 69 73 74 61 6b 65 73 |d of 'C-|mistakes|
|00001630| 2e 74 78 74 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |.txt'.fi|.if test|
|00001640| 20 2d 66 20 27 4d 41 4e | 49 46 45 53 54 27 20 2d | -f 'MAN|IFEST' -|
|00001650| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00001660| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00001670| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00001680| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00001690| 66 69 6c 65 20 5c 22 27 | 4d 41 4e 49 46 45 53 54 |file \"'|MANIFEST|
|000016a0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|000016b0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000016c0| 22 27 4d 41 4e 49 46 45 | 53 54 27 5c 22 20 5c 28 |"'MANIFE|ST'\" \(|
|000016d0| 32 32 35 38 20 63 68 61 | 72 61 63 74 65 72 73 5c |2258 cha|racters\|
|000016e0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|000016f0| 27 4d 41 4e 49 46 45 53 | 54 27 20 3c 3c 27 45 4e |'MANIFES|T' <<'EN|
|00001700| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 20 20 20 46 |D_OF_FIL|E'.X F|
|00001710| 69 6c 65 20 4e 61 6d 65 | 09 09 41 72 63 68 69 76 |ile Name|..Archiv|
|00001720| 65 20 23 09 44 65 73 63 | 72 69 70 74 69 6f 6e 0a |e #.Desc|ription.|
|00001730| 58 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X-------|--------|
|00001740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001750| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001760| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 20 43 |--------|----.X C|
|00001770| 2d 6d 69 73 74 61 6b 65 | 73 2e 74 78 74 20 20 20 |-mistake|s.txt |
|00001780| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 4d | | 1..X M|
|00001790| 41 4e 49 46 45 53 54 20 | 20 20 20 20 20 20 20 20 |ANIFEST | |
|000017a0| 20 20 20 20 20 20 20 20 | 20 20 31 09 54 68 69 73 | | 1.This|
|000017b0| 20 73 68 69 70 70 69 6e | 67 20 6c 69 73 74 0a 58 | shippin|g list.X|
|000017c0| 20 4d 61 6b 65 66 69 6c | 65 20 20 20 20 20 20 20 | Makefil|e |
|000017d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|000017e0| 20 52 45 41 44 4d 45 20 | 20 20 20 20 20 20 20 20 | README | |
|000017f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001800| 20 61 63 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 | ac.txt | |
|00001810| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001820| 20 61 66 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 | af.txt | |
|00001830| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001840| 20 61 70 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 | ap.txt | |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001860| 20 61 70 72 6f 70 6f 73 | 2e 74 78 74 20 20 20 20 | apropos|.txt |
|00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001880| 20 62 79 65 2e 74 78 74 | 20 20 20 20 20 20 20 20 | bye.txt| |
|00001890| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|000018a0| 20 63 61 74 2e 74 78 74 | 20 20 20 20 20 20 20 20 | cat.txt| |
|000018b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|000018c0| 20 63 62 72 65 61 6b 2e | 63 20 20 20 20 20 20 20 | cbreak.|c |
|000018d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|000018e0| 20 63 63 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 | cc.txt | |
|000018f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001900| 20 63 64 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 | cd.txt | |
|00001910| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001920| 20 63 6f 6d 70 69 6c 65 | 72 73 2e 74 78 74 20 20 | compile|rs.txt |
|00001930| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001940| 20 63 6f 70 79 2e 74 78 | 74 20 20 20 20 20 20 20 | copy.tx|t |
|00001950| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001960| 20 63 70 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 | cp.txt | |
|00001970| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001980| 20 63 73 68 2e 74 78 74 | 20 20 20 20 20 20 20 20 | csh.txt| |
|00001990| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|000019a0| 20 64 69 72 2e 74 78 74 | 20 20 20 20 20 20 20 20 | dir.txt| |
|000019b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|000019c0| 20 65 64 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 | ed.txt | |
|000019d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|000019e0| 20 65 64 69 74 2e 74 78 | 74 20 20 20 20 20 20 20 | edit.tx|t |
|000019f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001a00| 20 65 78 69 74 2e 74 78 | 74 20 20 20 20 20 20 20 | exit.tx|t |
|00001a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001a20| 20 66 69 6c 65 73 20 20 | 20 20 20 20 20 20 20 20 | files | |
|00001a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001a40| 20 66 69 6c 65 73 2e 74 | 78 74 20 20 20 20 20 20 | files.t|xt |
|00001a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001a60| 20 66 69 6c 65 73 2f 61 | 2e 6f 75 74 2e 74 78 74 | files/a|.out.txt|
|00001a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001a80| 20 66 69 6c 65 73 2f 62 | 69 6e 61 72 69 65 73 20 | files/b|inaries |
|00001a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00001aa0| 20 66 69 6c 65 73 2f 62 | 69 6e 61 72 69 65 73 2e | files/b|inaries.|
|00001ab0| 74 78 74 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 |txt | 1..X|
|00001ac0| 20 66 69 6c 65 73 2f 62 | 69 6e 61 72 69 65 73 2f | files/b|inaries/|
|00001ad0| 61 2e 6f 75 74 2e 74 78 | 74 20 20 20 31 09 0a 58 |a.out.tx|t 1..X|
|00001ae0| 20 66 69 6c 65 73 2f 62 | 69 6e 61 72 69 65 73 2f | files/b|inaries/|
|00001af0| 65 78 65 63 75 74 61 62 | 6c 65 73 2e 74 78 74 20 |executab|les.txt |
|00001b00| 20 31 09 0a 58 20 66 69 | 6c 65 73 2f 66 69 6c 65 | 1..X fi|les/file|
|00001b10| 6e 61 6d 65 73 2e 74 78 | 74 20 20 20 20 20 20 20 |names.tx|t |
|00001b20| 20 31 09 0a 58 20 66 69 | 6c 65 73 2f 70 77 64 2e | 1..X fi|les/pwd.|
|00001b30| 74 78 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |txt | |
|00001b40| 20 31 09 0a 58 20 66 69 | 6c 65 73 2f 73 6f 75 72 | 1..X fi|les/sour|
|00001b50| 63 65 73 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 |ces.txt | |
|00001b60| 20 31 09 0a 58 20 66 6f | 72 74 72 61 6e 2e 74 78 | 1..X fo|rtran.tx|
|00001b70| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00001b80| 20 31 09 0a 58 20 67 61 | 6d 65 73 2e 74 78 74 20 | 1..X ga|mes.txt |
|00001b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ba0| 20 31 09 0a 58 20 67 75 | 72 75 20 20 20 20 20 20 | 1..X gu|ru |
|00001bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bc0| 20 31 09 0a 58 20 67 75 | 72 75 2e 31 20 20 20 20 | 1..X gu|ru.1 |
|00001bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001be0| 20 31 09 0a 58 20 67 75 | 72 75 2e 74 78 74 20 20 | 1..X gu|ru.txt |
|00001bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c00| 20 31 09 0a 58 20 68 65 | 6c 70 2e 63 20 20 20 20 | 1..X he|lp.c |
|00001c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c20| 20 31 09 0a 58 20 68 65 | 6c 70 2e 74 78 74 20 20 | 1..X he|lp.txt |
|00001c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c40| 20 31 09 0a 58 20 69 67 | 6f 72 73 20 20 20 20 20 | 1..X ig|ors |
|00001c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c60| 20 31 09 0a 58 20 69 67 | 6f 72 73 2e 31 20 20 20 | 1..X ig|ors.1 |
|00001c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c80| 20 31 09 0a 58 20 69 67 | 6f 72 73 2e 74 78 74 20 | 1..X ig|ors.txt |
|00001c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ca0| 20 31 09 0a 58 20 6b 69 | 6e 64 65 78 2e 63 20 20 | 1..X ki|ndex.c |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cc0| 20 31 09 0a 58 20 6c 61 | 6e 67 75 61 67 65 73 2e | 1..X la|nguages.|
|00001cd0| 74 78 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |txt | |
|00001ce0| 20 31 09 0a 58 20 6c 65 | 61 72 6e 2e 74 78 74 20 | 1..X le|arn.txt |
|00001cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d00| 20 31 09 0a 58 20 6c 65 | 73 73 2e 74 78 74 20 20 | 1..X le|ss.txt |
|00001d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d20| 20 31 09 0a 58 20 6c 69 | 73 74 66 64 2e 63 20 20 | 1..X li|stfd.c |
|00001d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d40| 20 31 09 0a 58 20 6c 69 | 73 74 69 74 2e 63 20 20 | 1..X li|stit.c |
|00001d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d60| 20 31 09 0a 58 20 6c 6f | 67 6f 66 66 2e 74 78 74 | 1..X lo|goff.txt|
|00001d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d80| 20 31 09 0a 58 20 6c 6f | 67 6f 75 74 2e 74 78 74 | 1..X lo|gout.txt|
|00001d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001da0| 20 31 09 0a 58 20 6d 61 | 69 6c 2e 74 78 74 20 20 | 1..X ma|il.txt |
|00001db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001dc0| 20 31 09 0a 58 20 6d 61 | 6e 2e 74 78 74 20 20 20 | 1..X ma|n.txt |
|00001dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001de0| 20 31 09 0a 58 20 6d 61 | 6e 75 61 6c 2e 74 78 74 | 1..X ma|nual.txt|
|00001df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e00| 20 31 09 0a 58 20 6d 76 | 2e 74 78 74 20 20 20 20 | 1..X mv|.txt |
|00001e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e20| 20 31 09 0a 58 20 6d 79 | 6d 6f 64 65 2e 63 20 20 | 1..X my|mode.c |
|00001e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e40| 20 31 09 0a 58 20 6e 65 | 77 73 2e 74 78 74 20 20 | 1..X ne|ws.txt |
|00001e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e60| 20 31 09 0a 58 20 6e 6f | 63 62 72 65 61 6b 2e 63 | 1..X no|cbreak.c|
|00001e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e80| 20 31 09 0a 58 20 6f 66 | 66 2e 74 78 74 20 20 20 | 1..X of|f.txt |
|00001e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ea0| 20 31 09 0a 58 20 70 61 | 73 63 61 6c 2e 74 78 74 | 1..X pa|scal.txt|
|00001eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ec0| 20 31 09 0a 58 20 70 61 | 73 73 77 64 2e 74 78 74 | 1..X pa|sswd.txt|
|00001ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ee0| 20 31 09 0a 58 20 70 68 | 6f 6e 65 2e 74 78 74 20 | 1..X ph|one.txt |
|00001ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f00| 20 31 09 0a 58 20 70 77 | 64 2e 74 78 74 20 20 20 | 1..X pw|d.txt |
|00001f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f20| 20 31 09 0a 58 20 71 75 | 69 74 2e 74 78 74 20 20 | 1..X qu|it.txt |
|00001f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f40| 20 31 09 0a 58 20 72 65 | 6e 61 6d 65 2e 74 78 74 | 1..X re|name.txt|
|00001f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f60| 20 31 09 0a 58 20 73 74 | 61 74 2e 63 20 20 20 20 | 1..X st|at.c |
|00001f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f80| 20 31 09 0a 58 20 74 61 | 6c 6b 2e 74 78 74 20 20 | 1..X ta|lk.txt |
|00001f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001fa0| 20 31 09 0a 58 20 74 65 | 72 6d 69 6e 61 6c 2e 74 | 1..X te|rminal.t|
|00001fb0| 78 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |xt | |
|00001fc0| 20 31 09 0a 58 20 74 65 | 73 74 2e 74 78 74 20 20 | 1..X te|st.txt |
|00001fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001fe0| 20 31 09 0a 58 20 75 6c | 67 72 70 20 20 20 20 20 | 1..X ul|grp |
|00001ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002000| 20 31 09 0a 58 20 76 69 | 2e 74 78 74 20 20 20 20 | 1..X vi|.txt |
|00002010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002020| 20 31 09 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a | 1..END_|OF_FILE.|
|00002030| 69 66 20 74 65 73 74 20 | 32 32 35 38 20 2d 6e 65 |if test |2258 -ne|
|00002040| 20 60 77 63 20 2d 63 20 | 3c 27 4d 41 4e 49 46 45 | `wc -c |<'MANIFE|
|00002050| 53 54 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |ST'`; th|en. e|
|00002060| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 4d 41 4e |cho shar|: \"'MAN|
|00002070| 49 46 45 53 54 27 5c 22 | 20 75 6e 70 61 63 6b 65 |IFEST'\"| unpacke|
|00002080| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00002090| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|000020a0| 4d 41 4e 49 46 45 53 54 | 27 0a 66 69 0a 69 66 20 |MANIFEST|'.fi.if |
|000020b0| 74 65 73 74 20 2d 66 20 | 27 4d 61 6b 65 66 69 6c |test -f |'Makefil|
|000020c0| 65 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |e' -a "$|{1}" != |
|000020d0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|000020e0| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|000020f0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00002100| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 4d 61 6b 65 |ing file| \"'Make|
|00002110| 66 69 6c 65 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |file'\".|else.ech|
|00002120| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00002130| 6e 67 20 5c 22 27 4d 61 | 6b 65 66 69 6c 65 27 5c |ng \"'Ma|kefile'\|
|00002140| 22 20 5c 28 31 33 39 39 | 20 63 68 61 72 61 63 74 |" \(1399| charact|
|00002150| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00002160| 2f 22 20 3e 27 4d 61 6b | 65 66 69 6c 65 27 20 3c |/" >'Mak|efile' <|
|00002170| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00002180| 23 4d 61 6b 65 66 69 6c | 65 20 66 6f 72 20 22 68 |#Makefil|e for "h|
|00002190| 65 6c 70 22 0a 58 0a 58 | 23 66 6f 72 20 53 65 71 |elp".X.X|#for Seq|
|000021a0| 75 65 6e 74 20 70 61 72 | 61 6c 6c 65 6c 20 6d 61 |uent par|allel ma|
|000021b0| 6b 65 3a 0a 58 50 3d 26 | 0a 58 0a 58 23 44 65 66 |ke:.XP=&|.X.X#Def|
|000021c0| 69 6e 65 20 4f 4c 44 44 | 49 52 20 69 66 20 79 6f |ine OLDD|IR if yo|
|000021d0| 75 20 64 6f 20 6e 6f 74 | 20 68 61 76 65 20 6f 70 |u do not| have op|
|000021e0| 65 6e 64 69 72 28 29 2c | 20 72 65 61 64 64 69 72 |endir(),| readdir|
|000021f0| 28 29 2c 20 65 74 63 2e | 2c 0a 58 23 20 61 6e 64 |(), etc.|,.X# and|
|00002200| 20 79 6f 75 72 20 64 69 | 72 65 63 74 6f 72 69 65 | your di|rectorie|
|00002210| 73 20 61 72 65 20 6f 66 | 20 74 68 65 20 31 36 2d |s are of| the 16-|
|00002220| 62 79 74 65 2c 20 31 34 | 2d 63 68 61 72 61 63 74 |byte, 14|-charact|
|00002230| 65 72 2d 6e 61 6d 65 20 | 76 61 72 69 65 74 79 2e |er-name |variety.|
|00002240| 0a 58 23 44 65 66 69 6e | 65 20 53 59 53 56 20 69 |.X#Defin|e SYSV i|
|00002250| 66 20 79 6f 75 20 6d 75 | 73 74 20 3a 2d 29 2e 0a |f you mu|st :-)..|
|00002260| 58 23 4e 6f 74 65 20 74 | 68 61 74 20 53 59 53 56 |X#Note t|hat SYSV|
|00002270| 20 61 6e 64 20 4f 4c 44 | 44 49 52 20 61 72 65 20 | and OLD|DIR are |
|00002280| 6e 6f 74 20 6e 65 63 65 | 73 73 61 72 69 6c 79 20 |not nece|ssarily |
|00002290| 72 65 6c 61 74 65 64 3b | 0a 58 23 20 61 74 20 6c |related;|.X# at l|
|000022a0| 65 61 73 74 20 6f 6e 65 | 20 76 65 72 73 69 6f 6e |east one| version|
|000022b0| 20 6f 66 20 58 65 6e 69 | 78 20 74 68 61 74 20 49 | of Xeni|x that I|
|000022c0| 20 6b 6e 6f 77 20 6f 66 | 20 72 65 71 75 69 72 65 | know of| require|
|000022d0| 73 20 62 6f 74 68 2c 0a | 58 23 20 61 6e 64 20 61 |s both,.|X# and a|
|000022e0| 74 20 6c 65 61 73 74 20 | 6f 6e 65 20 76 65 72 73 |t least |one vers|
|000022f0| 69 6f 6e 20 6f 66 20 53 | 79 73 56 20 68 61 73 20 |ion of S|ysV has |
|00002300| 74 68 65 20 6e 65 77 20 | 64 69 72 65 63 74 6f 72 |the new |director|
|00002310| 79 20 73 74 75 66 66 2e | 0a 58 43 46 4c 41 47 53 |y stuff.|.XCFLAGS|
|00002320| 3d 23 2d 4f 20 23 2d 44 | 53 59 53 56 20 23 2d 44 |=#-O #-D|SYSV #-D|
|00002330| 4f 4c 44 44 49 52 0a 58 | 23 43 43 3d 67 63 63 0a |OLDDIR.X|#CC=gcc.|
|00002340| 58 0a 58 0a 58 23 64 69 | 72 65 63 74 6f 72 79 20 |X.X.X#di|rectory |
|00002350| 77 68 65 72 65 20 74 68 | 65 20 22 2a 2e 74 78 74 |where th|e "*.txt|
|00002360| 22 20 66 69 6c 65 73 20 | 73 68 6f 75 6c 64 20 6c |" files |should l|
|00002370| 69 76 65 20 28 6d 6f 73 | 74 20 70 65 6f 70 6c 65 |ive (mos|t people|
|00002380| 20 77 6f 75 6c 64 0a 58 | 23 20 75 73 65 20 2f 75 | would.X|# use /u|
|00002390| 73 72 2f 6c 69 62 2f 68 | 65 6c 70 2c 20 62 75 74 |sr/lib/h|elp, but|
|000023a0| 20 69 74 20 72 65 61 6c | 6c 79 20 64 6f 65 73 6e | it real|ly doesn|
|000023b0| 27 74 20 6d 61 74 74 65 | 72 29 2e 0a 58 4c 49 42 |'t matte|r)..XLIB|
|000023c0| 3d 2f 75 73 72 2f 6c 69 | 62 2f 68 65 6c 70 0a 58 |=/usr/li|b/help.X|
|000023d0| 23 74 68 65 20 66 75 6c | 6c 20 70 61 74 68 6e 61 |#the ful|l pathna|
|000023e0| 6d 65 20 6f 66 20 74 68 | 65 20 65 78 65 63 75 74 |me of th|e execut|
|000023f0| 61 62 6c 65 20 28 69 6e | 20 65 76 65 72 79 6f 6e |able (in| everyon|
|00002400| 65 27 73 20 70 61 74 68 | 20 28 3f 29 29 2e 0a 58 |e's path| (?))..X|
|00002410| 45 58 45 3d 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 62 |EXE=/usr|/local/b|
|00002420| 69 6e 2f 68 65 6c 70 0a | 58 0a 58 53 52 43 3d 20 |in/help.|X.XSRC= |
|00002430| 68 65 6c 70 2e 63 20 6d | 79 6d 6f 64 65 2e 63 20 |help.c m|ymode.c |
|00002440| 6c 69 73 74 66 64 2e 63 | 20 6b 69 6e 64 65 78 2e |listfd.c| kindex.|
|00002450| 63 20 6c 69 73 74 69 74 | 2e 63 20 63 62 72 65 61 |c listit|.c cbrea|
|00002460| 6b 2e 63 20 6e 6f 63 62 | 72 65 61 6b 2e 63 0a 58 |k.c nocb|reak.c.X|
|00002470| 42 49 4e 3d 20 68 65 6c | 70 2e 6f 20 6d 79 6d 6f |BIN= hel|p.o mymo|
|00002480| 64 65 2e 6f 20 6c 69 73 | 74 66 64 2e 6f 20 6b 69 |de.o lis|tfd.o ki|
|00002490| 6e 64 65 78 2e 6f 20 6c | 69 73 74 69 74 2e 6f 20 |ndex.o l|istit.o |
|000024a0| 63 62 72 65 61 6b 2e 6f | 20 6e 6f 63 62 72 65 61 |cbreak.o| nocbrea|
|000024b0| 6b 2e 6f 0a 58 68 65 6c | 70 78 3a 20 24 28 50 29 |k.o.Xhel|px: $(P)|
|000024c0| 20 24 28 42 49 4e 29 0a | 58 09 24 28 43 43 29 20 | $(BIN).|X.$(CC) |
|000024d0| 2d 6f 20 68 65 6c 70 78 | 20 24 28 42 49 4e 29 0a |-o helpx| $(BIN).|
|000024e0| 58 69 6e 73 74 61 6c 6c | 3a 20 68 65 6c 70 78 0a |Xinstall|: helpx.|
|000024f0| 58 09 73 74 72 69 70 20 | 68 65 6c 70 78 0a 58 09 |X.strip |helpx.X.|
|00002500| 6d 76 20 68 65 6c 70 78 | 20 24 28 45 58 45 29 0a |mv helpx| $(EXE).|
|00002510| 58 09 2d 6d 6b 64 69 72 | 20 24 28 4c 49 42 29 0a |X.-mkdir| $(LIB).|
|00002520| 58 09 2d 6d 6b 64 69 72 | 20 24 28 4c 49 42 29 2f |X.-mkdir| $(LIB)/|
|00002530| 66 69 6c 65 73 0a 58 09 | 2d 6d 6b 64 69 72 20 24 |files.X.|-mkdir $|
|00002540| 28 4c 49 42 29 2f 66 69 | 6c 65 73 2f 62 69 6e 61 |(LIB)/fi|les/bina|
|00002550| 72 69 65 73 0a 58 09 2d | 63 70 20 2e 2f 2a 2e 74 |ries.X.-|cp ./*.t|
|00002560| 78 74 20 24 28 4c 49 42 | 29 0a 58 09 2d 63 70 20 |xt $(LIB|).X.-cp |
|00002570| 2e 2f 66 69 6c 65 73 2f | 2a 2e 74 78 74 20 24 28 |./files/|*.txt $(|
|00002580| 4c 49 42 29 2f 66 69 6c | 65 73 0a 58 09 2d 63 70 |LIB)/fil|es.X.-cp|
|00002590| 20 2e 2f 66 69 6c 65 73 | 2f 62 69 6e 61 72 69 65 | ./files|/binarie|
|000025a0| 73 2f 2a 2e 74 78 74 20 | 24 28 4c 49 42 29 2f 66 |s/*.txt |$(LIB)/f|
|000025b0| 69 6c 65 73 2f 62 69 6e | 61 72 69 65 73 0a 58 09 |iles/bin|aries.X.|
|000025c0| 2d 63 70 20 2a 2e 31 20 | 2f 75 73 72 2f 6d 61 6e |-cp *.1 |/usr/man|
|000025d0| 2f 6d 61 6e 31 0a 58 0a | 58 6c 69 6e 74 3a 20 24 |/man1.X.|Xlint: $|
|000025e0| 28 53 52 43 29 0a 58 09 | 6c 69 6e 74 20 24 28 43 |(SRC).X.|lint $(C|
|000025f0| 46 4c 41 47 53 29 20 2d | 44 4c 49 42 44 49 52 3d |FLAGS) -|DLIBDIR=|
|00002600| 5c 22 24 28 4c 49 42 29 | 5c 22 20 2d 63 70 62 68 |\"$(LIB)|\" -cpbh|
|00002610| 20 24 28 53 52 43 29 20 | 0a 58 09 6c 69 6e 74 20 | $(SRC) |.X.lint |
|00002620| 2d 63 70 62 68 20 73 74 | 61 74 2e 63 0a 58 73 68 |-cpbh st|at.c.Xsh|
|00002630| 61 72 3a 0a 58 09 6d 61 | 6b 65 6b 69 74 20 2d 6d |ar:.X.ma|kekit -m|
|00002640| 20 52 45 41 44 4d 45 20 | 4d 61 6b 65 66 69 6c 65 | README |Makefile|
|00002650| 20 24 28 53 52 43 29 20 | 2a 2e 74 78 74 20 73 74 | $(SRC) |*.txt st|
|00002660| 61 74 2e 63 20 5c 0a 58 | 09 66 69 6c 65 73 20 66 |at.c \.X|.files f|
|00002670| 69 6c 65 73 2f 2a 2e 74 | 78 74 20 5c 0a 58 09 66 |iles/*.t|xt \.X.f|
|00002680| 69 6c 65 73 2f 62 69 6e | 61 72 69 65 73 20 66 69 |iles/bin|aries fi|
|00002690| 6c 65 73 2f 62 69 6e 61 | 72 69 65 73 2f 2a 2e 74 |les/bina|ries/*.t|
|000026a0| 78 74 20 5c 0a 58 09 67 | 75 72 75 2e 31 20 69 67 |xt \.X.g|uru.1 ig|
|000026b0| 6f 72 73 2e 31 20 67 75 | 72 75 20 69 67 6f 72 73 |ors.1 gu|ru igors|
|000026c0| 20 75 6c 67 72 70 0a 58 | 68 65 6c 70 2e 6f 3a 20 | ulgrp.X|help.o: |
|000026d0| 68 65 6c 70 2e 63 0a 58 | 09 24 28 43 43 29 20 2d |help.c.X|.$(CC) -|
|000026e0| 63 20 24 28 43 46 4c 41 | 47 53 29 20 2d 44 4c 49 |c $(CFLA|GS) -DLI|
|000026f0| 42 44 49 52 3d 5c 22 24 | 28 4c 49 42 29 5c 22 20 |BDIR=\"$|(LIB)\" |
|00002700| 68 65 6c 70 2e 63 0a 58 | 63 6c 65 61 6e 3a 0a 58 |help.c.X|clean:.X|
|00002710| 09 2f 62 69 6e 2f 72 6d | 20 2d 66 20 2a 2e 6f 20 |./bin/rm| -f *.o |
|00002720| 68 65 6c 70 78 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |helpx.EN|D_OF_FIL|
|00002730| 45 0a 69 66 20 74 65 73 | 74 20 31 33 39 39 20 2d |E.if tes|t 1399 -|
|00002740| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 4d 61 6b 65 |ne `wc -|c <'Make|
|00002750| 66 69 6c 65 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |file'`; |then. |
|00002760| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 4d | echo sh|ar: \"'M|
|00002770| 61 6b 65 66 69 6c 65 27 | 5c 22 20 75 6e 70 61 63 |akefile'|\" unpac|
|00002780| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00002790| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|000027a0| 20 27 4d 61 6b 65 66 69 | 6c 65 27 0a 66 69 0a 69 | 'Makefi|le'.fi.i|
|000027b0| 66 20 74 65 73 74 20 2d | 66 20 27 52 45 41 44 4d |f test -|f 'READM|
|000027c0| 45 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |E' -a "$|{1}" != |
|000027d0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|000027e0| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|000027f0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00002800| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 52 45 41 44 |ing file| \"'READ|
|00002810| 4d 45 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |ME'\".el|se.echo |
|00002820| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00002830| 20 5c 22 27 52 45 41 44 | 4d 45 27 5c 22 20 5c 28 | \"'READ|ME'\" \(|
|00002840| 32 32 36 34 20 63 68 61 | 72 61 63 74 65 72 73 5c |2264 cha|racters\|
|00002850| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00002860| 27 52 45 41 44 4d 45 27 | 20 3c 3c 27 45 4e 44 5f |'README'| <<'END_|
|00002870| 4f 46 5f 46 49 4c 45 27 | 0a 58 0a 58 41 20 63 68 |OF_FILE'|.X.XA ch|
|00002880| 65 61 70 2f 73 69 6d 70 | 6c 65 2f 71 75 69 63 6b |eap/simp|le/quick|
|00002890| 2f 64 69 72 74 79 20 48 | 45 4c 50 20 66 61 63 69 |/dirty H|ELP faci|
|000028a0| 6c 69 74 79 20 66 6f 72 | 20 55 6e 69 78 2e 0a 58 |lity for| Unix..X|
|000028b0| 0a 58 54 68 65 20 6d 61 | 69 6e 74 61 69 6e 65 72 |.XThe ma|intainer|
|000028c0| 20 6e 65 65 64 20 6f 6e | 6c 79 20 61 64 64 20 22 | need on|ly add "|
|000028d0| 2e 74 78 74 22 20 66 69 | 6c 65 73 20 77 69 74 68 |.txt" fi|les with|
|000028e0| 20 74 68 65 20 70 72 6f | 70 65 72 20 6e 61 6d 65 | the pro|per name|
|000028f0| 0a 58 69 6e 20 74 68 65 | 20 70 72 6f 70 65 72 20 |.Xin the| proper |
|00002900| 70 6c 61 63 65 20 69 6e | 20 6f 72 64 65 72 20 74 |place in| order t|
|00002910| 6f 20 61 64 64 20 68 65 | 6c 70 2d 62 6c 75 72 62 |o add he|lp-blurb|
|00002920| 73 2e 20 20 49 74 20 68 | 61 73 20 68 69 65 72 61 |s. It h|as hiera|
|00002930| 72 63 68 69 61 6c 0a 58 | 22 46 75 72 74 68 65 72 |rchial.X|"Further|
|00002940| 20 68 65 6c 70 20 6f 6e | 20 2e 2e 2e 22 20 69 6d | help on| ..." im|
|00002950| 70 6c 65 6d 65 6e 74 65 | 64 20 62 79 20 74 68 65 |plemente|d by the|
|00002960| 20 68 69 65 72 61 72 63 | 68 69 61 6c 20 66 69 6c | hierarc|hial fil|
|00002970| 65 20 73 74 72 75 63 74 | 75 72 65 0a 58 6f 66 20 |e struct|ure.Xof |
|00002980| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 69 6e |the dire|ctory in|
|00002990| 20 77 68 69 63 68 20 74 | 68 65 20 68 65 6c 70 2d | which t|he help-|
|000029a0| 66 69 6c 65 73 20 6c 69 | 76 65 2e 20 41 6c 73 6f |files li|ve. Also|
|000029b0| 2c 20 74 68 65 20 6d 61 | 6e 2d 70 61 67 65 73 0a |, the ma|n-pages.|
|000029c0| 58 61 72 65 20 61 76 61 | 69 6c 61 62 6c 65 20 66 |Xare ava|ilable f|
|000029d0| 72 6f 6d 20 77 69 74 68 | 69 6e 20 74 68 65 20 66 |rom with|in the f|
|000029e0| 61 63 69 6c 69 74 79 2c | 20 77 69 74 68 6f 75 74 |acility,| without|
|000029f0| 20 64 72 6f 70 70 69 6e | 67 20 62 61 63 6b 0a 58 | droppin|g back.X|
|00002a00| 74 6f 20 74 68 65 20 73 | 68 65 6c 6c 20 6c 65 76 |to the s|hell lev|
|00002a10| 65 6c 2e 0a 58 0a 58 54 | 77 6f 20 63 6f 6d 70 69 |el..X.XT|wo compi|
|00002a20| 6c 65 2d 74 69 6d 65 20 | 6f 70 74 69 6f 6e 73 3a |le-time |options:|
|00002a30| 20 53 59 53 56 20 61 6e | 64 20 4f 4c 44 44 49 52 | SYSV an|d OLDDIR|
|00002a40| 2c 20 69 6e 20 74 68 65 | 20 43 46 4c 41 47 53 3d |, in the| CFLAGS=|
|00002a50| 20 6c 69 6e 65 20 0a 58 | 6f 66 20 74 68 65 20 4d | line .X|of the M|
|00002a60| 61 6b 65 66 69 6c 65 2e | 0a 58 0a 58 54 6f 20 6d |akefile.|.X.XTo m|
|00002a70| 61 6b 65 3a 20 20 6c 6f | 6f 6b 20 61 74 20 74 68 |ake: lo|ok at th|
|00002a80| 65 20 66 69 72 73 74 20 | 74 68 69 72 74 79 20 6f |e first |thirty o|
|00002a90| 72 20 73 6f 20 6c 69 6e | 65 73 20 6f 66 20 4d 61 |r so lin|es of Ma|
|00002aa0| 6b 65 66 69 6c 65 2e 0a | 58 54 68 65 6e 20 6d 61 |kefile..|XThen ma|
|00002ab0| 6b 65 2e 20 20 54 68 65 | 6e 20 6d 61 6b 65 20 69 |ke. The|n make i|
|00002ac0| 6e 73 74 61 6c 6c 2e 0a | 58 0a 58 49 74 20 68 61 |nstall..|X.XIt ha|
|00002ad0| 73 20 62 65 65 6e 20 74 | 65 73 74 65 64 20 61 6e |s been t|ested an|
|00002ae0| 64 20 77 6f 72 6b 73 20 | 6f 6e 3a 0a 58 31 29 20 |d works |on:.X1) |
|00002af0| 20 53 65 71 75 65 6e 74 | 20 44 79 6e 69 78 20 33 | Sequent| Dynix 3|
|00002b00| 2e 30 2e 31 34 20 28 42 | 53 44 34 2e 32 20 6b 6e |.0.14 (B|SD4.2 kn|
|00002b10| 6f 63 6b 6f 66 66 29 2c | 20 61 6e 64 0a 58 32 29 |ockoff),| and.X2)|
|00002b20| 20 20 53 79 73 56 20 6f | 6e 20 61 6e 20 41 54 26 | SysV o|n an AT&|
|00002b30| 54 20 36 33 38 36 20 62 | 6f 78 20 28 53 79 73 56 |T 6386 b|ox (SysV|
|00002b40| 20 76 65 72 73 69 6f 6e | 20 75 6e 6b 6e 6f 77 6e | version| unknown|
|00002b50| 2c 20 62 75 74 20 69 74 | 20 0a 58 20 20 20 20 64 |, but it| .X d|
|00002b60| 69 64 20 68 61 76 65 20 | 74 68 65 20 6e 65 77 2d |id have |the new-|
|00002b70| 64 69 72 65 63 74 6f 72 | 79 20 67 6f 6f 64 69 65 |director|y goodie|
|00002b80| 73 29 2c 20 61 6e 64 0a | 58 33 29 20 20 58 65 6e |s), and.|X3) Xen|
|00002b90| 69 78 20 6f 6e 20 61 20 | 54 61 6e 64 79 20 62 6f |ix on a |Tandy bo|
|00002ba0| 78 2e 20 20 4d 6f 73 74 | 6c 79 20 53 79 73 56 2c |x. Most|ly SysV,|
|00002bb0| 20 62 75 74 20 77 69 74 | 68 6f 75 74 20 74 68 65 | but wit|hout the|
|00002bc0| 20 64 69 72 65 63 74 6f | 72 79 0a 58 20 20 20 20 | directo|ry.X |
|00002bd0| 67 6f 6f 64 69 65 73 2e | 0a 58 0a 58 42 75 74 20 |goodies.|.X.XBut |
|00002be0| 6f 6e 65 20 6e 6f 74 65 | 20 6f 66 20 77 61 72 6e |one note| of warn|
|00002bf0| 69 6e 67 3a 20 20 49 27 | 76 65 20 69 6e 63 6c 75 |ing: I'|ve inclu|
|00002c00| 64 65 64 20 6d 79 20 22 | 53 65 71 75 65 6e 74 20 |ded my "|Sequent |
|00002c10| 77 69 74 68 20 63 63 22 | 20 76 65 72 73 69 6f 6e |with cc"| version|
|00002c20| 73 0a 58 6f 66 20 63 62 | 72 65 61 6b 28 29 20 61 |s.Xof cb|reak() a|
|00002c30| 6e 64 20 6e 6f 63 62 72 | 65 61 6b 28 29 2e 20 20 |nd nocbr|eak(). |
|00002c40| 54 68 65 79 20 6d 6f 73 | 74 20 6c 69 6b 65 6c 79 |They mos|t likely|
|00002c50| 20 77 69 6c 6c 20 6e 6f | 74 20 77 6f 72 6b 20 66 | will no|t work f|
|00002c60| 6f 72 20 79 6f 75 2e 0a | 58 54 68 65 79 20 64 6f |or you..|XThey do|
|00002c70| 6e 27 74 20 65 76 65 6e | 20 77 6f 72 6b 20 66 6f |n't even| work fo|
|00002c80| 72 20 6d 65 20 65 76 65 | 6e 20 75 73 69 6e 67 20 |r me eve|n using |
|00002c90| 74 68 65 20 67 63 63 20 | 63 6f 6d 70 69 6c 65 72 |the gcc |compiler|
|00002ca0| 2e 20 20 54 68 69 73 20 | 69 73 0a 58 62 65 63 61 |. This |is.Xbeca|
|00002cb0| 75 73 65 20 6f 66 20 73 | 6f 6d 65 20 77 65 69 72 |use of s|ome weir|
|00002cc0| 64 20 70 72 6f 70 65 72 | 74 79 20 6f 66 20 74 68 |d proper|ty of th|
|00002cd0| 65 20 63 63 20 70 72 65 | 70 72 6f 63 65 73 73 6f |e cc pre|processo|
|00002ce0| 72 20 64 65 61 6c 69 6e | 67 20 77 69 74 68 0a 58 |r dealin|g with.X|
|00002cf0| 54 49 4f 43 47 45 54 50 | 20 61 6e 64 20 54 49 4f |TIOCGETP| and TIO|
|00002d00| 43 53 45 54 50 20 6d 61 | 63 72 6f 73 2e 20 20 54 |CSETP ma|cros. T|
|00002d10| 68 65 20 68 65 61 64 65 | 72 20 66 69 6c 65 73 20 |he heade|r files |
|00002d20| 6d 61 6b 65 20 73 65 6e | 64 6d 61 69 6c 2e 63 66 |make sen|dmail.cf|
|00002d30| 20 6c 6f 6f 6b 0a 58 6c | 69 6b 65 20 61 20 4d 63 | look.Xl|ike a Mc|
|00002d40| 47 75 66 66 65 79 27 73 | 20 52 65 61 64 65 72 2e |Guffey's| Reader.|
|00002d50| 20 20 49 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f | If you| want to|
|00002d60| 20 73 61 76 65 20 79 6f | 75 72 20 75 73 65 72 73 | save yo|ur users|
|00002d70| 20 61 20 66 65 77 0a 58 | 6b 65 79 73 74 72 6f 6b | a few.X|keystrok|
|00002d80| 65 73 20 61 74 20 74 68 | 65 20 2d 2d 6d 6f 72 65 |es at th|e --more|
|00002d90| 2d 2d 20 70 72 6f 6d 70 | 74 2c 20 66 69 67 75 72 |-- promp|t, figur|
|00002da0| 65 20 6f 75 74 20 68 6f | 77 20 74 6f 20 64 6f 20 |e out ho|w to do |
|00002db0| 69 74 20 6f 6e 20 59 4f | 55 52 0a 58 73 79 73 74 |it on YO|UR.Xsyst|
|00002dc0| 65 6d 2e 20 20 54 72 79 | 20 63 72 6d 6f 64 65 28 |em. Try| crmode(|
|00002dd0| 29 2c 20 65 74 63 2e 2c | 20 77 69 74 68 20 74 68 |), etc.,| with th|
|00002de0| 65 20 63 75 72 73 65 73 | 2f 74 65 72 6d 63 61 70 |e curses|/termcap|
|00002df0| 2f 74 65 72 6d 6c 69 62 | 20 6c 69 62 72 61 72 69 |/termlib| librari|
|00002e00| 65 73 2c 0a 58 69 66 20 | 79 6f 75 20 68 61 76 65 |es,.Xif |you have|
|00002e10| 20 74 68 65 6d 2e 20 20 | 49 20 77 61 73 68 20 6d | them. |I wash m|
|00002e20| 79 20 68 61 6e 64 73 20 | 6f 66 20 74 68 65 20 77 |y hands |of the w|
|00002e30| 68 6f 6c 65 20 74 68 69 | 6e 67 2e 20 20 54 68 65 |hole thi|ng. The|
|00002e40| 20 22 65 61 74 0a 58 75 | 6e 74 69 6c 20 6e 65 77 | "eat.Xu|ntil new|
|00002e50| 6c 69 6e 65 22 20 6e 6f | 63 62 72 65 61 6b 28 29 |line" no|cbreak()|
|00002e60| 20 49 20 73 65 6e 64 20 | 73 65 65 6d 73 20 74 6f | I send |seems to|
|00002e70| 20 77 6f 72 6b 20 6f 6b | 2c 20 62 75 74 20 6e 6f | work ok|, but no|
|00002e80| 74 20 70 6c 65 61 73 69 | 6e 67 2e 0a 58 0a 58 59 |t pleasi|ng..X.XY|
|00002e90| 6f 75 20 6d 61 79 20 68 | 61 76 65 20 74 6f 20 62 |ou may h|ave to b|
|00002ea0| 65 63 6f 6d 65 20 72 6f | 6f 74 20 69 66 20 79 6f |ecome ro|ot if yo|
|00002eb0| 75 20 77 61 6e 74 20 74 | 6f 20 69 6e 73 74 61 6c |u want t|o instal|
|00002ec0| 6c 20 74 68 65 20 65 78 | 65 63 75 74 61 62 6c 65 |l the ex|ecutable|
|00002ed0| 20 69 6e 0a 58 65 76 65 | 72 79 62 6f 64 79 27 73 | in.Xeve|rybody's|
|00002ee0| 20 70 61 74 68 3b 20 6f | 74 68 65 72 77 69 73 65 | path; o|therwise|
|00002ef0| 20 6e 6f 20 62 69 67 20 | 64 65 61 6c 2e 20 20 54 | no big |deal. T|
|00002f00| 68 65 20 64 61 74 61 20 | 66 69 6c 65 73 20 63 61 |he data |files ca|
|00002f10| 6e 20 6c 69 76 65 0a 58 | 61 6e 79 77 68 65 72 65 |n live.X|anywhere|
|00002f20| 20 79 6f 75 20 64 65 63 | 69 64 65 20 74 6f 20 70 | you dec|ide to p|
|00002f30| 75 74 20 74 68 65 6d 2e | 20 20 0a 58 0a 58 4e 2e |ut them.| .X.XN.|
|00002f40| 42 2e 3a 20 49 27 6d 20 | 73 75 72 65 20 74 68 69 |B.: I'm |sure thi|
|00002f50| 73 20 68 61 73 20 62 65 | 65 6e 20 64 6f 6e 65 20 |s has be|en done |
|00002f60| 73 6f 6d 65 77 68 65 72 | 65 2c 20 73 6f 6d 65 74 |somewher|e, somet|
|00002f70| 69 6d 65 2c 20 6d 61 6e | 79 20 74 69 6d 65 73 0a |ime, man|y times.|
|00002f80| 58 62 65 66 6f 72 65 2c | 20 61 6e 64 20 63 61 6e |Xbefore,| and can|
|00002f90| 20 62 65 20 68 61 64 20 | 6f 6e 20 73 6f 6d 65 20 | be had |on some |
|00002fa0| 44 45 43 55 53 20 74 61 | 70 65 20 6f 72 20 55 53 |DECUS ta|pe or US|
|00002fb0| 45 4e 49 58 20 74 61 70 | 65 20 6f 72 20 63 61 6e |ENIX tap|e or can|
|00002fc0| 20 62 65 0a 58 66 74 70 | 27 65 64 20 66 72 6f 6d | be.Xftp|'ed from|
|00002fd0| 20 78 78 2e 78 78 2e 78 | 78 2e 78 78 2c 20 65 74 | xx.xx.x|x.xx, et|
|00002fe0| 63 2e 2c 20 62 75 74 20 | 77 68 61 74 20 74 68 65 |c., but |what the|
|00002ff0| 20 68 65 63 6b 2c 20 68 | 65 72 65 20 69 74 20 69 | heck, h|ere it i|
|00003000| 73 2c 20 74 72 61 73 68 | 20 69 74 0a 58 69 66 20 |s, trash| it.Xif |
|00003010| 69 74 27 73 20 77 6f 72 | 74 68 6c 65 73 73 2c 20 |it's wor|thless, |
|00003020| 74 68 65 20 70 72 69 63 | 65 20 69 73 20 72 69 67 |the pric|e is rig|
|00003030| 68 74 21 20 20 49 20 77 | 72 6f 74 65 20 69 74 20 |ht! I w|rote it |
|00003040| 62 65 63 61 75 73 65 20 | 49 20 64 69 64 6e 27 74 |because |I didn't|
|00003050| 0a 58 68 61 76 65 20 61 | 63 63 65 73 73 20 74 6f |.Xhave a|ccess to|
|00003060| 20 73 61 69 64 20 73 6f | 75 72 63 65 73 2c 20 65 | said so|urces, e|
|00003070| 74 63 2e 2c 20 61 6e 64 | 20 62 65 73 69 64 65 73 |tc., and| besides|
|00003080| 2c 20 69 74 20 77 61 73 | 20 66 75 6e 2e 20 20 50 |, it was| fun. P|
|00003090| 75 62 6c 69 63 0a 58 44 | 6f 6d 61 69 6e 2e 20 20 |ublic.XD|omain. |
|000030a0| 6a 68 6e 20 2d 2d 20 31 | 31 20 41 75 67 20 38 39 |jhn -- 1|1 Aug 89|
|000030b0| 2e 0a 58 20 2d 2d 20 0a | 58 4a 69 6d 20 4e 65 6c |..X -- .|XJim Nel|
|000030c0| 73 6f 6e 2c 55 4e 43 2d | 57 69 6c 6d 69 6e 67 74 |son,UNC-|Wilmingt|
|000030d0| 6f 6e 2c 4d 61 74 68 65 | 6d 61 74 69 63 61 6c 20 |on,Mathe|matical |
|000030e0| 53 63 69 65 6e 63 65 73 | 20 44 65 70 74 2c 0a 58 |Sciences| Dept,.X|
|000030f0| 39 31 39 2d 33 39 35 2d | 33 33 30 30 20 6e 65 6c |919-395-|3300 nel|
|00003100| 73 6f 6e 40 75 6e 63 77 | 2e 75 75 63 70 20 6f 72 |son@uncw|.uucp or|
|00003110| 20 6e 65 6c 73 6f 6e 40 | 65 63 73 76 61 78 2e 75 | nelson@|ecsvax.u|
|00003120| 6e 63 65 63 73 2e 65 64 | 75 20 6f 72 0a 58 6e 65 |ncecs.ed|u or.Xne|
|00003130| 6c 73 6f 6e 40 65 63 73 | 76 61 78 2e 62 69 74 6e |lson@ecs|vax.bitn|
|00003140| 65 74 20 6f 72 20 7b 2e | 2e 2e 2c 6d 63 6e 63 7d |et or {.|..,mcnc}|
|00003150| 21 65 63 73 76 61 78 21 | 6e 65 6c 73 6f 6e 20 0a |!ecsvax!|nelson .|
|00003160| 58 6f 72 20 7b 2e 2e 2e | 2c 6d 63 6e 63 7d 21 65 |Xor {...|,mcnc}!e|
|00003170| 63 73 76 61 78 21 75 6e | 63 77 21 6e 65 6c 73 6f |csvax!un|cw!nelso|
|00003180| 6e 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |n.END_OF|_FILE.if|
|00003190| 20 74 65 73 74 20 32 32 | 36 34 20 2d 6e 65 20 60 | test 22|64 -ne `|
|000031a0| 77 63 20 2d 63 20 3c 27 | 52 45 41 44 4d 45 27 60 |wc -c <'|README'`|
|000031b0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000031c0| 73 68 61 72 3a 20 5c 22 | 27 52 45 41 44 4d 45 27 |shar: \"|'README'|
|000031d0| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|000031e0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|000031f0| 23 20 65 6e 64 20 6f 66 | 20 27 52 45 41 44 4d 45 |# end of| 'README|
|00003200| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00003210| 27 61 63 2e 74 78 74 27 | 20 2d 61 20 22 24 7b 31 |'ac.txt'| -a "${1|
|00003220| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00003230| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00003240| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00003250| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00003260| 22 27 61 63 2e 74 78 74 | 27 5c 22 0a 65 6c 73 65 |"'ac.txt|'\".else|
|00003270| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00003280| 61 63 74 69 6e 67 20 5c | 22 27 61 63 2e 74 78 74 |acting \|"'ac.txt|
|00003290| 27 5c 22 20 5c 28 35 31 | 38 20 63 68 61 72 61 63 |'\" \(51|8 charac|
|000032a0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|000032b0| 2f 2f 22 20 3e 27 61 63 | 2e 74 78 74 27 20 3c 3c |//" >'ac|.txt' <<|
|000032c0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 54 |'END_OF_|FILE'.XT|
|000032d0| 68 65 20 74 68 72 65 65 | 20 70 72 6f 67 72 61 6d |he three| program|
|000032e0| 73 20 22 61 70 22 2c 20 | 22 61 63 22 2c 20 61 6e |s "ap", |"ac", an|
|000032f0| 64 20 22 61 66 22 2c 20 | 61 72 65 20 73 6f 6d 65 |d "af", |are some|
|00003300| 77 68 61 74 20 72 65 6d | 69 6e 69 73 63 65 6e 74 |what rem|iniscent|
|00003310| 0a 58 6f 66 20 50 43 20 | 63 6f 6d 70 69 6c 65 72 |.Xof PC |compiler|
|00003320| 73 2c 20 69 6e 20 74 68 | 61 74 20 74 68 65 79 20 |s, in th|at they |
|00003330| 77 69 6c 6c 20 63 6f 6d | 70 69 6c 65 2c 20 65 64 |will com|pile, ed|
|00003340| 69 74 2c 20 63 6f 6d 70 | 69 6c 65 2c 20 65 64 69 |it, comp|ile, edi|
|00003350| 74 2c 0a 58 63 6f 6d 70 | 69 6c 65 2c 20 65 64 69 |t,.Xcomp|ile, edi|
|00003360| 74 2c 20 2e 2e 2e 20 61 | 64 20 6e 61 75 73 65 61 |t, ... a|d nausea|
|00003370| 6d 2c 20 77 69 74 68 6f | 75 74 20 65 76 65 72 20 |m, witho|ut ever |
|00003380| 64 72 6f 70 70 69 6e 67 | 20 79 6f 75 20 62 61 63 |dropping| you bac|
|00003390| 6b 20 74 6f 0a 58 74 68 | 65 20 73 68 65 6c 6c 2e |k to.Xth|e shell.|
|000033a0| 20 20 54 68 65 79 20 61 | 6c 73 6f 20 28 61 6e 64 | They a|lso (and|
|000033b0| 20 68 65 72 65 20 69 73 | 20 74 68 65 69 72 20 75 | here is| their u|
|000033c0| 73 65 66 75 6c 6e 65 73 | 73 29 20 6d 65 72 67 65 |sefulnes|s) merge|
|000033d0| 20 79 6f 75 72 0a 58 65 | 72 72 6f 72 20 6d 65 73 | your.Xe|rror mes|
|000033e0| 73 61 67 65 73 20 62 61 | 63 6b 20 69 6e 74 6f 20 |sages ba|ck into |
|000033f0| 79 6f 75 72 20 73 6f 75 | 72 63 65 20 66 69 6c 65 |your sou|rce file|
|00003400| 2c 20 6c 65 74 20 79 6f | 75 20 66 69 78 20 79 6f |, let yo|u fix yo|
|00003410| 75 72 0a 58 73 6f 75 72 | 63 65 2c 20 61 6e 64 20 |ur.Xsour|ce, and |
|00003420| 74 68 65 6e 20 72 65 6d | 6f 76 65 20 74 68 65 20 |then rem|ove the |
|00003430| 6d 65 73 73 61 67 65 73 | 2c 20 61 6c 6c 20 62 79 |messages|, all by|
|00003440| 20 62 6c 61 63 6b 20 6d | 61 67 69 63 21 20 20 41 | black m|agic! A|
|00003450| 75 74 68 6f 72 65 64 0a | 58 62 79 20 44 72 2e 20 |uthored.|Xby Dr. |
|00003460| 44 6f 6f 6d 20 69 6e 20 | 72 65 73 70 6f 6e 73 65 |Doom in |response|
|00003470| 20 74 6f 20 74 68 65 20 | 74 68 65 20 22 64 72 61 | to the |the "dra|
|00003480| 77 20 61 20 6c 69 74 74 | 6c 65 20 68 61 6e 64 20 |w a litt|le hand |
|00003490| 77 69 74 68 20 61 20 66 | 69 6e 67 65 72 0a 58 70 |with a f|inger.Xp|
|000034a0| 6f 69 6e 74 69 6e 67 20 | 74 6f 20 74 68 65 20 6d |ointing |to the m|
|000034b0| 69 73 74 61 6b 65 22 20 | 73 79 6e 64 72 6f 6d 65 |istake" |syndrome|
|000034c0| 20 6f 66 20 73 6f 6d 65 | 20 70 6f 70 75 6c 61 72 | of some| popular|
|000034d0| 20 63 6f 6d 70 75 74 65 | 72 73 2e 0a 45 4e 44 5f | compute|rs..END_|
|000034e0| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|000034f0| 35 31 38 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |518 -ne |`wc -c <|
|00003500| 27 61 63 2e 74 78 74 27 | 60 3b 20 74 68 65 6e 0a |'ac.txt'|`; then.|
|00003510| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00003520| 22 27 61 63 2e 74 78 74 | 27 5c 22 20 75 6e 70 61 |"'ac.txt|'\" unpa|
|00003530| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00003540| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00003550| 66 20 27 61 63 2e 74 78 | 74 27 0a 66 69 0a 69 66 |f 'ac.tx|t'.fi.if|
|00003560| 20 74 65 73 74 20 2d 66 | 20 27 61 66 2e 74 78 74 | test -f| 'af.txt|
|00003570| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00003580| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00003590| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|000035a0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000035b0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 61 66 2e 74 78 |ng file |\"'af.tx|
|000035c0| 74 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |t'\".els|e.echo s|
|000035d0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|000035e0| 5c 22 27 61 66 2e 74 78 | 74 27 5c 22 20 5c 28 35 |\"'af.tx|t'\" \(5|
|000035f0| 31 38 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |18 chara|cters\).|
|00003600| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 61 |sed "s/^|X//" >'a|
|00003610| 66 2e 74 78 74 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |f.txt' <|<'END_OF|
|00003620| 5f 46 49 4c 45 27 0a 58 | 54 68 65 20 74 68 72 65 |_FILE'.X|The thre|
|00003630| 65 20 70 72 6f 67 72 61 | 6d 73 20 22 61 70 22 2c |e progra|ms "ap",|
|00003640| 20 22 61 63 22 2c 20 61 | 6e 64 20 22 61 66 22 2c | "ac", a|nd "af",|
|00003650| 20 61 72 65 20 73 6f 6d | 65 77 68 61 74 20 72 65 | are som|ewhat re|
|00003660| 6d 69 6e 69 73 63 65 6e | 74 0a 58 6f 66 20 50 43 |miniscen|t.Xof PC|
|00003670| 20 63 6f 6d 70 69 6c 65 | 72 73 2c 20 69 6e 20 74 | compile|rs, in t|
|00003680| 68 61 74 20 74 68 65 79 | 20 77 69 6c 6c 20 63 6f |hat they| will co|
|00003690| 6d 70 69 6c 65 2c 20 65 | 64 69 74 2c 20 63 6f 6d |mpile, e|dit, com|
|000036a0| 70 69 6c 65 2c 20 65 64 | 69 74 2c 0a 58 63 6f 6d |pile, ed|it,.Xcom|
|000036b0| 70 69 6c 65 2c 20 65 64 | 69 74 2c 20 2e 2e 2e 20 |pile, ed|it, ... |
|000036c0| 61 64 20 6e 61 75 73 65 | 61 6d 2c 20 77 69 74 68 |ad nause|am, with|
|000036d0| 6f 75 74 20 65 76 65 72 | 20 64 72 6f 70 70 69 6e |out ever| droppin|
|000036e0| 67 20 79 6f 75 20 62 61 | 63 6b 20 74 6f 0a 58 74 |g you ba|ck to.Xt|
|000036f0| 68 65 20 73 68 65 6c 6c | 2e 20 20 54 68 65 79 20 |he shell|. They |
|00003700| 61 6c 73 6f 20 28 61 6e | 64 20 68 65 72 65 20 69 |also (an|d here i|
|00003710| 73 20 74 68 65 69 72 20 | 75 73 65 66 75 6c 6e 65 |s their |usefulne|
|00003720| 73 73 29 20 6d 65 72 67 | 65 20 79 6f 75 72 0a 58 |ss) merg|e your.X|
|00003730| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 73 20 62 |error me|ssages b|
|00003740| 61 63 6b 20 69 6e 74 6f | 20 79 6f 75 72 20 73 6f |ack into| your so|
|00003750| 75 72 63 65 20 66 69 6c | 65 2c 20 6c 65 74 20 79 |urce fil|e, let y|
|00003760| 6f 75 20 66 69 78 20 79 | 6f 75 72 0a 58 73 6f 75 |ou fix y|our.Xsou|
|00003770| 72 63 65 2c 20 61 6e 64 | 20 74 68 65 6e 20 72 65 |rce, and| then re|
|00003780| 6d 6f 76 65 20 74 68 65 | 20 6d 65 73 73 61 67 65 |move the| message|
|00003790| 73 2c 20 61 6c 6c 20 62 | 79 20 62 6c 61 63 6b 20 |s, all b|y black |
|000037a0| 6d 61 67 69 63 21 20 20 | 41 75 74 68 6f 72 65 64 |magic! |Authored|
|000037b0| 0a 58 62 79 20 44 72 2e | 20 44 6f 6f 6d 20 69 6e |.Xby Dr.| Doom in|
|000037c0| 20 72 65 73 70 6f 6e 73 | 65 20 74 6f 20 74 68 65 | respons|e to the|
|000037d0| 20 74 68 65 20 22 64 72 | 61 77 20 61 20 6c 69 74 | the "dr|aw a lit|
|000037e0| 74 6c 65 20 68 61 6e 64 | 20 77 69 74 68 20 61 20 |tle hand| with a |
|000037f0| 66 69 6e 67 65 72 0a 58 | 70 6f 69 6e 74 69 6e 67 |finger.X|pointing|
|00003800| 20 74 6f 20 74 68 65 20 | 6d 69 73 74 61 6b 65 22 | to the |mistake"|
|00003810| 20 73 79 6e 64 72 6f 6d | 65 20 6f 66 20 73 6f 6d | syndrom|e of som|
|00003820| 65 20 70 6f 70 75 6c 61 | 72 20 63 6f 6d 70 75 74 |e popula|r comput|
|00003830| 65 72 73 2e 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |ers..END|_OF_FILE|
|00003840| 0a 69 66 20 74 65 73 74 | 20 35 31 38 20 2d 6e 65 |.if test| 518 -ne|
|00003850| 20 60 77 63 20 2d 63 20 | 3c 27 61 66 2e 74 78 74 | `wc -c |<'af.txt|
|00003860| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00003870| 6f 20 73 68 61 72 3a 20 | 5c 22 27 61 66 2e 74 78 |o shar: |\"'af.tx|
|00003880| 74 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |t'\" unp|acked wi|
|00003890| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000038a0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 61 66 2e 74 |i.# end |of 'af.t|
|000038b0| 78 74 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |xt'.fi.i|f test -|
|000038c0| 66 20 27 61 70 2e 74 78 | 74 27 20 2d 61 20 22 24 |f 'ap.tx|t' -a "$|
|000038d0| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|000038e0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|000038f0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00003900| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00003910| 20 5c 22 27 61 70 2e 74 | 78 74 27 5c 22 0a 65 6c | \"'ap.t|xt'\".el|
|00003920| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00003930| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 61 70 2e 74 |tracting| \"'ap.t|
|00003940| 78 74 27 5c 22 20 5c 28 | 35 31 38 20 63 68 61 72 |xt'\" \(|518 char|
|00003950| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00003960| 5e 58 2f 2f 22 20 3e 27 | 61 70 2e 74 78 74 27 20 |^X//" >'|ap.txt' |
|00003970| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00003980| 58 54 68 65 20 74 68 72 | 65 65 20 70 72 6f 67 72 |XThe thr|ee progr|
|00003990| 61 6d 73 20 22 61 70 22 | 2c 20 22 61 63 22 2c 20 |ams "ap"|, "ac", |
|000039a0| 61 6e 64 20 22 61 66 22 | 2c 20 61 72 65 20 73 6f |and "af"|, are so|
|000039b0| 6d 65 77 68 61 74 20 72 | 65 6d 69 6e 69 73 63 65 |mewhat r|eminisce|
|000039c0| 6e 74 0a 58 6f 66 20 50 | 43 20 63 6f 6d 70 69 6c |nt.Xof P|C compil|
|000039d0| 65 72 73 2c 20 69 6e 20 | 74 68 61 74 20 74 68 65 |ers, in |that the|
|000039e0| 79 20 77 69 6c 6c 20 63 | 6f 6d 70 69 6c 65 2c 20 |y will c|ompile, |
|000039f0| 65 64 69 74 2c 20 63 6f | 6d 70 69 6c 65 2c 20 65 |edit, co|mpile, e|
|00003a00| 64 69 74 2c 0a 58 63 6f | 6d 70 69 6c 65 2c 20 65 |dit,.Xco|mpile, e|
|00003a10| 64 69 74 2c 20 2e 2e 2e | 20 61 64 20 6e 61 75 73 |dit, ...| ad naus|
|00003a20| 65 61 6d 2c 20 77 69 74 | 68 6f 75 74 20 65 76 65 |eam, wit|hout eve|
|00003a30| 72 20 64 72 6f 70 70 69 | 6e 67 20 79 6f 75 20 62 |r droppi|ng you b|
|00003a40| 61 63 6b 20 74 6f 0a 58 | 74 68 65 20 73 68 65 6c |ack to.X|the shel|
|00003a50| 6c 2e 20 20 54 68 65 79 | 20 61 6c 73 6f 20 28 61 |l. They| also (a|
|00003a60| 6e 64 20 68 65 72 65 20 | 69 73 20 74 68 65 69 72 |nd here |is their|
|00003a70| 20 75 73 65 66 75 6c 6e | 65 73 73 29 20 6d 65 72 | usefuln|ess) mer|
|00003a80| 67 65 20 79 6f 75 72 0a | 58 65 72 72 6f 72 20 6d |ge your.|Xerror m|
|00003a90| 65 73 73 61 67 65 73 20 | 62 61 63 6b 20 69 6e 74 |essages |back int|
|00003aa0| 6f 20 79 6f 75 72 20 73 | 6f 75 72 63 65 20 66 69 |o your s|ource fi|
|00003ab0| 6c 65 2c 20 6c 65 74 20 | 79 6f 75 20 66 69 78 20 |le, let |you fix |
|00003ac0| 79 6f 75 72 0a 58 73 6f | 75 72 63 65 2c 20 61 6e |your.Xso|urce, an|
|00003ad0| 64 20 74 68 65 6e 20 72 | 65 6d 6f 76 65 20 74 68 |d then r|emove th|
|00003ae0| 65 20 6d 65 73 73 61 67 | 65 73 2c 20 61 6c 6c 20 |e messag|es, all |
|00003af0| 62 79 20 62 6c 61 63 6b | 20 6d 61 67 69 63 21 20 |by black| magic! |
|00003b00| 20 41 75 74 68 6f 72 65 | 64 0a 58 62 79 20 44 72 | Authore|d.Xby Dr|
|00003b10| 2e 20 44 6f 6f 6d 20 69 | 6e 20 72 65 73 70 6f 6e |. Doom i|n respon|
|00003b20| 73 65 20 74 6f 20 74 68 | 65 20 74 68 65 20 22 64 |se to th|e the "d|
|00003b30| 72 61 77 20 61 20 6c 69 | 74 74 6c 65 20 68 61 6e |raw a li|ttle han|
|00003b40| 64 20 77 69 74 68 20 61 | 20 66 69 6e 67 65 72 0a |d with a| finger.|
|00003b50| 58 70 6f 69 6e 74 69 6e | 67 20 74 6f 20 74 68 65 |Xpointin|g to the|
|00003b60| 20 6d 69 73 74 61 6b 65 | 22 20 73 79 6e 64 72 6f | mistake|" syndro|
|00003b70| 6d 65 20 6f 66 20 73 6f | 6d 65 20 70 6f 70 75 6c |me of so|me popul|
|00003b80| 61 72 20 63 6f 6d 70 75 | 74 65 72 73 2e 0a 45 4e |ar compu|ters..EN|
|00003b90| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00003ba0| 74 20 35 31 38 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 518 -n|e `wc -c|
|00003bb0| 20 3c 27 61 70 2e 74 78 | 74 27 60 3b 20 74 68 65 | <'ap.tx|t'`; the|
|00003bc0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00003bd0| 20 5c 22 27 61 70 2e 74 | 78 74 27 5c 22 20 75 6e | \"'ap.t|xt'\" un|
|00003be0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00003bf0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00003c00| 20 6f 66 20 27 61 70 2e | 74 78 74 27 0a 66 69 0a | of 'ap.|txt'.fi.|
|00003c10| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 70 72 6f |if test |-f 'apro|
|00003c20| 70 6f 73 2e 74 78 74 27 | 20 2d 61 20 22 24 7b 31 |pos.txt'| -a "${1|
|00003c30| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00003c40| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00003c50| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00003c60| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00003c70| 22 27 61 70 72 6f 70 6f | 73 2e 74 78 74 27 5c 22 |"'apropo|s.txt'\"|
|00003c80| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00003c90| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 61 | Extract|ing \"'a|
|00003ca0| 70 72 6f 70 6f 73 2e 74 | 78 74 27 5c 22 20 5c 28 |propos.t|xt'\" \(|
|00003cb0| 31 35 31 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |151 char|acters\)|
|00003cc0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00003cd0| 61 70 72 6f 70 6f 73 2e | 74 78 74 27 20 3c 3c 27 |apropos.|txt' <<'|
|00003ce0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 41 70 |END_OF_F|ILE'.XAp|
|00003cf0| 72 6f 70 6f 73 20 77 69 | 6c 6c 20 73 65 61 72 63 |ropos wi|ll searc|
|00003d00| 68 20 74 68 65 20 74 69 | 74 6c 65 20 6c 69 6e 65 |h the ti|tle line|
|00003d10| 73 20 6f 66 20 74 68 65 | 20 6d 61 6e 75 61 6c 20 |s of the| manual |
|00003d20| 70 61 67 65 73 20 6c 6f | 6f 6b 69 6e 67 0a 58 66 |pages lo|oking.Xf|
|00003d30| 6f 72 20 61 20 6b 65 79 | 77 6f 72 64 2e 20 20 49 |or a key|word. I|
|00003d40| 74 20 77 69 6c 6c 20 74 | 68 65 6e 20 74 65 6c 6c |t will t|hen tell|
|00003d50| 20 79 6f 75 20 74 68 6f | 73 65 20 63 6f 6d 6d 61 | you tho|se comma|
|00003d60| 6e 64 73 20 77 68 69 63 | 68 20 61 72 65 0a 58 66 |nds whic|h are.Xf|
|00003d70| 6f 75 6e 64 2e 20 20 53 | 65 65 20 61 6c 73 6f 20 |ound. S|ee also |
|00003d80| 22 6d 61 6e 22 2e 0a 45 | 4e 44 5f 4f 46 5f 46 49 |"man"..E|ND_OF_FI|
|00003d90| 4c 45 0a 69 66 20 74 65 | 73 74 20 31 35 31 20 2d |LE.if te|st 151 -|
|00003da0| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 61 70 72 6f |ne `wc -|c <'apro|
|00003db0| 70 6f 73 2e 74 78 74 27 | 60 3b 20 74 68 65 6e 0a |pos.txt'|`; then.|
|00003dc0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00003dd0| 22 27 61 70 72 6f 70 6f | 73 2e 74 78 74 27 5c 22 |"'apropo|s.txt'\"|
|00003de0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00003df0| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00003e00| 65 6e 64 20 6f 66 20 27 | 61 70 72 6f 70 6f 73 2e |end of '|apropos.|
|00003e10| 74 78 74 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |txt'.fi.|if test |
|00003e20| 2d 66 20 27 62 79 65 2e | 74 78 74 27 20 2d 61 20 |-f 'bye.|txt' -a |
|00003e30| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00003e40| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00003e50| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00003e60| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00003e70| 6c 65 20 5c 22 27 62 79 | 65 2e 74 78 74 27 5c 22 |le \"'by|e.txt'\"|
|00003e80| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00003e90| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 62 | Extract|ing \"'b|
|00003ea0| 79 65 2e 74 78 74 27 5c | 22 20 5c 28 32 37 33 20 |ye.txt'\|" \(273 |
|00003eb0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00003ec0| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 62 79 65 2e | "s/^X//|" >'bye.|
|00003ed0| 74 78 74 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |txt' <<'|END_OF_F|
|00003ee0| 49 4c 45 27 0a 58 59 6f | 75 20 6c 6f 67 20 6f 66 |ILE'.XYo|u log of|
|00003ef0| 66 20 74 68 65 20 55 6e | 69 78 20 6d 61 63 68 69 |f the Un|ix machi|
|00003f00| 6e 65 73 20 62 79 20 74 | 79 70 69 6e 67 20 63 6f |nes by t|yping co|
|00003f10| 6e 74 72 6f 6c 2d 64 20 | 61 74 20 74 68 65 0a 58 |ntrol-d |at the.X|
|00003f20| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 70 72 6f |command |line pro|
|00003f30| 6d 70 74 2e 20 20 28 54 | 6f 20 74 79 70 65 20 63 |mpt. (T|o type c|
|00003f40| 6f 6e 74 72 6f 6c 2d 64 | 2c 20 79 6f 75 20 48 4f |ontrol-d|, you HO|
|00003f50| 4c 44 20 44 4f 57 4e 20 | 74 68 65 0a 58 22 63 6f |LD DOWN |the.X"co|
|00003f60| 6e 74 72 6f 6c 22 20 6b | 65 79 20 57 48 49 4c 45 |ntrol" k|ey WHILE|
|00003f70| 20 74 79 70 69 6e 67 20 | 22 64 22 3b 20 74 68 69 | typing |"d"; thi|
|00003f80| 73 20 69 73 20 6e 6f 74 | 20 61 20 74 77 6f 2d 73 |s is not| a two-s|
|00003f90| 74 72 6f 6b 65 0a 58 73 | 65 71 75 65 6e 63 65 20 |troke.Xs|equence |
|00003fa0| 2d 2d 20 69 74 27 73 20 | 61 20 6f 6e 65 2d 6b 65 |-- it's |a one-ke|
|00003fb0| 79 73 74 72 6f 6b 65 20 | 73 65 71 75 65 6e 63 65 |ystroke |sequence|
|00003fc0| 20 6d 61 64 65 20 62 79 | 20 68 6f 6c 64 69 6e 67 | made by| holding|
|00003fd0| 0a 58 64 6f 77 6e 20 74 | 68 65 20 66 69 72 73 74 |.Xdown t|he first|
|00003fe0| 20 77 68 69 6c 65 20 74 | 79 70 69 6e 67 20 74 68 | while t|yping th|
|00003ff0| 65 20 73 65 63 6f 6e 64 | 29 2e 0a 45 4e 44 5f 4f |e second|)..END_O|
|00004000| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 32 |F_FILE.i|f test 2|
|00004010| 37 33 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |73 -ne `|wc -c <'|
|00004020| 62 79 65 2e 74 78 74 27 | 60 3b 20 74 68 65 6e 0a |bye.txt'|`; then.|
|00004030| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00004040| 22 27 62 79 65 2e 74 78 | 74 27 5c 22 20 75 6e 70 |"'bye.tx|t'\" unp|
|00004050| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00004060| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00004070| 6f 66 20 27 62 79 65 2e | 74 78 74 27 0a 66 69 0a |of 'bye.|txt'.fi.|
|00004080| 69 66 20 74 65 73 74 20 | 2d 66 20 27 63 61 74 2e |if test |-f 'cat.|
|00004090| 74 78 74 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |txt' -a |"${1}" !|
|000040a0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000040b0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|000040c0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|000040d0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 63 61 |sting fi|le \"'ca|
|000040e0| 74 2e 74 78 74 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |t.txt'\"|.else.ec|
|000040f0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00004100| 69 6e 67 20 5c 22 27 63 | 61 74 2e 74 78 74 27 5c |ing \"'c|at.txt'\|
|00004110| 22 20 5c 28 32 31 32 20 | 63 68 61 72 61 63 74 65 |" \(212 |characte|
|00004120| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00004130| 22 20 3e 27 63 61 74 2e | 74 78 74 27 20 3c 3c 27 |" >'cat.|txt' <<'|
|00004140| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 54 68 |END_OF_F|ILE'.XTh|
|00004150| 65 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 22 63 6f |e progra|m to "co|
|00004160| 6e 63 61 74 65 6e 61 74 | 65 22 20 6d 75 6c 74 69 |ncatenat|e" multi|
|00004170| 70 6c 65 20 66 69 6c 65 | 73 20 69 73 20 63 61 6c |ple file|s is cal|
|00004180| 6c 65 64 20 22 63 61 74 | 22 2e 0a 58 55 73 61 67 |led "cat|"..XUsag|
|00004190| 65 3a 0a 58 24 20 63 61 | 74 20 66 69 6c 65 31 20 |e:.X$ ca|t file1 |
|000041a0| 66 69 6c 65 32 20 66 69 | 6c 65 33 20 2e 2e 2e 20 |file2 fi|le3 ... |
|000041b0| 3e 20 6f 75 74 70 75 74 | 66 69 6c 65 0a 58 0a 58 |> output|file.X.X|
|000041c0| 42 65 20 63 61 72 65 66 | 75 6c 20 74 68 61 74 20 |Be caref|ul that |
|000041d0| 22 6f 75 74 70 75 74 66 | 69 6c 65 22 20 69 73 20 |"outputf|ile" is |
|000041e0| 6e 6f 74 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |not the |same as |
|000041f0| 61 6e 79 20 6f 66 20 74 | 68 65 20 6f 74 68 65 72 |any of t|he other|
|00004200| 0a 58 66 69 6c 65 73 2e | 20 20 49 66 20 69 74 20 |.Xfiles.| If it |
|00004210| 69 73 2c 20 69 74 20 77 | 69 6c 6c 20 62 65 20 4c |is, it w|ill be L|
|00004220| 4f 53 54 21 21 0a 58 0a | 45 4e 44 5f 4f 46 5f 46 |OST!!.X.|END_OF_F|
|00004230| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 32 31 32 20 |ILE.if t|est 212 |
|00004240| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 63 61 74 |-ne `wc |-c <'cat|
|00004250| 2e 74 78 74 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |.txt'`; |then. |
|00004260| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 63 | echo sh|ar: \"'c|
|00004270| 61 74 2e 74 78 74 27 5c | 22 20 75 6e 70 61 63 6b |at.txt'\|" unpack|
|00004280| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00004290| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|000042a0| 27 63 61 74 2e 74 78 74 | 27 0a 66 69 0a 69 66 20 |'cat.txt|'.fi.if |
|000042b0| 74 65 73 74 20 2d 66 20 | 27 63 62 72 65 61 6b 2e |test -f |'cbreak.|
|000042c0| 63 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |c' -a "$|{1}" != |
|000042d0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|000042e0| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|000042f0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00004300| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 63 62 72 65 |ing file| \"'cbre|
|00004310| 61 6b 2e 63 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |ak.c'\".|else.ech|
|00004320| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00004330| 6e 67 20 5c 22 27 63 62 | 72 65 61 6b 2e 63 27 5c |ng \"'cb|reak.c'\|
|00004340| 22 20 5c 28 34 39 30 20 | 63 68 61 72 61 63 74 65 |" \(490 |characte|
|00004350| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00004360| 22 20 3e 27 63 62 72 65 | 61 6b 2e 63 27 20 3c 3c |" >'cbre|ak.c' <<|
|00004370| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 23 |'END_OF_|FILE'.X#|
|00004380| 69 66 64 65 66 20 73 65 | 71 75 65 6e 74 0a 58 23 |ifdef se|quent.X#|
|00004390| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|000043a0| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 67 74 |>.X#incl|ude <sgt|
|000043b0| 74 79 2e 68 3e 0a 58 0a | 58 63 62 72 65 61 6b 28 |ty.h>.X.|Xcbreak(|
|000043c0| 29 0a 58 7b 0a 58 09 69 | 6e 74 20 69 3b 0a 58 09 |).X{.X.i|nt i;.X.|
|000043d0| 65 78 74 65 72 6e 20 69 | 6e 74 20 65 72 72 6e 6f |extern i|nt errno|
|000043e0| 3b 0a 58 09 73 74 72 75 | 63 74 20 73 67 74 74 79 |;.X.stru|ct sgtty|
|000043f0| 62 20 74 74 79 73 74 61 | 74 75 73 3b 0a 58 09 63 |b ttysta|tus;.X.c|
|00004400| 68 61 72 20 2a 61 3b 0a | 58 09 2f 2a 20 69 74 20 |har *a;.|X./* it |
|00004410| 69 73 20 73 65 65 6d 69 | 6e 67 6c 79 20 69 6d 70 |is seemi|ngly imp|
|00004420| 6f 73 73 69 62 6c 65 20 | 74 6f 20 67 65 74 20 6c |ossible |to get l|
|00004430| 69 6e 74 20 74 6f 20 73 | 68 75 74 0a 58 09 75 70 |int to s|hut.X.up|
|00004440| 20 61 62 6f 75 74 20 74 | 68 69 73 3a 20 2a 2f 0a | about t|his: */.|
|00004450| 58 09 61 3d 20 26 74 74 | 79 73 74 61 74 75 73 2e |X.a= &tt|ystatus.|
|00004460| 73 67 5f 69 73 70 65 65 | 64 3b 0a 58 09 65 72 72 |sg_ispee|d;.X.err|
|00004470| 6e 6f 3d 30 3b 0a 58 09 | 69 3d 69 6f 63 74 6c 28 |no=0;.X.|i=ioctl(|
|00004480| 30 2c 54 49 4f 43 47 45 | 54 50 2c 61 29 3b 0a 58 |0,TIOCGE|TP,a);.X|
|00004490| 09 69 66 28 69 3c 30 29 | 0a 58 09 7b 69 6e 74 20 |.if(i<0)|.X.{int |
|000044a0| 6d 65 3b 6d 65 3d 65 72 | 72 6e 6f 3b 66 70 72 69 |me;me=er|rno;fpri|
|000044b0| 6e 74 66 28 73 74 64 65 | 72 72 2c 22 65 72 72 6e |ntf(stde|rr,"errn|
|000044c0| 6f 20 25 64 5c 6e 22 2c | 6d 65 29 3b 65 78 69 74 |o %d\n",|me);exit|
|000044d0| 28 33 29 3b 7d 0a 58 0a | 58 23 64 65 66 69 6e 65 |(3);}.X.|X#define|
|000044e0| 20 46 09 74 74 79 73 74 | 61 74 75 73 2e 73 67 5f | F.ttyst|atus.sg_|
|000044f0| 66 6c 61 67 73 0a 58 09 | 46 20 7c 3d 20 43 42 52 |flags.X.|F |= CBR|
|00004500| 45 41 4b 3b 0a 58 09 69 | 3d 69 6f 63 74 6c 28 30 |EAK;.X.i|=ioctl(0|
|00004510| 2c 54 49 4f 43 53 45 54 | 50 2c 61 29 3b 0a 58 09 |,TIOCSET|P,a);.X.|
|00004520| 69 66 28 69 3c 30 29 0a | 58 09 7b 69 6e 74 20 6d |if(i<0).|X.{int m|
|00004530| 65 3b 6d 65 3d 65 72 72 | 6e 6f 3b 66 70 72 69 6e |e;me=err|no;fprin|
|00004540| 74 66 28 73 74 64 65 72 | 72 2c 22 65 72 72 6e 6f |tf(stder|r,"errno|
|00004550| 20 25 64 5c 6e 22 2c 6d | 65 29 3b 65 78 69 74 28 | %d\n",m|e);exit(|
|00004560| 34 29 3b 7d 0a 58 7d 0a | 58 23 65 6c 73 65 0a 58 |4);}.X}.|X#else.X|
|00004570| 63 62 72 65 61 6b 28 29 | 7b 7d 0a 58 23 65 6e 64 |cbreak()|{}.X#end|
|00004580| 69 66 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |if.END_O|F_FILE.i|
|00004590| 66 20 74 65 73 74 20 34 | 39 30 20 2d 6e 65 20 60 |f test 4|90 -ne `|
|000045a0| 77 63 20 2d 63 20 3c 27 | 63 62 72 65 61 6b 2e 63 |wc -c <'|cbreak.c|
|000045b0| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|000045c0| 6f 20 73 68 61 72 3a 20 | 5c 22 27 63 62 72 65 61 |o shar: |\"'cbrea|
|000045d0| 6b 2e 63 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |k.c'\" u|npacked |
|000045e0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000045f0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 63 62 |.fi.# en|d of 'cb|
|00004600| 72 65 61 6b 2e 63 27 0a | 66 69 0a 69 66 20 74 65 |reak.c'.|fi.if te|
|00004610| 73 74 20 2d 66 20 27 63 | 63 2e 74 78 74 27 20 2d |st -f 'c|c.txt' -|
|00004620| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00004630| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00004640| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00004650| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00004660| 66 69 6c 65 20 5c 22 27 | 63 63 2e 74 78 74 27 5c |file \"'|cc.txt'\|
|00004670| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00004680| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00004690| 63 63 2e 74 78 74 27 5c | 22 20 5c 28 31 35 35 20 |cc.txt'\|" \(155 |
|000046a0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|000046b0| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 63 63 2e 74 | "s/^X//|" >'cc.t|
|000046c0| 78 74 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |xt' <<'E|ND_OF_FI|
|000046d0| 4c 45 27 0a 58 54 68 65 | 20 63 6f 6d 6d 61 6e 64 |LE'.XThe| command|
|000046e0| 20 74 6f 20 63 6f 6d 70 | 69 6c 65 20 61 20 43 2d | to comp|ile a C-|
|000046f0| 6c 61 6e 67 75 61 67 65 | 20 70 72 6f 67 72 61 6d |language| program|
|00004700| 20 69 73 0a 58 24 20 63 | 63 20 66 69 6c 65 6e 61 | is.X$ c|c filena|
|00004710| 6d 65 2e 63 0a 58 54 68 | 65 20 72 65 73 75 6c 74 |me.c.XTh|e result|
|00004720| 69 6e 67 20 65 78 65 63 | 75 74 61 62 6c 65 20 77 |ing exec|utable w|
|00004730| 69 6c 6c 20 62 65 20 6c | 65 66 74 20 69 6e 20 22 |ill be l|eft in "|
|00004740| 61 2e 6f 75 74 22 20 69 | 6e 20 79 6f 75 72 20 64 |a.out" i|n your d|
|00004750| 69 72 65 63 74 6f 72 79 | 2e 0a 58 54 6f 20 72 75 |irectory|..XTo ru|
|00004760| 6e 20 69 74 2c 20 74 79 | 70 65 0a 58 24 20 61 2e |n it, ty|pe.X$ a.|
|00004770| 6f 75 74 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |out.END_|OF_FILE.|
|00004780| 69 66 20 74 65 73 74 20 | 31 35 35 20 2d 6e 65 20 |if test |155 -ne |
|00004790| 60 77 63 20 2d 63 20 3c | 27 63 63 2e 74 78 74 27 |`wc -c <|'cc.txt'|
|000047a0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|000047b0| 20 73 68 61 72 3a 20 5c | 22 27 63 63 2e 74 78 74 | shar: \|"'cc.txt|
|000047c0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000047d0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|000047e0| 0a 23 20 65 6e 64 20 6f | 66 20 27 63 63 2e 74 78 |.# end o|f 'cc.tx|
|000047f0| 74 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |t'.fi.if| test -f|
|00004800| 20 27 63 64 2e 74 78 74 | 27 20 2d 61 20 22 24 7b | 'cd.txt|' -a "${|
|00004810| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00004820| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00004830| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00004840| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00004850| 5c 22 27 63 64 2e 74 78 | 74 27 5c 22 0a 65 6c 73 |\"'cd.tx|t'\".els|
|00004860| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|00004870| 72 61 63 74 69 6e 67 20 | 5c 22 27 63 64 2e 74 78 |racting |\"'cd.tx|
|00004880| 74 27 5c 22 20 5c 28 32 | 36 39 20 63 68 61 72 61 |t'\" \(2|69 chara|
|00004890| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|000048a0| 58 2f 2f 22 20 3e 27 63 | 64 2e 74 78 74 27 20 3c |X//" >'c|d.txt' <|
|000048b0| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|000048c0| 22 63 64 22 20 6d 65 61 | 6e 73 20 22 63 68 61 6e |"cd" mea|ns "chan|
|000048d0| 67 65 20 64 69 72 65 63 | 74 6f 72 79 22 2e 20 20 |ge direc|tory". |
|000048e0| 54 68 61 74 20 69 73 2c | 20 63 68 61 6e 67 65 20 |That is,| change |
|000048f0| 74 6f 20 74 68 61 74 20 | 64 69 72 65 63 74 6f 72 |to that |director|
|00004900| 79 0a 58 73 6f 20 74 68 | 61 74 20 69 74 20 62 65 |y.Xso th|at it be|
|00004910| 63 6f 6d 65 73 20 74 68 | 65 20 64 65 66 61 75 6c |comes th|e defaul|
|00004920| 74 20 64 69 72 65 63 74 | 6f 72 79 2e 20 20 55 73 |t direct|ory. Us|
|00004930| 61 67 65 20 65 78 61 6d | 70 6c 65 3a 0a 58 25 20 |age exam|ple:.X% |
|00004940| 63 64 20 2f 75 73 72 32 | 2f 6e 65 6c 73 6f 6e 0a |cd /usr2|/nelson.|
|00004950| 58 63 61 75 73 65 73 20 | 61 6c 6c 20 66 75 72 74 |Xcauses |all furt|
|00004960| 68 65 72 20 63 6f 6d 6d | 61 6e 64 73 20 77 68 69 |her comm|ands whi|
|00004970| 63 68 20 72 65 66 65 72 | 20 74 6f 20 74 68 65 20 |ch refer| to the |
|00004980| 64 65 66 61 75 6c 74 20 | 64 69 72 65 63 74 6f 72 |default |director|
|00004990| 79 0a 58 74 6f 20 6c 6f | 6f 6b 20 69 6e 20 2f 75 |y.Xto lo|ok in /u|
|000049a0| 73 72 32 2f 6e 65 6c 73 | 6f 6e 20 66 69 72 73 74 |sr2/nels|on first|
|000049b0| 2e 20 20 54 6f 20 72 65 | 74 75 72 6e 20 68 6f 6d |. To re|turn hom|
|000049c0| 65 2c 20 6a 75 73 74 20 | 73 61 79 0a 58 25 20 63 |e, just |say.X% c|
|000049d0| 64 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |d.END_OF|_FILE.if|
|000049e0| 20 74 65 73 74 20 32 36 | 39 20 2d 6e 65 20 60 77 | test 26|9 -ne `w|
|000049f0| 63 20 2d 63 20 3c 27 63 | 64 2e 74 78 74 27 60 3b |c -c <'c|d.txt'`;|
|00004a00| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00004a10| 68 61 72 3a 20 5c 22 27 | 63 64 2e 74 78 74 27 5c |har: \"'|cd.txt'\|
|00004a20| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00004a30| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00004a40| 20 65 6e 64 20 6f 66 20 | 27 63 64 2e 74 78 74 27 | end of |'cd.txt'|
|00004a50| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00004a60| 63 6f 6d 70 69 6c 65 72 | 73 2e 74 78 74 27 20 2d |compiler|s.txt' -|
|00004a70| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00004a80| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00004a90| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00004aa0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00004ab0| 66 69 6c 65 20 5c 22 27 | 63 6f 6d 70 69 6c 65 72 |file \"'|compiler|
|00004ac0| 73 2e 74 78 74 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |s.txt'\"|.else.ec|
|00004ad0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00004ae0| 69 6e 67 20 5c 22 27 63 | 6f 6d 70 69 6c 65 72 73 |ing \"'c|ompilers|
|00004af0| 2e 74 78 74 27 5c 22 20 | 5c 28 32 38 33 20 63 68 |.txt'\" |\(283 ch|
|00004b00| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00004b10| 73 2f 5e 58 2f 2f 22 20 | 3e 27 63 6f 6d 70 69 6c |s/^X//" |>'compil|
|00004b20| 65 72 73 2e 74 78 74 27 | 20 3c 3c 27 45 4e 44 5f |ers.txt'| <<'END_|
|00004b30| 4f 46 5f 46 49 4c 45 27 | 0a 58 54 68 65 72 65 20 |OF_FILE'|.XThere |
|00004b40| 61 72 65 20 74 68 72 65 | 65 20 6f 66 66 69 63 69 |are thre|e offici|
|00004b50| 61 6c 6c 79 20 73 75 70 | 70 6f 72 74 65 64 20 6c |ally sup|ported l|
|00004b60| 61 6e 67 75 61 67 65 73 | 20 6f 6e 20 74 68 69 73 |anguages| on this|
|00004b70| 20 6d 61 63 68 69 6e 65 | 3a 0a 58 46 4f 52 54 52 | machine|:.XFORTR|
|00004b80| 41 4e 2c 20 43 2c 20 61 | 6e 64 20 50 61 73 63 61 |AN, C, a|nd Pasca|
|00004b90| 6c 2e 20 20 41 64 61 20 | 69 73 20 6f 6e 20 6c 6f |l. Ada |is on lo|
|00004ba0| 61 6e 20 66 72 6f 6d 20 | 53 65 71 75 65 6e 74 2c |an from |Sequent,|
|00004bb0| 20 61 6e 64 20 6d 61 79 | 0a 58 62 65 20 72 65 74 | and may|.Xbe ret|
|00004bc0| 75 72 6e 65 64 20 61 74 | 20 61 6e 79 20 74 69 6d |urned at| any tim|
|00004bd0| 65 2e 20 20 41 77 6b 20 | 61 6e 64 20 50 65 72 6c |e. Awk |and Perl|
|00004be0| 20 6d 61 79 20 62 65 20 | 63 6f 6e 73 69 64 65 72 | may be |consider|
|00004bf0| 65 64 20 62 79 20 73 6f | 6d 65 0a 58 74 6f 20 62 |ed by so|me.Xto b|
|00004c00| 65 20 6c 61 6e 67 75 61 | 67 65 73 2e 20 20 57 65 |e langua|ges. We|
|00004c10| 20 64 6f 20 6e 6f 74 20 | 68 61 76 65 20 42 41 53 | do not |have BAS|
|00004c20| 49 43 2c 20 6e 6f 72 20 | 61 72 65 20 77 65 20 65 |IC, nor |are we e|
|00004c30| 76 65 72 20 6c 69 6b 65 | 6c 79 20 74 6f 2e 0a 58 |ver like|ly to..X|
|00004c40| 43 2b 2b 20 6d 61 79 20 | 62 65 20 63 6f 6d 69 6e |C++ may |be comin|
|00004c50| 67 20 6c 61 74 65 72 2e | 0a 45 4e 44 5f 4f 46 5f |g later.|.END_OF_|
|00004c60| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 32 38 33 |FILE.if |test 283|
|00004c70| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 63 6f | -ne `wc| -c <'co|
|00004c80| 6d 70 69 6c 65 72 73 2e | 74 78 74 27 60 3b 20 74 |mpilers.|txt'`; t|
|00004c90| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00004ca0| 72 3a 20 5c 22 27 63 6f | 6d 70 69 6c 65 72 73 2e |r: \"'co|mpilers.|
|00004cb0| 74 78 74 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |txt'\" u|npacked |
|00004cc0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00004cd0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 63 6f |.fi.# en|d of 'co|
|00004ce0| 6d 70 69 6c 65 72 73 2e | 74 78 74 27 0a 66 69 0a |mpilers.|txt'.fi.|
|00004cf0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 63 6f 70 79 |if test |-f 'copy|
|00004d00| 2e 74 78 74 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |.txt' -a| "${1}" |
|00004d10| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00004d20| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00004d30| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00004d40| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 63 |isting f|ile \"'c|
|00004d50| 6f 70 79 2e 74 78 74 27 | 5c 22 0a 65 6c 73 65 0a |opy.txt'|\".else.|
|00004d60| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00004d70| 63 74 69 6e 67 20 5c 22 | 27 63 6f 70 79 2e 74 78 |cting \"|'copy.tx|
|00004d80| 74 27 5c 22 20 5c 28 38 | 31 20 63 68 61 72 61 63 |t'\" \(8|1 charac|
|00004d90| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00004da0| 2f 2f 22 20 3e 27 63 6f | 70 79 2e 74 78 74 27 20 |//" >'co|py.txt' |
|00004db0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00004dc0| 58 43 6f 70 79 69 6e 67 | 20 69 73 20 64 6f 6e 65 |XCopying| is done|
|00004dd0| 20 62 79 20 74 68 65 20 | 22 63 70 22 20 63 6f 6d | by the |"cp" com|
|00004de0| 6d 61 6e 64 2c 20 77 68 | 69 63 68 20 68 61 73 20 |mand, wh|ich has |
|00004df0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 75 73 |the foll|owing us|
|00004e00| 61 67 65 3a 0a 58 24 20 | 63 70 20 66 72 6f 6d 20 |age:.X$ |cp from |
|00004e10| 74 6f 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |to.END_O|F_FILE.i|
|00004e20| 66 20 74 65 73 74 20 38 | 31 20 2d 6e 65 20 60 77 |f test 8|1 -ne `w|
|00004e30| 63 20 2d 63 20 3c 27 63 | 6f 70 79 2e 74 78 74 27 |c -c <'c|opy.txt'|
|00004e40| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00004e50| 20 73 68 61 72 3a 20 5c | 22 27 63 6f 70 79 2e 74 | shar: \|"'copy.t|
|00004e60| 78 74 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |xt'\" un|packed w|
|00004e70| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00004e80| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 63 6f 70 |fi.# end| of 'cop|
|00004e90| 79 2e 74 78 74 27 0a 66 | 69 0a 69 66 20 74 65 73 |y.txt'.f|i.if tes|
|00004ea0| 74 20 2d 66 20 27 63 70 | 2e 74 78 74 27 20 2d 61 |t -f 'cp|.txt' -a|
|00004eb0| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00004ec0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00004ed0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00004ee0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00004ef0| 69 6c 65 20 5c 22 27 63 | 70 2e 74 78 74 27 5c 22 |ile \"'c|p.txt'\"|
|00004f00| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00004f10| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 63 | Extract|ing \"'c|
|00004f20| 70 2e 74 78 74 27 5c 22 | 20 5c 28 38 31 20 63 68 |p.txt'\"| \(81 ch|
|00004f30| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00004f40| 73 2f 5e 58 2f 2f 22 20 | 3e 27 63 70 2e 74 78 74 |s/^X//" |>'cp.txt|
|00004f50| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00004f60| 27 0a 58 43 6f 70 79 69 | 6e 67 20 69 73 20 64 6f |'.XCopyi|ng is do|
|00004f70| 6e 65 20 62 79 20 74 68 | 65 20 22 63 70 22 20 63 |ne by th|e "cp" c|
|00004f80| 6f 6d 6d 61 6e 64 2c 20 | 77 68 69 63 68 20 68 61 |ommand, |which ha|
|00004f90| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s the fo|llowing |
|00004fa0| 75 73 61 67 65 3a 0a 58 | 24 20 63 70 20 66 72 6f |usage:.X|$ cp fro|
|00004fb0| 6d 20 74 6f 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |m to.END|_OF_FILE|
|00004fc0| 0a 69 66 20 74 65 73 74 | 20 38 31 20 2d 6e 65 20 |.if test| 81 -ne |
|00004fd0| 60 77 63 20 2d 63 20 3c | 27 63 70 2e 74 78 74 27 |`wc -c <|'cp.txt'|
|00004fe0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00004ff0| 20 73 68 61 72 3a 20 5c | 22 27 63 70 2e 74 78 74 | shar: \|"'cp.txt|
|00005000| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00005010| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00005020| 0a 23 20 65 6e 64 20 6f | 66 20 27 63 70 2e 74 78 |.# end o|f 'cp.tx|
|00005030| 74 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |t'.fi.if| test -f|
|00005040| 20 27 63 73 68 2e 74 78 | 74 27 20 2d 61 20 22 24 | 'csh.tx|t' -a "$|
|00005050| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00005060| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00005070| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00005080| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00005090| 20 5c 22 27 63 73 68 2e | 74 78 74 27 5c 22 0a 65 | \"'csh.|txt'\".e|
|000050a0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|000050b0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 63 73 68 |xtractin|g \"'csh|
|000050c0| 2e 74 78 74 27 5c 22 20 | 5c 28 31 38 37 20 63 68 |.txt'\" |\(187 ch|
|000050d0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000050e0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 63 73 68 2e 74 78 |s/^X//" |>'csh.tx|
|000050f0| 74 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |t' <<'EN|D_OF_FIL|
|00005100| 45 27 0a 58 43 73 68 20 | 69 73 20 74 68 65 20 63 |E'.XCsh |is the c|
|00005110| 6f 6d 6d 61 6e 64 2d 6c | 69 6e 65 20 69 6e 74 65 |ommand-l|ine inte|
|00005120| 72 70 72 65 74 65 72 2e | 20 20 49 74 20 69 73 20 |rpreter.| It is |
|00005130| 74 6f 20 55 6e 69 78 20 | 77 68 61 74 20 44 43 4c |to Unix |what DCL|
|00005140| 20 69 73 0a 58 28 66 65 | 65 62 6c 79 29 20 74 6f | is.X(fe|ebly) to|
|00005150| 20 56 4d 53 2e 20 20 49 | 74 20 68 61 73 20 68 69 | VMS. I|t has hi|
|00005160| 73 74 6f 72 79 20 61 6e | 64 20 63 6f 6d 6d 61 6e |story an|d comman|
|00005170| 64 2d 6c 69 6e 65 20 73 | 75 62 73 74 69 74 75 74 |d-line s|ubstitut|
|00005180| 69 6f 6e 0a 58 66 65 61 | 74 75 72 65 73 2e 20 20 |ion.Xfea|tures. |
|00005190| 43 6f 6e 73 75 6c 74 20 | 61 20 47 75 72 75 20 66 |Consult |a Guru f|
|000051a0| 6f 72 20 6e 65 61 74 6f | 20 74 72 69 63 6b 73 20 |or neato| tricks |
|000051b0| 74 6f 20 74 72 79 20 77 | 69 74 68 20 63 73 68 2e |to try w|ith csh.|
|000051c0| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|000051d0| 74 65 73 74 20 31 38 37 | 20 2d 6e 65 20 60 77 63 |test 187| -ne `wc|
|000051e0| 20 2d 63 20 3c 27 63 73 | 68 2e 74 78 74 27 60 3b | -c <'cs|h.txt'`;|
|000051f0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00005200| 68 61 72 3a 20 5c 22 27 | 63 73 68 2e 74 78 74 27 |har: \"'|csh.txt'|
|00005210| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00005220| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00005230| 23 20 65 6e 64 20 6f 66 | 20 27 63 73 68 2e 74 78 |# end of| 'csh.tx|
|00005240| 74 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |t'.fi.if| test -f|
|00005250| 20 27 64 69 72 2e 74 78 | 74 27 20 2d 61 20 22 24 | 'dir.tx|t' -a "$|
|00005260| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00005270| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00005280| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00005290| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|000052a0| 20 5c 22 27 64 69 72 2e | 74 78 74 27 5c 22 0a 65 | \"'dir.|txt'\".e|
|000052b0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|000052c0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 64 69 72 |xtractin|g \"'dir|
|000052d0| 2e 74 78 74 27 5c 22 20 | 5c 28 31 30 37 20 63 68 |.txt'\" |\(107 ch|
|000052e0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000052f0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 64 69 72 2e 74 78 |s/^X//" |>'dir.tx|
|00005300| 74 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |t' <<'EN|D_OF_FIL|
|00005310| 45 27 0a 58 54 6f 20 6c | 69 73 74 20 74 68 65 20 |E'.XTo l|ist the |
|00005320| 66 69 6c 65 73 20 69 6e | 20 79 6f 75 72 20 64 69 |files in| your di|
|00005330| 72 65 63 74 6f 72 79 2c | 20 75 73 65 20 6f 6e 65 |rectory,| use one|
|00005340| 20 6f 66 3a 0a 58 25 20 | 6c 0a 58 6f 72 0a 58 25 | of:.X% |l.Xor.X%|
|00005350| 20 6c 6c 0a 58 6f 72 0a | 58 25 20 6c 73 0a 58 28 | ll.Xor.|X% ls.X(|
|00005360| 74 72 79 20 74 68 65 6d | 20 61 6c 6c 20 74 6f 20 |try them| all to |
|00005370| 73 65 65 20 74 68 65 20 | 64 69 66 66 65 72 65 6e |see the |differen|
|00005380| 63 65 29 2e 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |ce)..END|_OF_FILE|
|00005390| 0a 69 66 20 74 65 73 74 | 20 31 30 37 20 2d 6e 65 |.if test| 107 -ne|
|000053a0| 20 60 77 63 20 2d 63 20 | 3c 27 64 69 72 2e 74 78 | `wc -c |<'dir.tx|
|000053b0| 74 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |t'`; the|n. ec|
|000053c0| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 64 69 72 2e |ho shar:| \"'dir.|
|000053d0| 74 78 74 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |txt'\" u|npacked |
|000053e0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000053f0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 64 69 |.fi.# en|d of 'di|
|00005400| 72 2e 74 78 74 27 0a 66 | 69 0a 69 66 20 74 65 73 |r.txt'.f|i.if tes|
|00005410| 74 20 2d 66 20 27 65 64 | 2e 74 78 74 27 20 2d 61 |t -f 'ed|.txt' -a|
|00005420| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00005430| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00005440| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00005450| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00005460| 69 6c 65 20 5c 22 27 65 | 64 2e 74 78 74 27 5c 22 |ile \"'e|d.txt'\"|
|00005470| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00005480| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 65 | Extract|ing \"'e|
|00005490| 64 2e 74 78 74 27 5c 22 | 20 5c 28 31 31 30 20 63 |d.txt'\"| \(110 c|
|000054a0| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|000054b0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 65 64 2e 74 78 |"s/^X//"| >'ed.tx|
|000054c0| 74 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |t' <<'EN|D_OF_FIL|
|000054d0| 45 27 0a 58 22 65 64 22 | 20 69 73 20 74 68 65 20 |E'.X"ed"| is the |
|000054e0| 6f 6c 64 2c 20 6f 6c 64 | 2c 20 6c 69 6e 65 2d 6f |old, old|, line-o|
|000054f0| 72 69 65 6e 74 65 64 20 | 65 64 69 74 6f 72 2e 20 |riented |editor. |
|00005500| 20 56 69 20 69 73 20 74 | 68 65 0a 58 70 72 65 66 | Vi is t|he.Xpref|
|00005510| 65 72 72 65 64 20 65 64 | 69 74 6f 72 2e 20 20 53 |erred ed|itor. S|
|00005520| 65 6c 65 63 74 20 76 69 | 20 61 74 20 74 68 65 20 |elect vi| at the |
|00005530| 6e 65 78 74 20 68 65 6c | 70 20 70 72 6f 6d 70 74 |next hel|p prompt|
|00005540| 2e 0a 58 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |..X.END_|OF_FILE.|
|00005550| 69 66 20 74 65 73 74 20 | 31 31 30 20 2d 6e 65 20 |if test |110 -ne |
|00005560| 60 77 63 20 2d 63 20 3c | 27 65 64 2e 74 78 74 27 |`wc -c <|'ed.txt'|
|00005570| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00005580| 20 73 68 61 72 3a 20 5c | 22 27 65 64 2e 74 78 74 | shar: \|"'ed.txt|
|00005590| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000055a0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|000055b0| 0a 23 20 65 6e 64 20 6f | 66 20 27 65 64 2e 74 78 |.# end o|f 'ed.tx|
|000055c0| 74 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |t'.fi.if| test -f|
|000055d0| 20 27 65 64 69 74 2e 74 | 78 74 27 20 2d 61 20 22 | 'edit.t|xt' -a "|
|000055e0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|000055f0| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00005600| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00005610| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00005620| 65 20 5c 22 27 65 64 69 | 74 2e 74 78 74 27 5c 22 |e \"'edi|t.txt'\"|
|00005630| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00005640| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 65 | Extract|ing \"'e|
|00005650| 64 69 74 2e 74 78 74 27 | 5c 22 20 5c 28 38 35 20 |dit.txt'|\" \(85 |
|00005660| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00005670| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 65 64 69 74 | "s/^X//|" >'edit|
|00005680| 2e 74 78 74 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |.txt' <<|'END_OF_|
|00005690| 46 49 4c 45 27 0a 58 54 | 68 65 20 65 64 69 74 6f |FILE'.XT|he edito|
|000056a0| 72 20 6f 6e 20 74 68 65 | 20 55 6e 69 78 20 6d 61 |r on the| Unix ma|
|000056b0| 63 68 69 6e 65 73 20 69 | 73 20 63 61 6c 6c 65 64 |chines i|s called|
|000056c0| 20 22 76 69 22 2e 20 20 | 46 6f 72 20 6d 6f 72 65 | "vi". |For more|
|000056d0| 20 68 65 6c 70 0a 58 61 | 73 6b 20 66 6f 72 20 68 | help.Xa|sk for h|
|000056e0| 65 6c 70 20 6f 6e 20 22 | 76 69 22 2e 0a 45 4e 44 |elp on "|vi"..END|
|000056f0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00005700| 20 38 35 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c | 85 -ne |`wc -c <|
|00005710| 27 65 64 69 74 2e 74 78 | 74 27 60 3b 20 74 68 65 |'edit.tx|t'`; the|
|00005720| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00005730| 20 5c 22 27 65 64 69 74 | 2e 74 78 74 27 5c 22 20 | \"'edit|.txt'\" |
|00005740| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00005750| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00005760| 6e 64 20 6f 66 20 27 65 | 64 69 74 2e 74 78 74 27 |nd of 'e|dit.txt'|
|00005770| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00005780| 65 78 69 74 2e 74 78 74 | 27 20 2d 61 20 22 24 7b |exit.txt|' -a "${|
|00005790| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|000057a0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|000057b0| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|000057c0| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|000057d0| 5c 22 27 65 78 69 74 2e | 74 78 74 27 5c 22 0a 65 |\"'exit.|txt'\".e|
|000057e0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|000057f0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 65 78 69 |xtractin|g \"'exi|
|00005800| 74 2e 74 78 74 27 5c 22 | 20 5c 28 30 20 63 68 61 |t.txt'\"| \(0 cha|
|00005810| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00005820| 2f 5e 58 2f 2f 22 20 3e | 27 65 78 69 74 2e 74 78 |/^X//" >|'exit.tx|
|00005830| 74 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |t' <<'EN|D_OF_FIL|
|00005840| 45 27 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |E'.END_O|F_FILE.i|
|00005850| 66 20 74 65 73 74 20 30 | 20 2d 6e 65 20 60 77 63 |f test 0| -ne `wc|
|00005860| 20 2d 63 20 3c 27 65 78 | 69 74 2e 74 78 74 27 60 | -c <'ex|it.txt'`|
|00005870| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00005880| 73 68 61 72 3a 20 5c 22 | 27 65 78 69 74 2e 74 78 |shar: \"|'exit.tx|
|00005890| 74 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |t'\" unp|acked wi|
|000058a0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000058b0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 65 78 69 74 |i.# end |of 'exit|
|000058c0| 2e 74 78 74 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |.txt'.fi|.if test|
|000058d0| 20 21 20 2d 64 20 27 66 | 69 6c 65 73 27 20 3b 20 | ! -d 'f|iles' ; |
|000058e0| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|000058f0| 61 72 3a 20 43 72 65 61 | 74 69 6e 67 20 64 69 72 |ar: Crea|ting dir|
|00005900| 65 63 74 6f 72 79 20 5c | 22 27 66 69 6c 65 73 27 |ectory \|"'files'|
|00005910| 5c 22 0a 20 20 20 20 6d | 6b 64 69 72 20 27 66 69 |\". m|kdir 'fi|
|00005920| 6c 65 73 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |les'.fi.|if test |
|00005930| 2d 66 20 27 66 69 6c 65 | 73 2e 74 78 74 27 20 2d |-f 'file|s.txt' -|
|00005940| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00005950| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00005960| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00005970| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00005980| 66 69 6c 65 20 5c 22 27 | 66 69 6c 65 73 2e 74 78 |file \"'|files.tx|
|00005990| 74 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |t'\".els|e.echo s|
|000059a0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|000059b0| 5c 22 27 66 69 6c 65 73 | 2e 74 78 74 27 5c 22 20 |\"'files|.txt'\" |
|000059c0| 5c 28 32 34 34 20 63 68 | 61 72 61 63 74 65 72 73 |\(244 ch|aracters|
|000059d0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|000059e0| 3e 27 66 69 6c 65 73 2e | 74 78 74 27 20 3c 3c 27 |>'files.|txt' <<'|
|000059f0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 46 69 |END_OF_F|ILE'.XFi|
|00005a00| 6c 65 73 20 61 72 65 20 | 73 74 6f 72 65 64 20 69 |les are |stored i|
|00005a10| 6e 20 61 20 68 69 65 72 | 61 72 63 68 69 61 6c 20 |n a hier|archial |
|00005a20| 6d 61 6e 6e 65 72 2c 20 | 62 65 67 69 6e 6e 69 6e |manner, |beginnin|
|00005a30| 67 20 77 69 74 68 20 2f | 20 61 73 20 74 68 65 0a |g with /| as the.|
|00005a40| 58 72 6f 6f 74 20 6f 66 | 20 74 68 65 20 66 69 6c |Xroot of| the fil|
|00005a50| 65 73 79 73 74 65 6d 2e | 20 20 54 68 65 20 6d 61 |esystem.| The ma|
|00005a60| 6a 6f 72 20 73 75 62 64 | 69 76 69 73 69 6f 6e 73 |jor subd|ivisions|
|00005a70| 20 61 72 65 20 2f 75 73 | 72 2c 20 2f 75 73 72 31 | are /us|r, /usr1|
|00005a80| 2c 0a 58 2f 75 73 72 32 | 2c 20 61 6e 64 20 2f 75 |,.X/usr2|, and /u|
|00005a90| 73 72 33 2e 20 20 59 6f | 75 72 20 64 69 72 65 63 |sr3. Yo|ur direc|
|00005aa0| 74 6f 72 79 20 69 73 20 | 70 72 6f 62 61 62 6c 79 |tory is |probably|
|00005ab0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 6c 69 6b 65 0a | somethi|ng like.|
|00005ac0| 58 2f 75 73 72 33 2f 6d | 79 6e 61 6d 65 20 6f 72 |X/usr3/m|yname or|
|00005ad0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 73 69 6d 69 6c | somethi|ng simil|
|00005ae0| 61 72 2e 0a 58 0a 58 53 | 65 65 20 61 6c 73 6f 20 |ar..X.XS|ee also |
|00005af0| 22 70 77 64 22 2e 0a 45 | 4e 44 5f 4f 46 5f 46 49 |"pwd"..E|ND_OF_FI|
|00005b00| 4c 45 0a 69 66 20 74 65 | 73 74 20 32 34 34 20 2d |LE.if te|st 244 -|
|00005b10| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 66 69 6c 65 |ne `wc -|c <'file|
|00005b20| 73 2e 74 78 74 27 60 3b | 20 74 68 65 6e 0a 20 20 |s.txt'`;| then. |
|00005b30| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00005b40| 66 69 6c 65 73 2e 74 78 | 74 27 5c 22 20 75 6e 70 |files.tx|t'\" unp|
|00005b50| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00005b60| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00005b70| 6f 66 20 27 66 69 6c 65 | 73 2e 74 78 74 27 0a 66 |of 'file|s.txt'.f|
|00005b80| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 66 69 |i.if tes|t -f 'fi|
|00005b90| 6c 65 73 2f 61 2e 6f 75 | 74 2e 74 78 74 27 20 2d |les/a.ou|t.txt' -|
|00005ba0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00005bb0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00005bc0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00005bd0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00005be0| 66 69 6c 65 20 5c 22 27 | 66 69 6c 65 73 2f 61 2e |file \"'|files/a.|
|00005bf0| 6f 75 74 2e 74 78 74 27 | 5c 22 0a 65 6c 73 65 0a |out.txt'|\".else.|
|00005c00| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00005c10| 63 74 69 6e 67 20 5c 22 | 27 66 69 6c 65 73 2f 61 |cting \"|'files/a|
|00005c20| 2e 6f 75 74 2e 74 78 74 | 27 5c 22 20 5c 28 31 35 |.out.txt|'\" \(15|
|00005c30| 34 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |4 charac|ters\).s|
|00005c40| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 66 69 |ed "s/^X|//" >'fi|
|00005c50| 6c 65 73 2f 61 2e 6f 75 | 74 2e 74 78 74 27 20 3c |les/a.ou|t.txt' <|
|00005c60| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00005c70| 22 61 2e 6f 75 74 22 20 | 69 73 20 74 68 65 20 72 |"a.out" |is the r|
|00005c80| 65 73 75 6c 74 61 6e 74 | 20 65 78 65 63 75 74 61 |esultant| executa|
|00005c90| 62 6c 65 20 66 69 6c 65 | 20 63 72 65 61 74 65 64 |ble file| created|
|00005ca0| 20 62 79 20 22 63 63 22 | 2c 0a 58 22 70 61 73 63 | by "cc"|,.X"pasc|
|00005cb0| 61 6c 22 2c 20 6f 72 20 | 22 66 6f 72 74 72 61 6e |al", or |"fortran|
|00005cc0| 22 2e 20 20 28 49 74 73 | 20 6e 61 6d 65 20 69 73 |". (Its| name is|
|00005cd0| 20 61 20 68 69 73 74 6f | 72 69 63 61 6c 20 61 63 | a histo|rical ac|
|00005ce0| 63 69 64 65 6e 74 20 2d | 2d 0a 58 63 6f 6e 73 75 |cident -|-.Xconsu|
|00005cf0| 6c 74 20 61 20 47 75 72 | 75 20 66 6f 72 20 65 78 |lt a Gur|u for ex|
|00005d00| 70 6c 61 6e 61 74 69 6f | 6e 2e 29 0a 45 4e 44 5f |planatio|n.).END_|
|00005d10| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00005d20| 31 35 34 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |154 -ne |`wc -c <|
|00005d30| 27 66 69 6c 65 73 2f 61 | 2e 6f 75 74 2e 74 78 74 |'files/a|.out.txt|
|00005d40| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00005d50| 6f 20 73 68 61 72 3a 20 | 5c 22 27 66 69 6c 65 73 |o shar: |\"'files|
|00005d60| 2f 61 2e 6f 75 74 2e 74 | 78 74 27 5c 22 20 75 6e |/a.out.t|xt'\" un|
|00005d70| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00005d80| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00005d90| 20 6f 66 20 27 66 69 6c | 65 73 2f 61 2e 6f 75 74 | of 'fil|es/a.out|
|00005da0| 2e 74 78 74 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |.txt'.fi|.if test|
|00005db0| 20 21 20 2d 64 20 27 66 | 69 6c 65 73 2f 62 69 6e | ! -d 'f|iles/bin|
|00005dc0| 61 72 69 65 73 27 20 3b | 20 74 68 65 6e 0a 20 20 |aries' ;| then. |
|00005dd0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 43 72 65 | echo s|har: Cre|
|00005de0| 61 74 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 20 |ating di|rectory |
|00005df0| 5c 22 27 66 69 6c 65 73 | 2f 62 69 6e 61 72 69 65 |\"'files|/binarie|
|00005e00| 73 27 5c 22 0a 20 20 20 | 20 6d 6b 64 69 72 20 27 |s'\". | mkdir '|
|00005e10| 66 69 6c 65 73 2f 62 69 | 6e 61 72 69 65 73 27 0a |files/bi|naries'.|
|00005e20| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 66 |fi.if te|st -f 'f|
|00005e30| 69 6c 65 73 2f 62 69 6e | 61 72 69 65 73 2e 74 78 |iles/bin|aries.tx|
|00005e40| 74 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |t' -a "$|{1}" != |
|00005e50| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00005e60| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00005e70| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00005e80| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 66 69 6c 65 |ing file| \"'file|
|00005e90| 73 2f 62 69 6e 61 72 69 | 65 73 2e 74 78 74 27 5c |s/binari|es.txt'\|
|00005ea0| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00005eb0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00005ec0| 66 69 6c 65 73 2f 62 69 | 6e 61 72 69 65 73 2e 74 |files/bi|naries.t|
|00005ed0| 78 74 27 5c 22 20 5c 28 | 31 34 39 20 63 68 61 72 |xt'\" \(|149 char|
|00005ee0| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00005ef0| 5e 58 2f 2f 22 20 3e 27 | 66 69 6c 65 73 2f 62 69 |^X//" >'|files/bi|
|00005f00| 6e 61 72 69 65 73 2e 74 | 78 74 27 20 3c 3c 27 45 |naries.t|xt' <<'E|
|00005f10| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 42 69 6e |ND_OF_FI|LE'.XBin|
|00005f20| 61 72 79 20 66 69 6c 65 | 73 20 74 79 70 69 63 61 |ary file|s typica|
|00005f30| 6c 6c 79 20 61 72 65 20 | 6e 61 6d 65 64 20 22 2e |lly are |named ".|
|00005f40| 6f 22 20 66 69 6c 65 73 | 2e 20 20 54 68 65 79 20 |o" files|. They |
|00005f50| 61 72 65 20 6e 6f 74 20 | 6e 6f 72 6d 61 6c 6c 79 |are not |normally|
|00005f60| 0a 58 6c 65 66 74 20 6c | 79 69 6e 67 20 61 72 6f |.Xleft l|ying aro|
|00005f70| 75 6e 64 20 69 6e 20 79 | 6f 75 72 20 64 69 72 65 |und in y|our dire|
|00005f80| 63 74 6f 72 79 2c 20 65 | 78 63 65 70 74 20 62 79 |ctory, e|xcept by|
|00005f90| 20 63 65 72 74 61 69 6e | 20 70 72 6f 67 72 61 6d | certain| program|
|00005fa0| 73 2c 0a 58 73 75 63 68 | 20 61 73 20 22 6d 61 6b |s,.Xsuch| as "mak|
|00005fb0| 65 2e 22 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |e.".END_|OF_FILE.|
|00005fc0| 69 66 20 74 65 73 74 20 | 31 34 39 20 2d 6e 65 20 |if test |149 -ne |
|00005fd0| 60 77 63 20 2d 63 20 3c | 27 66 69 6c 65 73 2f 62 |`wc -c <|'files/b|
|00005fe0| 69 6e 61 72 69 65 73 2e | 74 78 74 27 60 3b 20 74 |inaries.|txt'`; t|
|00005ff0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00006000| 72 3a 20 5c 22 27 66 69 | 6c 65 73 2f 62 69 6e 61 |r: \"'fi|les/bina|
|00006010| 72 69 65 73 2e 74 78 74 | 27 5c 22 20 75 6e 70 61 |ries.txt|'\" unpa|
|00006020| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00006030| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00006040| 66 20 27 66 69 6c 65 73 | 2f 62 69 6e 61 72 69 65 |f 'files|/binarie|
|00006050| 73 2e 74 78 74 27 0a 66 | 69 0a 69 66 20 74 65 73 |s.txt'.f|i.if tes|
|00006060| 74 20 2d 66 20 27 66 69 | 6c 65 73 2f 62 69 6e 61 |t -f 'fi|les/bina|
|00006070| 72 69 65 73 2f 61 2e 6f | 75 74 2e 74 78 74 27 20 |ries/a.o|ut.txt' |
|00006080| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00006090| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|000060a0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|000060b0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|000060c0| 20 66 69 6c 65 20 5c 22 | 27 66 69 6c 65 73 2f 62 | file \"|'files/b|
|000060d0| 69 6e 61 72 69 65 73 2f | 61 2e 6f 75 74 2e 74 78 |inaries/|a.out.tx|
|000060e0| 74 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |t'\".els|e.echo s|
|000060f0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00006100| 5c 22 27 66 69 6c 65 73 | 2f 62 69 6e 61 72 69 65 |\"'files|/binarie|
|00006110| 73 2f 61 2e 6f 75 74 2e | 74 78 74 27 5c 22 20 5c |s/a.out.|txt'\" \|
|00006120| 28 37 34 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |(74 char|acters\)|
|00006130| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00006140| 66 69 6c 65 73 2f 62 69 | 6e 61 72 69 65 73 2f 61 |files/bi|naries/a|
|00006150| 2e 6f 75 74 2e 74 78 74 | 27 20 3c 3c 27 45 4e 44 |.out.txt|' <<'END|
|00006160| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 45 78 65 63 75 |_OF_FILE|'.XExecu|
|00006170| 74 61 62 6c 65 20 66 69 | 6c 65 73 20 61 72 65 20 |table fi|les are |
|00006180| 62 79 20 64 65 66 61 75 | 6c 74 20 6e 61 6d 65 64 |by defau|lt named|
|00006190| 20 22 61 2e 6f 75 74 22 | 20 61 6e 64 20 6c 65 66 | "a.out"| and lef|
|000061a0| 74 20 69 6e 20 79 6f 75 | 72 0a 58 64 69 72 65 63 |t in you|r.Xdirec|
|000061b0| 74 6f 72 79 2e 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |tory..EN|D_OF_FIL|
|000061c0| 45 0a 69 66 20 74 65 73 | 74 20 37 34 20 2d 6e 65 |E.if tes|t 74 -ne|
|000061d0| 20 60 77 63 20 2d 63 20 | 3c 27 66 69 6c 65 73 2f | `wc -c |<'files/|
|000061e0| 62 69 6e 61 72 69 65 73 | 2f 61 2e 6f 75 74 2e 74 |binaries|/a.out.t|
|000061f0| 78 74 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |xt'`; th|en. e|
|00006200| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 66 69 6c |cho shar|: \"'fil|
|00006210| 65 73 2f 62 69 6e 61 72 | 69 65 73 2f 61 2e 6f 75 |es/binar|ies/a.ou|
|00006220| 74 2e 74 78 74 27 5c 22 | 20 75 6e 70 61 63 6b 65 |t.txt'\"| unpacke|
|00006230| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00006240| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00006250| 66 69 6c 65 73 2f 62 69 | 6e 61 72 69 65 73 2f 61 |files/bi|naries/a|
|00006260| 2e 6f 75 74 2e 74 78 74 | 27 0a 66 69 0a 69 66 20 |.out.txt|'.fi.if |
|00006270| 74 65 73 74 20 2d 66 20 | 27 66 69 6c 65 73 2f 62 |test -f |'files/b|
|00006280| 69 6e 61 72 69 65 73 2f | 65 78 65 63 75 74 61 62 |inaries/|executab|
|00006290| 6c 65 73 2e 74 78 74 27 | 20 2d 61 20 22 24 7b 31 |les.txt'| -a "${1|
|000062a0| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|000062b0| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|000062c0| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|000062d0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000062e0| 22 27 66 69 6c 65 73 2f | 62 69 6e 61 72 69 65 73 |"'files/|binaries|
|000062f0| 2f 65 78 65 63 75 74 61 | 62 6c 65 73 2e 74 78 74 |/executa|bles.txt|
|00006300| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00006310| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00006320| 22 27 66 69 6c 65 73 2f | 62 69 6e 61 72 69 65 73 |"'files/|binaries|
|00006330| 2f 65 78 65 63 75 74 61 | 62 6c 65 73 2e 74 78 74 |/executa|bles.txt|
|00006340| 27 5c 22 20 5c 28 37 34 | 20 63 68 61 72 61 63 74 |'\" \(74| charact|
|00006350| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00006360| 2f 22 20 3e 27 66 69 6c | 65 73 2f 62 69 6e 61 72 |/" >'fil|es/binar|
|00006370| 69 65 73 2f 65 78 65 63 | 75 74 61 62 6c 65 73 2e |ies/exec|utables.|
|00006380| 74 78 74 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |txt' <<'|END_OF_F|
|00006390| 49 4c 45 27 0a 58 45 78 | 65 63 75 74 61 62 6c 65 |ILE'.XEx|ecutable|
|000063a0| 20 66 69 6c 65 73 20 61 | 72 65 20 62 79 20 64 65 | files a|re by de|
|000063b0| 66 61 75 6c 74 20 6e 61 | 6d 65 64 20 22 61 2e 6f |fault na|med "a.o|
|000063c0| 75 74 22 20 61 6e 64 20 | 6c 65 66 74 20 69 6e 20 |ut" and |left in |
|000063d0| 79 6f 75 72 0a 58 64 69 | 72 65 63 74 6f 72 79 2e |your.Xdi|rectory.|
|000063e0| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|000063f0| 74 65 73 74 20 37 34 20 | 2d 6e 65 20 60 77 63 20 |test 74 |-ne `wc |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.