home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: help.jn
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 64 65 63 | 77 72 6c 21 70 79 72 61 |From dec|wrl!pyra|
|00000010| 6d 69 64 21 6c 6c 6c 2d | 77 69 6e 6b 65 6e 21 75 |mid!lll-|winken!u|
|00000020| 75 6e 65 74 21 61 6c 6c | 62 65 72 79 20 53 75 6e |unet!all|bery Sun|
|00000030| 20 41 75 67 20 32 30 20 | 31 35 3a 33 36 3a 30 38 | Aug 20 |15:36:08|
|00000040| 20 50 44 54 20 31 39 38 | 39 0a 41 72 74 69 63 6c | PDT 198|9.Articl|
|00000050| 65 20 31 30 33 32 20 6f | 66 20 63 6f 6d 70 2e 73 |e 1032 o|f comp.s|
|00000060| 6f 75 72 63 65 73 2e 6d | 69 73 63 3a 0a 50 61 74 |ources.m|isc:.Pat|
|00000070| 68 3a 20 64 65 63 77 72 | 6c 21 70 79 72 61 6d 69 |h: decwr|l!pyrami|
|00000080| 64 21 6c 6c 6c 2d 77 69 | 6e 6b 65 6e 21 75 75 6e |d!lll-wi|nken!uun|
|00000090| 65 74 21 61 6c 6c 62 65 | 72 79 0a 46 72 6f 6d 3a |et!allbe|ry.From:|
|000000a0| 20 61 6c 6c 62 65 72 79 | 40 75 75 6e 65 74 2e 55 | allbery|@uunet.U|
|000000b0| 55 2e 4e 45 54 20 28 42 | 72 61 6e 64 6f 6e 20 53 |U.NET (B|randon S|
|000000c0| 2e 20 41 6c 6c 62 65 72 | 79 20 2d 20 63 6f 6d 70 |. Allber|y - comp|
|000000d0| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 29 0a 4e |.sources|.misc).N|
|000000e0| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|000000f0| 73 6f 75 72 63 65 73 2e | 6d 69 73 63 0a 53 75 62 |sources.|misc.Sub|
|00000100| 6a 65 63 74 3a 20 76 30 | 38 69 30 30 31 3a 20 41 |ject: v0|8i001: A|
|00000110| 20 48 45 4c 50 20 66 61 | 63 69 6c 69 74 79 20 66 | HELP fa|cility f|
|00000120| 6f 72 20 55 6e 69 78 0a | 4d 65 73 73 61 67 65 2d |or Unix.|Message-|
|00000130| 49 44 3a 20 3c 36 34 32 | 39 36 40 75 75 6e 65 74 |ID: <642|96@uunet|
|00000140| 2e 55 55 2e 4e 45 54 3e | 0a 44 61 74 65 3a 20 32 |.UU.NET>|.Date: 2|
|00000150| 30 20 41 75 67 20 38 39 | 20 30 30 3a 34 32 3a 31 |0 Aug 89| 00:42:1|
|00000160| 39 20 47 4d 54 0a 53 65 | 6e 64 65 72 3a 20 61 6c |9 GMT.Se|nder: al|
|00000170| 6c 62 65 72 79 40 75 75 | 6e 65 74 2e 55 55 2e 4e |lbery@uu|net.UU.N|
|00000180| 45 54 0a 52 65 70 6c 79 | 2d 54 6f 3a 20 6e 65 6c |ET.Reply|-To: nel|
|00000190| 73 6f 6e 40 75 6e 63 65 | 63 73 2e 65 64 75 20 28 |son@unce|cs.edu (|
|000001a0| 6a 69 6d 20 6e 65 6c 73 | 6f 6e 29 0a 4c 69 6e 65 |jim nels|on).Line|
|000001b0| 73 3a 20 31 39 32 34 0a | 41 70 70 72 6f 76 65 64 |s: 1924.|Approved|
|000001c0| 3a 20 61 6c 6c 62 65 72 | 79 40 75 75 6e 65 74 2e |: allber|y@uunet.|
|000001d0| 55 55 2e 4e 45 54 20 28 | 42 72 61 6e 64 6f 6e 20 |UU.NET (|Brandon |
|000001e0| 53 2e 20 41 6c 6c 62 65 | 72 79 20 2d 20 63 6f 6d |S. Allbe|ry - com|
|000001f0| 70 2e 73 6f 75 72 63 65 | 73 2e 6d 69 73 63 29 0a |p.source|s.misc).|
|00000200| 0a 50 6f 73 74 69 6e 67 | 2d 6e 75 6d 62 65 72 3a |.Posting|-number:|
|00000210| 20 56 6f 6c 75 6d 65 20 | 38 2c 20 49 73 73 75 65 | Volume |8, Issue|
|00000220| 20 31 0a 53 75 62 6d 69 | 74 74 65 64 2d 62 79 3a | 1.Submi|tted-by:|
|00000230| 20 6e 65 6c 73 6f 6e 40 | 75 6e 63 65 63 73 2e 65 | nelson@|uncecs.e|
|00000240| 64 75 20 28 6a 69 6d 20 | 6e 65 6c 73 6f 6e 29 0a |du (jim |nelson).|
|00000250| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 68 65 |Archive-|name: he|
|00000260| 6c 70 2e 6a 6e 0a 0a 48 | 65 72 65 20 69 73 20 61 |lp.jn..H|ere is a|
|00000270| 20 6c 69 74 74 6c 65 20 | 48 65 6c 70 2d 66 61 63 | little |Help-fac|
|00000280| 69 6c 69 74 79 20 73 6f | 6d 65 77 68 61 74 20 6c |ility so|mewhat l|
|00000290| 69 6b 65 20 73 6f 6d 65 | 20 6f 74 68 65 72 20 6f |ike some| other o|
|000002a0| 70 65 72 61 74 69 6e 67 | 0a 73 79 73 74 65 6d 73 |perating|.systems|
|000002b0| 20 70 72 6f 76 69 64 65 | 2e 20 20 49 74 27 73 20 | provide|. It's |
|000002c0| 73 6f 72 74 61 20 63 72 | 75 64 65 20 61 74 20 74 |sorta cr|ude at t|
|000002d0| 68 65 20 6d 6f 6d 65 6e | 74 2c 20 62 75 74 20 69 |he momen|t, but i|
|000002e0| 74 20 77 6f 72 6b 73 20 | 77 65 6c 6c 2e 0a 49 74 |t works |well..It|
|000002f0| 20 72 75 6e 73 20 75 6e | 64 65 72 20 42 53 44 2c | runs un|der BSD,|
|00000300| 20 58 65 6e 69 78 2c 20 | 61 6e 64 20 53 79 73 56 | Xenix, |and SysV|
|00000310| 2c 20 61 6c 74 68 6f 75 | 67 68 20 49 20 73 74 69 |, althou|gh I sti|
|00000320| 6c 6c 20 64 6f 6e 27 74 | 20 6b 6e 6f 77 20 71 75 |ll don't| know qu|
|00000330| 69 74 65 0a 68 6f 77 20 | 74 6f 20 64 6f 20 22 6d |ite.how |to do "m|
|00000340| 79 20 6f 77 6e 20 70 61 | 67 65 72 22 20 75 6e 64 |y own pa|ger" und|
|00000350| 65 72 20 58 65 6e 69 78 | 20 6f 72 20 53 79 73 56 |er Xenix| or SysV|
|00000360| 2e 20 20 49 66 20 74 68 | 69 73 20 68 61 73 20 62 |. If th|is has b|
|00000370| 65 65 6e 20 64 6f 6e 65 | 0a 62 65 66 6f 72 65 20 |een done|.before |
|00000380| 69 6e 20 74 68 65 20 72 | 65 63 65 6e 74 20 70 61 |in the r|ecent pa|
|00000390| 73 74 2c 20 64 6f 6e 27 | 74 20 70 6f 73 74 2c 20 |st, don'|t post, |
|000003a0| 6a 75 73 74 20 74 72 61 | 73 68 2e 20 20 48 6f 77 |just tra|sh. How|
|000003b0| 65 76 65 72 2c 20 49 20 | 6b 69 6e 64 61 0a 6c 69 |ever, I |kinda.li|
|000003c0| 6b 65 20 69 74 2c 20 61 | 6e 64 20 77 65 20 28 49 |ke it, a|nd we (I|
|000003d0| 29 20 70 6c 61 6e 20 74 | 6f 20 73 70 72 69 6e 67 |) plan t|o spring|
|000003e0| 20 69 74 20 6f 6e 20 6f | 75 72 20 66 72 65 73 68 | it on o|ur fresh|
|000003f0| 6d 65 6e 20 64 75 65 20 | 74 6f 20 61 72 72 69 76 |men due |to arriv|
|00000400| 65 20 69 6e 0a 61 20 63 | 6f 75 70 6c 65 20 6f 66 |e in.a c|ouple of|
|00000410| 20 77 65 65 6b 73 2e 0a | 2d 2d 2d 2d 2d 2d 2d 2d | weeks..|--------|
|00000420| 2d 2d 2d 2d 2d 2d 2d 2d | 20 63 75 74 20 68 65 72 |--------| cut her|
|00000430| 65 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |e ------|--------|
|00000440| 2d 2d 2d 0a 23 21 20 2f | 62 69 6e 2f 73 68 0a 23 |---.#! /|bin/sh.#|
|00000450| 20 54 68 69 73 20 69 73 | 20 61 20 73 68 65 6c 6c | This is| a shell|
|00000460| 20 61 72 63 68 69 76 65 | 2e 20 20 52 65 6d 6f 76 | archive|. Remov|
|00000470| 65 20 61 6e 79 74 68 69 | 6e 67 20 62 65 66 6f 72 |e anythi|ng befor|
|00000480| 65 20 74 68 69 73 20 6c | 69 6e 65 2c 20 74 68 65 |e this l|ine, the|
|00000490| 6e 20 75 6e 70 61 63 6b | 0a 23 20 69 74 20 62 79 |n unpack|.# it by|
|000004a0| 20 73 61 76 69 6e 67 20 | 69 74 20 69 6e 74 6f 20 | saving |it into |
|000004b0| 61 20 66 69 6c 65 20 61 | 6e 64 20 74 79 70 69 6e |a file a|nd typin|
|000004c0| 67 20 22 73 68 20 66 69 | 6c 65 22 2e 20 20 54 6f |g "sh fi|le". To|
|000004d0| 20 6f 76 65 72 77 72 69 | 74 65 20 65 78 69 73 74 | overwri|te exist|
|000004e0| 69 6e 67 0a 23 20 66 69 | 6c 65 73 2c 20 74 79 70 |ing.# fi|les, typ|
|000004f0| 65 20 22 73 68 20 66 69 | 6c 65 20 2d 63 22 2e 20 |e "sh fi|le -c". |
|00000500| 20 59 6f 75 20 63 61 6e | 20 61 6c 73 6f 20 66 65 | You can| also fe|
|00000510| 65 64 20 74 68 69 73 20 | 61 73 20 73 74 61 6e 64 |ed this |as stand|
|00000520| 61 72 64 20 69 6e 70 75 | 74 20 76 69 61 0a 23 20 |ard inpu|t via.# |
|00000530| 75 6e 73 68 61 72 2c 20 | 6f 72 20 62 79 20 74 79 |unshar, |or by ty|
|00000540| 70 69 6e 67 20 22 73 68 | 20 3c 66 69 6c 65 22 2c |ping "sh| <file",|
|00000550| 20 65 2e 67 2e 2e 20 20 | 49 66 20 74 68 69 73 20 | e.g.. |If this |
|00000560| 61 72 63 68 69 76 65 20 | 69 73 20 63 6f 6d 70 6c |archive |is compl|
|00000570| 65 74 65 2c 20 79 6f 75 | 0a 23 20 77 69 6c 6c 20 |ete, you|.# will |
|00000580| 73 65 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |see the |followin|
|00000590| 67 20 6d 65 73 73 61 67 | 65 20 61 74 20 74 68 65 |g messag|e at the|
|000005a0| 20 65 6e 64 3a 0a 23 09 | 09 22 45 6e 64 20 6f 66 | end:.#.|."End of|
|000005b0| 20 61 72 63 68 69 76 65 | 20 31 20 28 6f 66 20 31 | archive| 1 (of 1|
|000005c0| 29 2e 22 0a 23 20 43 6f | 6e 74 65 6e 74 73 3a 20 |).".# Co|ntents: |
|000005d0| 20 43 2d 6d 69 73 74 61 | 6b 65 73 2e 74 78 74 20 | C-mista|kes.txt |
|000005e0| 4d 41 4e 49 46 45 53 54 | 20 4d 61 6b 65 66 69 6c |MANIFEST| Makefil|
|000005f0| 65 20 52 45 41 44 4d 45 | 20 61 63 2e 74 78 74 20 |e README| ac.txt |
|00000600| 61 66 2e 74 78 74 0a 23 | 20 20 20 61 70 2e 74 78 |af.txt.#| ap.tx|
|00000610| 74 20 61 70 72 6f 70 6f | 73 2e 74 78 74 20 62 79 |t apropo|s.txt by|
|00000620| 65 2e 74 78 74 20 63 61 | 74 2e 74 78 74 20 63 62 |e.txt ca|t.txt cb|
|00000630| 72 65 61 6b 2e 63 20 63 | 63 2e 74 78 74 20 63 64 |reak.c c|c.txt cd|
|00000640| 2e 74 78 74 0a 23 20 20 | 20 63 6f 6d 70 69 6c 65 |.txt.# | compile|
|00000650| 72 73 2e 74 78 74 20 63 | 6f 70 79 2e 74 78 74 20 |rs.txt c|opy.txt |
|00000660| 63 70 2e 74 78 74 20 63 | 73 68 2e 74 78 74 20 64 |cp.txt c|sh.txt d|
|00000670| 69 72 2e 74 78 74 20 65 | 64 2e 74 78 74 20 65 64 |ir.txt e|d.txt ed|
|00000680| 69 74 2e 74 78 74 0a 23 | 20 20 20 65 78 69 74 2e |it.txt.#| exit.|
|00000690| 74 78 74 20 66 69 6c 65 | 73 20 66 69 6c 65 73 2e |txt file|s files.|
|000006a0| 74 78 74 20 66 69 6c 65 | 73 2f 61 2e 6f 75 74 2e |txt file|s/a.out.|
|000006b0| 74 78 74 20 66 69 6c 65 | 73 2f 62 69 6e 61 72 69 |txt file|s/binari|
|000006c0| 65 73 0a 23 20 20 20 66 | 69 6c 65 73 2f 62 69 6e |es.# f|iles/bin|
|000006d0| 61 72 69 65 73 2e 74 78 | 74 20 66 69 6c 65 73 2f |aries.tx|t files/|
|000006e0| 62 69 6e 61 72 69 65 73 | 2f 61 2e 6f 75 74 2e 74 |binaries|/a.out.t|
|000006f0| 78 74 0a 23 20 20 20 66 | 69 6c 65 73 2f 62 69 6e |xt.# f|iles/bin|
|00000700| 61 72 69 65 73 2f 65 78 | 65 63 75 74 61 62 6c 65 |aries/ex|ecutable|
|00000710| 73 2e 74 78 74 20 66 69 | 6c 65 73 2f 66 69 6c 65 |s.txt fi|les/file|
|00000720| 6e 61 6d 65 73 2e 74 78 | 74 20 66 69 6c 65 73 2f |names.tx|t files/|
|00000730| 70 77 64 2e 74 78 74 0a | 23 20 20 20 66 69 6c 65 |pwd.txt.|# file|
|00000740| 73 2f 73 6f 75 72 63 65 | 73 2e 74 78 74 20 66 6f |s/source|s.txt fo|
|00000750| 72 74 72 61 6e 2e 74 78 | 74 20 67 61 6d 65 73 2e |rtran.tx|t games.|
|00000760| 74 78 74 20 67 75 72 75 | 20 67 75 72 75 2e 31 20 |txt guru| guru.1 |
|00000770| 67 75 72 75 2e 74 78 74 | 0a 23 20 20 20 68 65 6c |guru.txt|.# hel|
|00000780| 70 2e 63 20 68 65 6c 70 | 2e 74 78 74 20 69 67 6f |p.c help|.txt igo|
|00000790| 72 73 20 69 67 6f 72 73 | 2e 31 20 69 67 6f 72 73 |rs igors|.1 igors|
|000007a0| 2e 74 78 74 20 6b 69 6e | 64 65 78 2e 63 20 6c 61 |.txt kin|dex.c la|
|000007b0| 6e 67 75 61 67 65 73 2e | 74 78 74 0a 23 20 20 20 |nguages.|txt.# |
|000007c0| 6c 65 61 72 6e 2e 74 78 | 74 20 6c 65 73 73 2e 74 |learn.tx|t less.t|
|000007d0| 78 74 20 6c 69 73 74 66 | 64 2e 63 20 6c 69 73 74 |xt listf|d.c list|
|000007e0| 69 74 2e 63 20 6c 6f 67 | 6f 66 66 2e 74 78 74 20 |it.c log|off.txt |
|000007f0| 6c 6f 67 6f 75 74 2e 74 | 78 74 0a 23 20 20 20 6d |logout.t|xt.# m|
|00000800| 61 69 6c 2e 74 78 74 20 | 6d 61 6e 2e 74 78 74 20 |ail.txt |man.txt |
|00000810| 6d 61 6e 75 61 6c 2e 74 | 78 74 20 6d 76 2e 74 78 |manual.t|xt mv.tx|
|00000820| 74 20 6d 79 6d 6f 64 65 | 2e 63 20 6e 65 77 73 2e |t mymode|.c news.|
|00000830| 74 78 74 20 6e 6f 63 62 | 72 65 61 6b 2e 63 0a 23 |txt nocb|reak.c.#|
|00000840| 20 20 20 6f 66 66 2e 74 | 78 74 20 70 61 73 63 61 | off.t|xt pasca|
|00000850| 6c 2e 74 78 74 20 70 61 | 73 73 77 64 2e 74 78 74 |l.txt pa|sswd.txt|
|00000860| 20 70 68 6f 6e 65 2e 74 | 78 74 20 70 77 64 2e 74 | phone.t|xt pwd.t|
|00000870| 78 74 20 71 75 69 74 2e | 74 78 74 0a 23 20 20 20 |xt quit.|txt.# |
|00000880| 72 65 6e 61 6d 65 2e 74 | 78 74 20 73 74 61 74 2e |rename.t|xt stat.|
|00000890| 63 20 74 61 6c 6b 2e 74 | 78 74 20 74 65 72 6d 69 |c talk.t|xt termi|
|000008a0| 6e 61 6c 2e 74 78 74 20 | 74 65 73 74 2e 74 78 74 |nal.txt |test.txt|
|000008b0| 20 75 6c 67 72 70 20 76 | 69 2e 74 78 74 0a 23 20 | ulgrp v|i.txt.# |
|000008c0| 57 72 61 70 70 65 64 20 | 62 79 20 6e 65 6c 73 6f |Wrapped |by nelso|
|000008d0| 6e 40 75 6e 63 77 20 6f | 6e 20 46 72 69 20 41 75 |n@uncw o|n Fri Au|
|000008e0| 67 20 31 31 20 31 39 3a | 30 38 3a 35 31 20 31 39 |g 11 19:|08:51 19|
|000008f0| 38 39 0a 50 41 54 48 3d | 2f 62 69 6e 3a 2f 75 73 |89.PATH=|/bin:/us|
|00000900| 72 2f 62 69 6e 3a 2f 75 | 73 72 2f 75 63 62 20 3b |r/bin:/u|sr/ucb ;|
|00000910| 20 65 78 70 6f 72 74 20 | 50 41 54 48 0a 69 66 20 | export |PATH.if |
|00000920| 74 65 73 74 20 2d 66 20 | 27 43 2d 6d 69 73 74 61 |test -f |'C-mista|
|00000930| 6b 65 73 2e 74 78 74 27 | 20 2d 61 20 22 24 7b 31 |kes.txt'| -a "${1|
|00000940| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00000950| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00000960| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00000970| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00000980| 22 27 43 2d 6d 69 73 74 | 61 6b 65 73 2e 74 78 74 |"'C-mist|akes.txt|
|00000990| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|000009a0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000009b0| 22 27 43 2d 6d 69 73 74 | 61 6b 65 73 2e 74 78 74 |"'C-mist|akes.txt|
|000009c0| 27 5c 22 20 5c 28 33 31 | 39 36 20 63 68 61 72 61 |'\" \(31|96 chara|
|000009d0| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|000009e0| 58 2f 2f 22 20 3e 27 43 | 2d 6d 69 73 74 61 6b 65 |X//" >'C|-mistake|
|000009f0| 73 2e 74 78 74 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |s.txt' <|<'END_OF|
|00000a00| 5f 46 49 4c 45 27 0a 58 | 0a 58 41 20 66 65 77 20 |_FILE'.X|.XA few |
|00000a10| 6f 66 20 44 72 2e 20 44 | 6f 6f 6d 27 73 20 6c 69 |of Dr. D|oom's li|
|00000a20| 73 74 20 6f 66 20 43 2d | 67 6f 74 63 68 61 73 2c |st of C-|gotchas,|
|00000a30| 20 63 6f 6e 64 65 6e 73 | 65 64 20 63 6f 6e 73 69 | condens|ed consi|
|00000a40| 64 65 72 61 62 6c 79 20 | 66 72 6f 6d 20 74 68 65 |derably |from the|
|00000a50| 0a 58 6f 72 69 67 69 6e | 61 6c 73 3a 0a 58 0a 58 |.Xorigin|als:.X.X|
|00000a60| 31 2e 20 20 45 4f 46 20 | 69 73 20 61 6e 20 69 6e |1. EOF |is an in|
|00000a70| 74 2c 20 6e 6f 74 20 61 | 20 63 68 61 72 3b 20 22 |t, not a| char; "|
|00000a80| 67 65 74 63 68 61 72 28 | 29 22 2c 20 64 65 73 70 |getchar(|)", desp|
|00000a90| 69 74 65 20 69 74 73 0a | 58 63 68 61 72 61 63 74 |ite its.|Xcharact|
|00000aa0| 65 72 2d 73 6f 75 6e 64 | 69 6e 67 20 6e 61 6d 65 |er-sound|ing name|
|00000ab0| 2c 20 52 45 54 55 52 4e | 53 20 41 4e 20 49 4e 54 |, RETURN|S AN INT|
|00000ac0| 21 20 20 49 6e 20 66 61 | 63 74 2c 20 61 6c 6c 20 |! In fa|ct, all |
|00000ad0| 66 75 6e 63 74 69 6f 6e | 73 20 69 6e 20 74 68 65 |function|s in the|
|00000ae0| 0a 58 43 20 6c 61 6e 67 | 75 61 67 65 20 72 65 74 |.XC lang|uage ret|
|00000af0| 75 72 6e 20 65 69 74 68 | 65 72 20 61 6e 20 69 6e |urn eith|er an in|
|00000b00| 74 20 6f 72 20 61 20 64 | 6f 75 62 6c 65 3b 20 69 |t or a d|ouble; i|
|00000b10| 74 20 69 73 20 6e 6f 74 | 20 70 6f 73 73 69 62 6c |t is not| possibl|
|00000b20| 65 20 74 6f 0a 58 77 72 | 69 74 65 20 61 20 66 75 |e to.Xwr|ite a fu|
|00000b30| 6e 63 74 69 6f 6e 20 77 | 68 69 63 68 20 72 65 74 |nction w|hich ret|
|00000b40| 75 72 6e 73 20 61 20 63 | 68 61 72 2e 20 20 42 65 |urns a c|har. Be|
|00000b50| 73 69 64 65 73 2c 20 74 | 68 65 20 63 6f 6d 70 69 |sides, t|he compi|
|00000b60| 6c 65 72 20 67 65 6e 65 | 72 61 74 65 73 0a 58 63 |ler gene|rates.Xc|
|00000b70| 6f 64 65 20 77 68 69 63 | 68 20 74 61 6b 65 73 20 |ode whic|h takes |
|00000b80| 74 68 65 20 73 61 6d 65 | 20 61 6d 6f 75 6e 74 20 |the same| amount |
|00000b90| 6f 66 20 73 70 61 63 65 | 20 66 6f 72 20 28 73 63 |of space| for (sc|
|00000ba0| 61 6c 61 72 29 20 63 68 | 61 72 73 20 61 6e 64 20 |alar) ch|ars and |
|00000bb0| 69 6e 74 73 2e 0a 58 53 | 6f 3a 20 74 68 65 72 65 |ints..XS|o: there|
|00000bc0| 20 69 73 20 4e 45 56 45 | 52 20 61 6e 79 20 72 65 | is NEVE|R any re|
|00000bd0| 61 73 6f 6e 20 74 6f 20 | 73 61 79 2c 20 66 6f 72 |ason to |say, for|
|00000be0| 20 65 78 61 6d 70 6c 65 | 3a 20 22 63 68 61 72 20 | example|: "char |
|00000bf0| 63 3b 22 2e 20 20 59 6f | 75 0a 58 73 68 6f 75 6c |c;". Yo|u.Xshoul|
|00000c00| 64 20 41 4c 57 41 59 53 | 20 64 65 63 6c 61 72 65 |d ALWAYS| declare|
|00000c10| 20 63 20 74 6f 20 62 65 | 20 61 6e 20 69 6e 74 2c | c to be| an int,|
|00000c20| 20 65 73 70 65 63 69 61 | 6c 6c 79 20 77 68 65 6e | especia|lly when|
|00000c30| 20 69 74 20 72 65 63 65 | 69 76 65 73 20 74 68 65 | it rece|ives the|
|00000c40| 0a 58 72 65 74 75 72 6e | 20 76 61 6c 75 65 20 66 |.Xreturn| value f|
|00000c50| 72 6f 6d 20 67 65 74 63 | 68 61 72 2c 20 77 68 69 |rom getc|har, whi|
|00000c60| 63 68 20 69 73 20 74 68 | 65 6e 20 63 6f 6d 70 61 |ch is th|en compa|
|00000c70| 72 65 64 20 74 6f 20 45 | 4f 46 2e 0a 58 0a 58 45 |red to E|OF..X.XE|
|00000c80| 78 61 6d 70 6c 65 73 3a | 0a 58 0a 58 09 2f 2a 20 |xamples:|.X.X./* |
|00000c90| 74 68 69 73 20 69 73 20 | 57 52 4f 4e 47 20 28 57 |this is |WRONG (W|
|00000ca0| 52 4f 4e 47 21 2c 20 57 | 52 4f 4e 47 21 2c 20 57 |RONG!, W|RONG!, W|
|00000cb0| 52 4f 4e 47 21 20 2e 2e | 2e 2a 2f 0a 58 09 63 68 |RONG! ..|.*/.X.ch|
|00000cc0| 61 72 20 63 3b 0a 58 09 | 77 68 69 6c 65 28 20 20 |ar c;.X.|while( |
|00000cd0| 28 63 3d 67 65 74 63 68 | 61 72 28 29 29 20 21 3d |(c=getch|ar()) !=|
|00000ce0| 20 45 4f 46 29 7b 20 2e | 2e 2e 20 7d 0a 58 0a 58 | EOF){ .|.. }.X.X|
|00000cf0| 09 2f 2a 20 74 68 69 73 | 20 69 73 20 52 49 47 48 |./* this| is RIGH|
|00000d00| 54 20 2a 2f 0a 58 09 69 | 6e 74 20 63 3b 0a 58 09 |T */.X.i|nt c;.X.|
|00000d10| 77 68 69 6c 65 28 20 20 | 28 63 3d 67 65 74 63 68 |while( |(c=getch|
|00000d20| 61 72 28 29 29 20 21 3d | 20 45 4f 46 29 7b 20 2e |ar()) !=| EOF){ .|
|00000d30| 2e 2e 20 7d 0a 58 0a 58 | 2d 2d 2d 2d 2d 2d 2d 2d |.. }.X.X|--------|
|00000d40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 0a 58 |--------|----.X.X|
|00000d70| 32 2e 20 20 42 65 77 61 | 72 65 20 74 68 65 20 64 |2. Bewa|re the d|
|00000d80| 69 73 74 69 6e 63 74 69 | 6f 6e 20 62 65 74 77 65 |istincti|on betwe|
|00000d90| 65 6e 20 22 3d 22 20 61 | 6e 64 20 22 3d 3d 22 2e |en "=" a|nd "==".|
|00000da0| 20 20 54 68 65 20 73 69 | 6e 67 6c 65 2d 0a 58 65 | The si|ngle-.Xe|
|00000db0| 71 75 61 6c 2d 73 69 67 | 6e 20 28 77 65 27 6c 6c |qual-sig|n (we'll|
|00000dc0| 20 63 61 6c 6c 20 69 74 | 20 53 45 29 20 63 61 75 | call it| SE) cau|
|00000dd0| 73 65 73 20 74 68 65 20 | 74 68 69 6e 67 73 20 6f |ses the |things o|
|00000de0| 6e 20 74 68 65 20 74 77 | 6f 20 73 69 64 65 73 20 |n the tw|o sides |
|00000df0| 6f 66 20 69 74 0a 58 74 | 6f 20 42 45 43 4f 4d 45 |of it.Xt|o BECOME|
|00000e00| 20 65 71 75 61 6c 3b 20 | 74 68 65 20 72 65 73 75 | equal; |the resu|
|00000e10| 6c 74 61 6e 74 20 76 61 | 6c 75 65 20 69 73 20 74 |ltant va|lue is t|
|00000e20| 68 65 6e 20 77 68 61 74 | 65 76 65 72 20 76 61 6c |hen what|ever val|
|00000e30| 75 65 20 77 61 73 0a 58 | 6f 72 69 67 69 6e 61 6c |ue was.X|original|
|00000e40| 6c 79 20 6f 6e 20 74 68 | 65 20 72 69 67 68 74 2d |ly on th|e right-|
|00000e50| 68 61 6e 64 2d 73 69 64 | 65 20 6f 66 20 74 68 65 |hand-sid|e of the|
|00000e60| 20 53 45 20 6f 70 65 72 | 61 74 6f 72 2e 20 20 54 | SE oper|ator. T|
|00000e70| 68 65 20 64 6f 75 62 6c | 65 2d 65 71 75 61 6c 0a |he doubl|e-equal.|
|00000e80| 58 73 69 67 6e 20 28 44 | 45 29 20 66 69 72 73 74 |Xsign (D|E) first|
|00000e90| 20 74 65 73 74 73 20 74 | 68 65 20 74 77 6f 20 73 | tests t|he two s|
|00000ea0| 69 64 65 73 20 74 6f 20 | 73 65 65 20 69 66 20 74 |ides to |see if t|
|00000eb0| 68 65 79 20 61 72 65 20 | 65 71 75 61 6c 3b 20 74 |hey are |equal; t|
|00000ec0| 68 65 0a 58 72 65 73 75 | 6c 74 69 6e 67 20 76 61 |he.Xresu|lting va|
|00000ed0| 6c 75 65 20 6f 66 20 74 | 68 65 20 44 45 20 6f 70 |lue of t|he DE op|
|00000ee0| 65 72 61 74 6f 72 20 69 | 73 20 7a 65 72 6f 20 69 |erator i|s zero i|
|00000ef0| 66 20 74 68 65 79 20 61 | 72 65 20 6e 6f 74 20 65 |f they a|re not e|
|00000f00| 71 75 61 6c 2c 20 61 6e | 64 0a 58 6f 6e 65 20 69 |qual, an|d.Xone i|
|00000f10| 66 20 74 68 65 79 20 61 | 72 65 20 65 71 75 61 6c |f they a|re equal|
|00000f20| 2e 20 20 4e 6f 20 6f 74 | 68 65 72 20 72 65 73 75 |. No ot|her resu|
|00000f30| 6c 74 73 20 61 72 65 20 | 70 6f 73 73 69 62 6c 65 |lts are |possible|
|00000f40| 2e 20 20 0a 58 0a 58 45 | 78 61 6d 70 6c 65 73 3a |. .X.XE|xamples:|
|00000f50| 0a 58 0a 58 09 2f 2a 20 | 74 68 69 73 20 69 73 20 |.X.X./* |this is |
|00000f60| 28 70 72 6f 62 61 62 6c | 79 29 20 57 52 4f 4e 47 |(probabl|y) WRONG|
|00000f70| 20 2a 2f 0a 58 09 69 6e | 74 20 69 2c 6a 3b 0a 58 | */.X.in|t i,j;.X|
|00000f80| 09 69 66 28 69 3d 6a 29 | 7b 20 2e 2e 2e 20 7d 20 |.if(i=j)|{ ... } |
|00000f90| 20 2f 2a 77 69 6c 6c 20 | 65 78 65 63 75 74 65 20 | /*will |execute |
|00000fa0| 69 66 20 6a 20 69 73 20 | 6e 6f 6e 7a 65 72 6f 20 |if j is |nonzero |
|00000fb0| 2a 2f 0a 58 0a 58 09 2f | 2a 20 74 68 69 73 20 69 |*/.X.X./|* this i|
|00000fc0| 73 20 28 70 72 6f 62 61 | 62 6c 79 29 20 52 49 47 |s (proba|bly) RIG|
|00000fd0| 48 54 20 2a 2f 0a 58 09 | 69 6e 74 20 69 2c 6a 3b |HT */.X.|int i,j;|
|00000fe0| 0a 58 09 69 66 28 69 3d | 3d 6a 29 7b 20 2e 2e 2e |.X.if(i=|=j){ ...|
|00000ff0| 20 7d 20 2f 2a 77 69 6c | 6c 20 65 78 65 63 75 74 | } /*wil|l execut|
|00001000| 65 20 69 66 20 69 20 69 | 73 20 65 71 75 61 6c 20 |e if i i|s equal |
|00001010| 74 6f 20 6a 20 2a 2f 0a | 58 0a 58 2d 2d 2d 2d 2d |to j */.|X.X-----|
|00001020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00001050| 58 0a 58 33 2e 20 20 45 | 76 65 6e 20 65 78 70 65 |X.X3. E|ven expe|
|00001060| 72 69 65 6e 63 65 64 20 | 70 72 6f 67 72 61 6d 6d |rienced |programm|
|00001070| 65 72 73 20 73 6f 6d 65 | 74 69 6d 65 73 20 66 6f |ers some|times fo|
|00001080| 72 67 65 74 20 74 68 65 | 20 22 26 22 73 20 77 68 |rget the| "&"s wh|
|00001090| 69 63 68 0a 58 61 72 65 | 20 72 65 71 75 69 72 65 |ich.Xare| require|
|000010a0| 64 20 6f 6e 20 74 68 65 | 20 61 72 67 75 6d 65 6e |d on the| argumen|
|000010b0| 74 73 20 74 6f 20 73 63 | 61 6e 66 2e 20 20 41 6c |ts to sc|anf. Al|
|000010c0| 6c 20 61 72 67 75 6d 65 | 6e 74 73 20 61 66 74 65 |l argume|nts afte|
|000010d0| 72 20 74 68 65 0a 58 66 | 69 72 73 74 20 6d 75 73 |r the.Xf|irst mus|
|000010e0| 74 20 68 61 76 65 20 22 | 26 22 20 69 6e 20 66 72 |t have "|&" in fr|
|000010f0| 6f 6e 74 20 6f 66 20 69 | 74 2e 0a 58 0a 58 45 78 |ont of i|t..X.XEx|
|00001100| 61 6d 70 6c 65 73 3a 0a | 58 09 2f 2a 20 57 52 4f |amples:.|X./* WRO|
|00001110| 4e 47 20 2e 2e 2e 20 67 | 75 61 72 61 6e 74 65 65 |NG ... g|uarantee|
|00001120| 64 20 74 6f 20 64 75 6d | 70 20 63 6f 72 65 20 2a |d to dum|p core *|
|00001130| 2f 0a 58 09 69 6e 74 20 | 69 3b 0a 58 09 73 63 61 |/.X.int |i;.X.sca|
|00001140| 6e 66 28 22 25 64 22 2c | 69 29 3b 0a 58 0a 58 09 |nf("%d",|i);.X.X.|
|00001150| 2f 2a 20 52 49 47 48 54 | 20 2a 2f 0a 58 09 69 6e |/* RIGHT| */.X.in|
|00001160| 74 20 69 3b 0a 58 09 73 | 63 61 6e 66 28 22 25 64 |t i;.X.s|canf("%d|
|00001170| 22 2c 26 69 29 3b 0a 58 | 0a 58 09 2f 2a 20 66 6f |",&i);.X|.X./* fo|
|00001180| 72 20 61 64 76 61 6e 63 | 65 64 20 73 74 75 64 65 |r advanc|ed stude|
|00001190| 6e 74 73 20 6f 6e 6c 79 | 3a 20 2a 2f 0a 58 09 69 |nts only|: */.X.i|
|000011a0| 6e 74 20 6a 2c 20 2a 69 | 20 3d 20 26 6a 3b 0a 58 |nt j, *i| = &j;.X|
|000011b0| 09 73 63 61 6e 66 28 22 | 25 64 22 2c 69 29 3b 0a |.scanf("|%d",i);.|
|000011c0| 58 09 70 72 69 6e 74 66 | 28 22 25 64 20 25 64 5c |X.printf|("%d %d\|
|000011d0| 6e 22 2c 69 2c 6a 29 3b | 20 2f 2a 20 77 68 61 74 |n",i,j);| /* what|
|000011e0| 20 64 6f 65 73 20 69 74 | 20 70 72 69 6e 74 3f 20 | does it| print? |
|000011f0| 2a 2f 0a 58 0a 58 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |*/.X.X--|--------|
|00001200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 58 0a 58 34 2e |--------|--.X.X4.|
|00001230| 20 20 42 65 77 61 72 65 | 20 74 68 65 20 65 78 74 | Beware| the ext|
|00001240| 72 61 6e 65 6f 75 73 20 | 73 65 6d 69 63 6f 6c 6f |raneous |semicolo|
|00001250| 6e 2e 0a 58 0a 58 09 2f | 2a 20 28 70 72 6f 62 61 |n..X.X./|* (proba|
|00001260| 62 6c 79 29 20 57 52 4f | 4e 47 20 2a 2f 0a 58 09 |bly) WRO|NG */.X.|
|00001270| 66 6f 72 28 69 3d 30 3b | 20 69 3c 31 30 3b 20 69 |for(i=0;| i<10; i|
|00001280| 2b 2b 29 3b 0a 58 09 09 | 70 72 69 6e 74 66 28 22 |++);.X..|printf("|
|00001290| 25 64 5c 6e 22 2c 69 29 | 3b 0a 58 0a 58 09 2f 2a |%d\n",i)|;.X.X./*|
|000012a0| 20 28 70 72 6f 62 61 62 | 6c 79 29 20 52 49 47 48 | (probab|ly) RIGH|
|000012b0| 54 20 2a 2f 0a 58 09 66 | 6f 72 28 69 3d 30 3b 20 |T */.X.f|or(i=0; |
|000012c0| 69 3c 31 30 3b 20 69 2b | 2b 29 0a 58 09 09 70 72 |i<10; i+|+).X..pr|
|000012d0| 69 6e 74 66 28 22 25 64 | 5c 6e 22 2c 69 29 3b 0a |intf("%d|\n",i);.|
|000012e0| 58 0a 58 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X.X-----|--------|
|000012f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001300| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001310| 2d 2d 2d 2d 2d 2d 2d 0a | 58 0a 58 35 2e 20 20 41 |-------.|X.X5. A|
|00001320| 67 61 69 6e 2c 20 65 76 | 65 6e 20 65 78 70 65 72 |gain, ev|en exper|
|00001330| 69 65 6e 63 65 64 20 70 | 72 6f 67 72 61 6d 6d 65 |ienced p|rogramme|
|00001340| 72 73 20 73 6f 6d 65 74 | 69 6d 65 73 20 28 48 69 |rs somet|imes (Hi|
|00001350| 2c 20 43 68 72 69 73 21 | 29 0a 58 67 65 74 20 62 |, Chris!|).Xget b|
|00001360| 69 74 20 62 79 20 74 68 | 65 20 22 64 61 6e 67 6c |it by th|e "dangl|
|00001370| 69 6e 67 20 65 6c 73 65 | 22 20 62 75 67 3a 0a 58 |ing else|" bug:.X|
|00001380| 0a 58 09 69 66 28 69 3d | 3d 35 29 0a 58 09 09 6b |.X.if(i=|=5).X..k|
|00001390| 3d 37 3b 0a 58 09 09 69 | 66 20 28 6c 69 6e 65 3d |=7;.X..i|f (line=|
|000013a0| 3d 32 37 29 20 64 20 3d | 20 33 39 3b 0a 58 09 65 |=27) d =| 39;.X.e|
|000013b0| 6c 73 65 0a 58 09 09 64 | 20 3d 20 34 31 3b 0a 58 |lse.X..d| = 41;.X|
|000013c0| 0a 58 61 6e 64 20 76 61 | 72 69 61 74 69 6f 6e 73 |.Xand va|riations|
|000013d0| 20 74 6f 6f 20 6e 75 6d | 65 72 6f 75 73 20 74 6f | too num|erous to|
|000013e0| 20 73 68 6f 77 20 68 65 | 72 65 2e 20 20 54 68 65 | show he|re. The|
|000013f0| 20 22 65 6c 73 65 22 20 | 67 6f 65 73 20 77 69 74 | "else" |goes wit|
|00001400| 68 20 74 68 65 0a 58 6e | 65 61 72 65 73 74 20 70 |h the.Xn|earest p|
|00001410| 72 65 63 65 64 69 6e 67 | 20 22 69 66 22 20 28 77 |receding| "if" (w|
|00001420| 65 6c 6c 2c 20 61 63 74 | 75 61 6c 6c 79 2c 20 74 |ell, act|ually, t|
|00001430| 68 65 20 6e 65 61 72 65 | 73 74 20 70 72 65 63 65 |he neare|st prece|
|00001440| 64 69 6e 67 0a 58 22 69 | 66 22 20 74 68 61 74 20 |ding.X"i|f" that |
|00001450| 64 6f 65 73 6e 27 74 20 | 61 6c 72 65 61 64 79 20 |doesn't |already |
|00001460| 68 61 76 65 20 61 6e 20 | 22 65 6c 73 65 22 20 61 |have an |"else" a|
|00001470| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 69 |ssociate|d with i|
|00001480| 74 29 2e 20 20 0a 58 54 | 68 65 20 63 6f 6d 70 69 |t). .XT|he compi|
|00001490| 6c 65 72 20 64 6f 65 73 | 20 6e 6f 74 20 6b 6e 6f |ler does| not kno|
|000014a0| 77 20 69 6e 64 65 6e 74 | 61 74 69 6f 6e 2e 0a 58 |w indent|ation..X|
|000014b0| 0a 58 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X------|--------|
|000014c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014e0| 2d 2d 2d 2d 2d 2d 0a 58 | 0a 58 36 2e 20 20 53 63 |------.X|.X6. Sc|
|000014f0| 61 6e 66 28 29 20 66 72 | 6f 6d 20 74 68 65 20 74 |anf() fr|om the t|
|00001500| 65 72 6d 69 6e 61 6c 20 | 63 61 6e 20 70 72 6f 64 |erminal |can prod|
|00001510| 75 63 65 20 73 6f 6d 65 | 20 70 65 72 70 6c 65 78 |uce some| perplex|
|00001520| 69 6e 67 20 72 65 73 75 | 6c 74 73 0a 58 75 6e 74 |ing resu|lts.Xunt|
|00001530| 69 6c 20 79 6f 75 20 6c | 65 61 72 6e 20 61 62 6f |il you l|earn abo|
|00001540| 75 74 20 22 74 68 65 20 | 74 65 72 6d 69 6e 61 74 |ut "the |terminat|
|00001550| 69 6e 67 20 6e 65 77 6c | 69 6e 65 22 2c 20 61 6e |ing newl|ine", an|
|00001560| 64 20 77 68 61 74 20 73 | 63 61 6e 66 0a 58 63 6f |d what s|canf.Xco|
|00001570| 6e 73 69 64 65 72 73 20 | 74 6f 20 62 65 20 77 68 |nsiders |to be wh|
|00001580| 69 74 65 73 70 61 63 65 | 20 66 6f 72 20 25 64 2c |itespace| for %d,|
|00001590| 20 25 73 2c 20 61 6e 64 | 20 25 63 20 66 6f 72 6d | %s, and| %c form|
|000015a0| 61 74 73 2e 20 20 50 72 | 69 6d 61 72 69 6c 79 0a |ats. Pr|imarily.|
|000015b0| 58 74 72 79 20 74 6f 20 | 72 65 6d 65 6d 62 65 72 |Xtry to |remember|
|000015c0| 20 74 68 61 74 20 66 6f | 72 20 61 20 22 25 64 22 | that fo|r a "%d"|
|000015d0| 20 66 6f 72 6d 61 74 2c | 20 73 63 61 6e 66 20 49 | format,| scanf I|
|000015e0| 47 4e 4f 52 45 53 20 6c | 65 61 64 69 6e 67 0a 58 |GNORES l|eading.X|
|000015f0| 77 68 69 74 65 73 70 61 | 63 65 2c 20 61 6e 64 20 |whitespa|ce, and |
|00001600| 50 55 54 53 20 42 41 43 | 4b 20 74 68 65 20 77 68 |PUTS BAC|K the wh|
|00001610| 69 74 65 73 70 61 63 65 | 20 77 68 69 63 68 20 63 |itespace| which c|
|00001620| 61 75 73 65 64 20 74 68 | 65 20 74 65 72 6d 69 6e |aused th|e termin|
|00001630| 61 74 69 6f 6e 0a 58 6f | 66 20 61 20 22 25 64 22 |ation.Xo|f a "%d"|
|00001640| 20 73 63 61 6e 2e 20 20 | 4d 6f 72 61 6c 20 6f 66 | scan. |Moral of|
|00001650| 20 74 68 65 20 73 74 6f | 72 79 3a 20 22 64 6f 20 | the sto|ry: "do |
|00001660| 6e 6f 74 20 6d 69 78 20 | 25 63 20 61 6e 64 20 25 |not mix |%c and %|
|00001670| 73 20 66 6f 72 6d 61 74 | 73 0a 58 77 69 74 68 20 |s format|s.Xwith |
|00001680| 25 64 20 6f 72 20 25 66 | 20 66 6f 72 6d 61 74 73 |%d or %f| formats|
|00001690| 2c 20 6e 6f 72 20 6d 69 | 78 20 73 63 61 6e 66 20 |, nor mi|x scanf |
|000016a0| 77 69 74 68 20 67 65 74 | 63 68 61 72 2c 20 75 6e |with get|char, un|
|000016b0| 6c 65 73 73 20 79 6f 75 | 20 61 72 65 0a 58 76 65 |less you| are.Xve|
|000016c0| 72 79 20 63 61 72 65 66 | 75 6c 20 41 4e 44 20 6b |ry caref|ul AND k|
|000016d0| 6e 6f 77 20 77 68 61 74 | 20 79 6f 75 27 72 65 20 |now what| you're |
|000016e0| 64 6f 69 6e 67 2e 22 0a | 45 4e 44 5f 4f 46 5f 46 |doing.".|END_OF_F|
|000016f0| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 33 31 39 36 |ILE.if t|est 3196|
|00001700| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 43 2d | -ne `wc| -c <'C-|
|00001710| 6d 69 73 74 61 6b 65 73 | 2e 74 78 74 27 60 3b 20 |mistakes|.txt'`; |
|00001720| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00001730| 61 72 3a 20 5c 22 27 43 | 2d 6d 69 73 74 61 6b 65 |ar: \"'C|-mistake|
|00001740| 73 2e 74 78 74 27 5c 22 | 20 75 6e 70 61 63 6b 65 |s.txt'\"| unpacke|
|00001750| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00001760| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00001770| 43 2d 6d 69 73 74 61 6b | 65 73 2e 74 78 74 27 0a |C-mistak|es.txt'.|
|00001780| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 4d |fi.if te|st -f 'M|
|00001790| 41 4e 49 46 45 53 54 27 | 20 2d 61 20 22 24 7b 31 |ANIFEST'| -a "${1|
|000017a0| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|000017b0| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|000017c0| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|000017d0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000017e0| 22 27 4d 41 4e 49 46 45 | 53 54 27 5c 22 0a 65 6c |"'MANIFE|ST'\".el|
|000017f0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00001800| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 4d 41 4e 49 |tracting| \"'MANI|
|00001810| 46 45 53 54 27 5c 22 20 | 5c 28 32 32 35 38 20 63 |FEST'\" |\(2258 c|
|00001820| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00001830| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 4d 41 4e 49 46 |"s/^X//"| >'MANIF|
|00001840| 45 53 54 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |EST' <<'|END_OF_F|
|00001850| 49 4c 45 27 0a 58 20 20 | 20 46 69 6c 65 20 4e 61 |ILE'.X | File Na|
|00001860| 6d 65 09 09 41 72 63 68 | 69 76 65 20 23 09 44 65 |me..Arch|ive #.De|
|00001870| 73 63 72 69 70 74 69 6f | 6e 0a 58 2d 2d 2d 2d 2d |scriptio|n.X-----|
|00001880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001890| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018b0| 2d 2d 2d 2d 2d 2d 0a 58 | 20 43 2d 6d 69 73 74 61 |------.X| C-mista|
|000018c0| 6b 65 73 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 |kes.txt | |
|000018d0| 20 20 20 20 31 09 0a 58 | 20 4d 41 4e 49 46 45 53 | 1..X| MANIFES|
|000018e0| 54 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |T | |
|000018f0| 20 20 20 20 31 09 54 68 | 69 73 20 73 68 69 70 70 | 1.Th|is shipp|
|00001900| 69 6e 67 20 6c 69 73 74 | 0a 58 20 4d 61 6b 65 66 |ing list|.X Makef|
|00001910| 69 6c 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ile | |
|00001920| 20 20 20 20 20 20 31 09 | 0a 58 20 52 45 41 44 4d | 1.|.X READM|
|00001930| 45 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |E | |
|00001940| 20 20 20 20 20 20 31 09 | 0a 58 20 61 63 2e 74 78 | 1.|.X ac.tx|
|00001950| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00001960| 20 20 20 20 20 20 31 09 | 0a 58 20 61 66 2e 74 78 | 1.|.X af.tx|
|00001970| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00001980| 20 20 20 20 20 20 31 09 | 0a 58 20 61 70 2e 74 78 | 1.|.X ap.tx|
|00001990| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|000019a0| 20 20 20 20 20 20 31 09 | 0a 58 20 61 70 72 6f 70 | 1.|.X aprop|
|000019b0| 6f 73 2e 74 78 74 20 20 | 20 20 20 20 20 20 20 20 |os.txt | |
|000019c0| 20 20 20 20 20 20 31 09 | 0a 58 20 62 79 65 2e 74 | 1.|.X bye.t|
|000019d0| 78 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |xt | |
|000019e0| 20 20 20 20 20 20 31 09 | 0a 58 20 63 61 74 2e 74 | 1.|.X cat.t|
|000019f0| 78 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |xt | |
|00001a00| 20 20 20 20 20 20 31 09 | 0a 58 20 63 62 72 65 61 | 1.|.X cbrea|
|00001a10| 6b 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |k.c | |
|00001a20| 20 20 20 20 20 20 31 09 | 0a 58 20 63 63 2e 74 78 | 1.|.X cc.tx|
|00001a30| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00001a40| 20 20 20 20 20 20 31 09 | 0a 58 20 63 64 2e 74 78 | 1.|.X cd.tx|
|00001a50| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00001a60| 20 20 20 20 20 20 31 09 | 0a 58 20 63 6f 6d 70 69 | 1.|.X compi|
|00001a70| 6c 65 72 73 2e 74 78 74 | 20 20 20 20 20 20 20 20 |lers.txt| |
|00001a80| 20 20 20 20 20 20 31 09 | 0a 58 20 63 6f 70 79 2e | 1.|.X copy.|
|00001a90| 74 78 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |txt | |
|00001aa0| 20 20 20 20 20 20 31 09 | 0a 58 20 63 70 2e 74 78 | 1.|.X cp.tx|
|00001ab0| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00001ac0| 20 20 20 20 20 20 31 09 | 0a 58 20 63 73 68 2e 74 | 1.|.X csh.t|
|00001ad0| 78 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |xt | |
|00001ae0| 20 20 20 20 20 20 31 09 | 0a 58 20 64 69 72 2e 74 | 1.|.X dir.t|
|00001af0| 78 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |xt | |
|00001b00| 20 20 20 20 20 20 31 09 | 0a 58 20 65 64 2e 74 78 | 1.|.X ed.tx|
|00001b10| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00001b20| 20 20 20 20 20 20 31 09 | 0a 58 20 65 64 69 74 2e | 1.|.X edit.|
|00001b30| 74 78 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |txt | |
|00001b40| 20 20 20 20 20 20 31 09 | 0a 58 20 65 78 69 74 2e | 1.|.X exit.|
|00001b50| 74 78 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |txt | |
|00001b60| 20 20 20 20 20 20 31 09 | 0a 58 20 66 69 6c 65 73 | 1.|.X files|
|00001b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b80| 20 20 20 20 20 20 31 09 | 0a 58 20 66 69 6c 65 73 | 1.|.X files|
|00001b90| 2e 74 78 74 20 20 20 20 | 20 20 20 20 20 20 20 20 |.txt | |
|00001ba0| 20 20 20 20 20 20 31 09 | 0a 58 20 66 69 6c 65 73 | 1.|.X files|
|00001bb0| 2f 61 2e 6f 75 74 2e 74 | 78 74 20 20 20 20 20 20 |/a.out.t|xt |
|00001bc0| 20 20 20 20 20 20 31 09 | 0a 58 20 66 69 6c 65 73 | 1.|.X files|
|00001bd0| 2f 62 69 6e 61 72 69 65 | 73 20 20 20 20 20 20 20 |/binarie|s |
|00001be0| 20 20 20 20 20 20 31 09 | 0a 58 20 66 69 6c 65 73 | 1.|.X files|
|00001bf0| 2f 62 69 6e 61 72 69 65 | 73 2e 74 78 74 20 20 20 |/binarie|s.txt |
|00001c00| 20 20 20 20 20 20 31 09 | 0a 58 20 66 69 6c 65 73 | 1.|.X files|
|00001c10| 2f 62 69 6e 61 72 69 65 | 73 2f 61 2e 6f 75 74 2e |/binarie|s/a.out.|
|00001c20| 74 78 74 20 20 20 31 09 | 0a 58 20 66 69 6c 65 73 |txt 1.|.X files|
|00001c30| 2f 62 69 6e 61 72 69 65 | 73 2f 65 78 65 63 75 74 |/binarie|s/execut|
|00001c40| 61 62 6c 65 73 2e 74 78 | 74 20 20 31 09 0a 58 20 |ables.tx|t 1..X |
|00001c50| 66 69 6c 65 73 2f 66 69 | 6c 65 6e 61 6d 65 73 2e |files/fi|lenames.|
|00001c60| 74 78 74 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 |txt | 1..X |
|00001c70| 66 69 6c 65 73 2f 70 77 | 64 2e 74 78 74 20 20 20 |files/pw|d.txt |
|00001c80| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001c90| 66 69 6c 65 73 2f 73 6f | 75 72 63 65 73 2e 74 78 |files/so|urces.tx|
|00001ca0| 74 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 |t | 1..X |
|00001cb0| 66 6f 72 74 72 61 6e 2e | 74 78 74 20 20 20 20 20 |fortran.|txt |
|00001cc0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001cd0| 67 61 6d 65 73 2e 74 78 | 74 20 20 20 20 20 20 20 |games.tx|t |
|00001ce0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001cf0| 67 75 72 75 20 20 20 20 | 20 20 20 20 20 20 20 20 |guru | |
|00001d00| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001d10| 67 75 72 75 2e 31 20 20 | 20 20 20 20 20 20 20 20 |guru.1 | |
|00001d20| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001d30| 67 75 72 75 2e 74 78 74 | 20 20 20 20 20 20 20 20 |guru.txt| |
|00001d40| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001d50| 68 65 6c 70 2e 63 20 20 | 20 20 20 20 20 20 20 20 |help.c | |
|00001d60| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001d70| 68 65 6c 70 2e 74 78 74 | 20 20 20 20 20 20 20 20 |help.txt| |
|00001d80| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001d90| 69 67 6f 72 73 20 20 20 | 20 20 20 20 20 20 20 20 |igors | |
|00001da0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001db0| 69 67 6f 72 73 2e 31 20 | 20 20 20 20 20 20 20 20 |igors.1 | |
|00001dc0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001dd0| 69 67 6f 72 73 2e 74 78 | 74 20 20 20 20 20 20 20 |igors.tx|t |
|00001de0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001df0| 6b 69 6e 64 65 78 2e 63 | 20 20 20 20 20 20 20 20 |kindex.c| |
|00001e00| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001e10| 6c 61 6e 67 75 61 67 65 | 73 2e 74 78 74 20 20 20 |language|s.txt |
|00001e20| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001e30| 6c 65 61 72 6e 2e 74 78 | 74 20 20 20 20 20 20 20 |learn.tx|t |
|00001e40| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001e50| 6c 65 73 73 2e 74 78 74 | 20 20 20 20 20 20 20 20 |less.txt| |
|00001e60| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001e70| 6c 69 73 74 66 64 2e 63 | 20 20 20 20 20 20 20 20 |listfd.c| |
|00001e80| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001e90| 6c 69 73 74 69 74 2e 63 | 20 20 20 20 20 20 20 20 |listit.c| |
|00001ea0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001eb0| 6c 6f 67 6f 66 66 2e 74 | 78 74 20 20 20 20 20 20 |logoff.t|xt |
|00001ec0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001ed0| 6c 6f 67 6f 75 74 2e 74 | 78 74 20 20 20 20 20 20 |logout.t|xt |
|00001ee0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001ef0| 6d 61 69 6c 2e 74 78 74 | 20 20 20 20 20 20 20 20 |mail.txt| |
|00001f00| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001f10| 6d 61 6e 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 |man.txt | |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001f30| 6d 61 6e 75 61 6c 2e 74 | 78 74 20 20 20 20 20 20 |manual.t|xt |
|00001f40| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001f50| 6d 76 2e 74 78 74 20 20 | 20 20 20 20 20 20 20 20 |mv.txt | |
|00001f60| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001f70| 6d 79 6d 6f 64 65 2e 63 | 20 20 20 20 20 20 20 20 |mymode.c| |
|00001f80| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001f90| 6e 65 77 73 2e 74 78 74 | 20 20 20 20 20 20 20 20 |news.txt| |
|00001fa0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001fb0| 6e 6f 63 62 72 65 61 6b | 2e 63 20 20 20 20 20 20 |nocbreak|.c |
|00001fc0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001fd0| 6f 66 66 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 |off.txt | |
|00001fe0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00001ff0| 70 61 73 63 61 6c 2e 74 | 78 74 20 20 20 20 20 20 |pascal.t|xt |
|00002000| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00002010| 70 61 73 73 77 64 2e 74 | 78 74 20 20 20 20 20 20 |passwd.t|xt |
|00002020| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00002030| 70 68 6f 6e 65 2e 74 78 | 74 20 20 20 20 20 20 20 |phone.tx|t |
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00002050| 70 77 64 2e 74 78 74 20 | 20 20 20 20 20 20 20 20 |pwd.txt | |
|00002060| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00002070| 71 75 69 74 2e 74 78 74 | 20 20 20 20 20 20 20 20 |quit.txt| |
|00002080| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00002090| 72 65 6e 61 6d 65 2e 74 | 78 74 20 20 20 20 20 20 |rename.t|xt |
|000020a0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|000020b0| 73 74 61 74 2e 63 20 20 | 20 20 20 20 20 20 20 20 |stat.c | |
|000020c0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|000020d0| 74 61 6c 6b 2e 74 78 74 | 20 20 20 20 20 20 20 20 |talk.txt| |
|000020e0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|000020f0| 74 65 72 6d 69 6e 61 6c | 2e 74 78 74 20 20 20 20 |terminal|.txt |
|00002100| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00002110| 74 65 73 74 2e 74 78 74 | 20 20 20 20 20 20 20 20 |test.txt| |
|00002120| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00002130| 75 6c 67 72 70 20 20 20 | 20 20 20 20 20 20 20 20 |ulgrp | |
|00002140| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 58 20 | | 1..X |
|00002150| 76 69 2e 74 78 74 20 20 | 20 20 20 20 20 20 20 20 |vi.txt | |
|00002160| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 45 4e | | 1..EN|
|00002170| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00002180| 74 20 32 32 35 38 20 2d | 6e 65 20 60 77 63 20 2d |t 2258 -|ne `wc -|
|00002190| 63 20 3c 27 4d 41 4e 49 | 46 45 53 54 27 60 3b 20 |c <'MANI|FEST'`; |
|000021a0| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|000021b0| 61 72 3a 20 5c 22 27 4d | 41 4e 49 46 45 53 54 27 |ar: \"'M|ANIFEST'|
|000021c0| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|000021d0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|000021e0| 23 20 65 6e 64 20 6f 66 | 20 27 4d 41 4e 49 46 45 |# end of| 'MANIFE|
|000021f0| 53 54 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |ST'.fi.i|f test -|
|00002200| 66 20 27 4d 61 6b 65 66 | 69 6c 65 27 20 2d 61 20 |f 'Makef|ile' -a |
|00002210| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00002220| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00002230| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00002240| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00002250| 6c 65 20 5c 22 27 4d 61 | 6b 65 66 69 6c 65 27 5c |le \"'Ma|kefile'\|
|00002260| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00002270| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00002280| 4d 61 6b 65 66 69 6c 65 | 27 5c 22 20 5c 28 31 33 |Makefile|'\" \(13|
|00002290| 39 39 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |99 chara|cters\).|
|000022a0| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 4d |sed "s/^|X//" >'M|
|000022b0| 61 6b 65 66 69 6c 65 27 | 20 3c 3c 27 45 4e 44 5f |akefile'| <<'END_|
|000022c0| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 4d 61 6b 65 66 |OF_FILE'|.X#Makef|
|000022d0| 69 6c 65 20 66 6f 72 20 | 22 68 65 6c 70 22 0a 58 |ile for |"help".X|
|000022e0| 0a 58 23 66 6f 72 20 53 | 65 71 75 65 6e 74 20 70 |.X#for S|equent p|
|000022f0| 61 72 61 6c 6c 65 6c 20 | 6d 61 6b 65 3a 0a 58 50 |arallel |make:.XP|
|00002300| 3d 26 0a 58 0a 58 23 44 | 65 66 69 6e 65 20 4f 4c |=&.X.X#D|efine OL|
|00002310| 44 44 49 52 20 69 66 20 | 79 6f 75 20 64 6f 20 6e |DDIR if |you do n|
|00002320| 6f 74 20 68 61 76 65 20 | 6f 70 65 6e 64 69 72 28 |ot have |opendir(|
|00002330| 29 2c 20 72 65 61 64 64 | 69 72 28 29 2c 20 65 74 |), readd|ir(), et|
|00002340| 63 2e 2c 0a 58 23 20 61 | 6e 64 20 79 6f 75 72 20 |c.,.X# a|nd your |
|00002350| 64 69 72 65 63 74 6f 72 | 69 65 73 20 61 72 65 20 |director|ies are |
|00002360| 6f 66 20 74 68 65 20 31 | 36 2d 62 79 74 65 2c 20 |of the 1|6-byte, |
|00002370| 31 34 2d 63 68 61 72 61 | 63 74 65 72 2d 6e 61 6d |14-chara|cter-nam|
|00002380| 65 20 76 61 72 69 65 74 | 79 2e 0a 58 23 44 65 66 |e variet|y..X#Def|
|00002390| 69 6e 65 20 53 59 53 56 | 20 69 66 20 79 6f 75 20 |ine SYSV| if you |
|000023a0| 6d 75 73 74 20 3a 2d 29 | 2e 0a 58 23 4e 6f 74 65 |must :-)|..X#Note|
|000023b0| 20 74 68 61 74 20 53 59 | 53 56 20 61 6e 64 20 4f | that SY|SV and O|
|000023c0| 4c 44 44 49 52 20 61 72 | 65 20 6e 6f 74 20 6e 65 |LDDIR ar|e not ne|
|000023d0| 63 65 73 73 61 72 69 6c | 79 20 72 65 6c 61 74 65 |cessaril|y relate|
|000023e0| 64 3b 0a 58 23 20 61 74 | 20 6c 65 61 73 74 20 6f |d;.X# at| least o|
|000023f0| 6e 65 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 58 65 |ne versi|on of Xe|
|00002400| 6e 69 78 20 74 68 61 74 | 20 49 20 6b 6e 6f 77 20 |nix that| I know |
|00002410| 6f 66 20 72 65 71 75 69 | 72 65 73 20 62 6f 74 68 |of requi|res both|
|00002420| 2c 0a 58 23 20 61 6e 64 | 20 61 74 20 6c 65 61 73 |,.X# and| at leas|
|00002430| 74 20 6f 6e 65 20 76 65 | 72 73 69 6f 6e 20 6f 66 |t one ve|rsion of|
|00002440| 20 53 79 73 56 20 68 61 | 73 20 74 68 65 20 6e 65 | SysV ha|s the ne|
|00002450| 77 20 64 69 72 65 63 74 | 6f 72 79 20 73 74 75 66 |w direct|ory stuf|
|00002460| 66 2e 0a 58 43 46 4c 41 | 47 53 3d 23 2d 4f 20 23 |f..XCFLA|GS=#-O #|
|00002470| 2d 44 53 59 53 56 20 23 | 2d 44 4f 4c 44 44 49 52 |-DSYSV #|-DOLDDIR|
|00002480| 0a 58 23 43 43 3d 67 63 | 63 0a 58 0a 58 0a 58 23 |.X#CC=gc|c.X.X.X#|
|00002490| 64 69 72 65 63 74 6f 72 | 79 20 77 68 65 72 65 20 |director|y where |
|000024a0| 74 68 65 20 22 2a 2e 74 | 78 74 22 20 66 69 6c 65 |the "*.t|xt" file|
|000024b0| 73 20 73 68 6f 75 6c 64 | 20 6c 69 76 65 20 28 6d |s should| live (m|
|000024c0| 6f 73 74 20 70 65 6f 70 | 6c 65 20 77 6f 75 6c 64 |ost peop|le would|
|000024d0| 0a 58 23 20 75 73 65 20 | 2f 75 73 72 2f 6c 69 62 |.X# use |/usr/lib|
|000024e0| 2f 68 65 6c 70 2c 20 62 | 75 74 20 69 74 20 72 65 |/help, b|ut it re|
|000024f0| 61 6c 6c 79 20 64 6f 65 | 73 6e 27 74 20 6d 61 74 |ally doe|sn't mat|
|00002500| 74 65 72 29 2e 0a 58 4c | 49 42 3d 2f 75 73 72 2f |ter)..XL|IB=/usr/|
|00002510| 6c 69 62 2f 68 65 6c 70 | 0a 58 23 74 68 65 20 66 |lib/help|.X#the f|
|00002520| 75 6c 6c 20 70 61 74 68 | 6e 61 6d 65 20 6f 66 20 |ull path|name of |
|00002530| 74 68 65 20 65 78 65 63 | 75 74 61 62 6c 65 20 28 |the exec|utable (|
|00002540| 69 6e 20 65 76 65 72 79 | 6f 6e 65 27 73 20 70 61 |in every|one's pa|
|00002550| 74 68 20 28 3f 29 29 2e | 0a 58 45 58 45 3d 2f 75 |th (?)).|.XEXE=/u|
|00002560| 73 72 2f 6c 6f 63 61 6c | 2f 62 69 6e 2f 68 65 6c |sr/local|/bin/hel|
|00002570| 70 0a 58 0a 58 53 52 43 | 3d 20 68 65 6c 70 2e 63 |p.X.XSRC|= help.c|
|00002580| 20 6d 79 6d 6f 64 65 2e | 63 20 6c 69 73 74 66 64 | mymode.|c listfd|
|00002590| 2e 63 20 6b 69 6e 64 65 | 78 2e 63 20 6c 69 73 74 |.c kinde|x.c list|
|000025a0| 69 74 2e 63 20 63 62 72 | 65 61 6b 2e 63 20 6e 6f |it.c cbr|eak.c no|
|000025b0| 63 62 72 65 61 6b 2e 63 | 0a 58 42 49 4e 3d 20 68 |cbreak.c|.XBIN= h|
|000025c0| 65 6c 70 2e 6f 20 6d 79 | 6d 6f 64 65 2e 6f 20 6c |elp.o my|mode.o l|
|000025d0| 69 73 74 66 64 2e 6f 20 | 6b 69 6e 64 65 78 2e 6f |istfd.o |kindex.o|
|000025e0| 20 6c 69 73 74 69 74 2e | 6f 20 63 62 72 65 61 6b | listit.|o cbreak|
|000025f0| 2e 6f 20 6e 6f 63 62 72 | 65 61 6b 2e 6f 0a 58 68 |.o nocbr|eak.o.Xh|
|00002600| 65 6c 70 78 3a 20 24 28 | 50 29 20 24 28 42 49 4e |elpx: $(|P) $(BIN|
|00002610| 29 0a 58 09 24 28 43 43 | 29 20 2d 6f 20 68 65 6c |).X.$(CC|) -o hel|
|00002620| 70 78 20 24 28 42 49 4e | 29 0a 58 69 6e 73 74 61 |px $(BIN|).Xinsta|
|00002630| 6c 6c 3a 20 68 65 6c 70 | 78 0a 58 09 73 74 72 69 |ll: help|x.X.stri|
|00002640| 70 20 68 65 6c 70 78 0a | 58 09 6d 76 20 68 65 6c |p helpx.|X.mv hel|
|00002650| 70 78 20 24 28 45 58 45 | 29 0a 58 09 2d 6d 6b 64 |px $(EXE|).X.-mkd|
|00002660| 69 72 20 24 28 4c 49 42 | 29 0a 58 09 2d 6d 6b 64 |ir $(LIB|).X.-mkd|
|00002670| 69 72 20 24 28 4c 49 42 | 29 2f 66 69 6c 65 73 0a |ir $(LIB|)/files.|
|00002680| 58 09 2d 6d 6b 64 69 72 | 20 24 28 4c 49 42 29 2f |X.-mkdir| $(LIB)/|
|00002690| 66 69 6c 65 73 2f 62 69 | 6e 61 72 69 65 73 0a 58 |files/bi|naries.X|
|000026a0| 09 2d 63 70 20 2e 2f 2a | 2e 74 78 74 20 24 28 4c |.-cp ./*|.txt $(L|
|000026b0| 49 42 29 0a 58 09 2d 63 | 70 20 2e 2f 66 69 6c 65 |IB).X.-c|p ./file|
|000026c0| 73 2f 2a 2e 74 78 74 20 | 24 28 4c 49 42 29 2f 66 |s/*.txt |$(LIB)/f|
|000026d0| 69 6c 65 73 0a 58 09 2d | 63 70 20 2e 2f 66 69 6c |iles.X.-|cp ./fil|
|000026e0| 65 73 2f 62 69 6e 61 72 | 69 65 73 2f 2a 2e 74 78 |es/binar|ies/*.tx|
|000026f0| 74 20 24 28 4c 49 42 29 | 2f 66 69 6c 65 73 2f 62 |t $(LIB)|/files/b|
|00002700| 69 6e 61 72 69 65 73 0a | 58 09 2d 63 70 20 2a 2e |inaries.|X.-cp *.|
|00002710| 31 20 2f 75 73 72 2f 6d | 61 6e 2f 6d 61 6e 31 0a |1 /usr/m|an/man1.|
|00002720| 58 0a 58 6c 69 6e 74 3a | 20 24 28 53 52 43 29 0a |X.Xlint:| $(SRC).|
|00002730| 58 09 6c 69 6e 74 20 24 | 28 43 46 4c 41 47 53 29 |X.lint $|(CFLAGS)|
|00002740| 20 2d 44 4c 49 42 44 49 | 52 3d 5c 22 24 28 4c 49 | -DLIBDI|R=\"$(LI|
|00002750| 42 29 5c 22 20 2d 63 70 | 62 68 20 24 28 53 52 43 |B)\" -cp|bh $(SRC|
|00002760| 29 20 0a 58 09 6c 69 6e | 74 20 2d 63 70 62 68 20 |) .X.lin|t -cpbh |
|00002770| 73 74 61 74 2e 63 0a 58 | 73 68 61 72 3a 0a 58 09 |stat.c.X|shar:.X.|
|00002780| 6d 61 6b 65 6b 69 74 20 | 2d 6d 20 52 45 41 44 4d |makekit |-m READM|
|00002790| 45 20 4d 61 6b 65 66 69 | 6c 65 20 24 28 53 52 43 |E Makefi|le $(SRC|
|000027a0| 29 20 2a 2e 74 78 74 20 | 73 74 61 74 2e 63 20 5c |) *.txt |stat.c \|
|000027b0| 0a 58 09 66 69 6c 65 73 | 20 66 69 6c 65 73 2f 2a |.X.files| files/*|
|000027c0| 2e 74 78 74 20 5c 0a 58 | 09 66 69 6c 65 73 2f 62 |.txt \.X|.files/b|
|000027d0| 69 6e 61 72 69 65 73 20 | 66 69 6c 65 73 2f 62 69 |inaries |files/bi|
|000027e0| 6e 61 72 69 65 73 2f 2a | 2e 74 78 74 20 5c 0a 58 |naries/*|.txt \.X|
|000027f0| 09 67 75 72 75 2e 31 20 | 69 67 6f 72 73 2e 31 20 |.guru.1 |igors.1 |
|00002800| 67 75 72 75 20 69 67 6f | 72 73 20 75 6c 67 72 70 |guru igo|rs ulgrp|
|00002810| 0a 58 68 65 6c 70 2e 6f | 3a 20 68 65 6c 70 2e 63 |.Xhelp.o|: help.c|
|00002820| 0a 58 09 24 28 43 43 29 | 20 2d 63 20 24 28 43 46 |.X.$(CC)| -c $(CF|
|00002830| 4c 41 47 53 29 20 2d 44 | 4c 49 42 44 49 52 3d 5c |LAGS) -D|LIBDIR=\|
|00002840| 22 24 28 4c 49 42 29 5c | 22 20 68 65 6c 70 2e 63 |"$(LIB)\|" help.c|
|00002850| 0a 58 63 6c 65 61 6e 3a | 0a 58 09 2f 62 69 6e 2f |.Xclean:|.X./bin/|
|00002860| 72 6d 20 2d 66 20 2a 2e | 6f 20 68 65 6c 70 78 0a |rm -f *.|o helpx.|
|00002870| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00002880| 65 73 74 20 31 33 39 39 | 20 2d 6e 65 20 60 77 63 |est 1399| -ne `wc|
|00002890| 20 2d 63 20 3c 27 4d 61 | 6b 65 66 69 6c 65 27 60 | -c <'Ma|kefile'`|
|000028a0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000028b0| 73 68 61 72 3a 20 5c 22 | 27 4d 61 6b 65 66 69 6c |shar: \"|'Makefil|
|000028c0| 65 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |e'\" unp|acked wi|
|000028d0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000028e0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 4d 61 6b 65 |i.# end |of 'Make|
|000028f0| 66 69 6c 65 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |file'.fi|.if test|
|00002900| 20 2d 66 20 27 52 45 41 | 44 4d 45 27 20 2d 61 20 | -f 'REA|DME' -a |
|00002910| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00002920| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00002930| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00002940| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00002950| 6c 65 20 5c 22 27 52 45 | 41 44 4d 45 27 5c 22 0a |le \"'RE|ADME'\".|
|00002960| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00002970| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 52 45 |Extracti|ng \"'RE|
|00002980| 41 44 4d 45 27 5c 22 20 | 5c 28 32 32 36 34 20 63 |ADME'\" |\(2264 c|
|00002990| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|000029a0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 52 45 41 44 4d |"s/^X//"| >'READM|
|000029b0| 45 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |E' <<'EN|D_OF_FIL|
|000029c0| 45 27 0a 58 0a 58 41 20 | 63 68 65 61 70 2f 73 69 |E'.X.XA |cheap/si|
|000029d0| 6d 70 6c 65 2f 71 75 69 | 63 6b 2f 64 69 72 74 79 |mple/qui|ck/dirty|
|000029e0| 20 48 45 4c 50 20 66 61 | 63 69 6c 69 74 79 20 66 | HELP fa|cility f|
|000029f0| 6f 72 20 55 6e 69 78 2e | 0a 58 0a 58 54 68 65 20 |or Unix.|.X.XThe |
|00002a00| 6d 61 69 6e 74 61 69 6e | 65 72 20 6e 65 65 64 20 |maintain|er need |
|00002a10| 6f 6e 6c 79 20 61 64 64 | 20 22 2e 74 78 74 22 20 |only add| ".txt" |
|00002a20| 66 69 6c 65 73 20 77 69 | 74 68 20 74 68 65 20 70 |files wi|th the p|
|00002a30| 72 6f 70 65 72 20 6e 61 | 6d 65 0a 58 69 6e 20 74 |roper na|me.Xin t|
|00002a40| 68 65 20 70 72 6f 70 65 | 72 20 70 6c 61 63 65 20 |he prope|r place |
|00002a50| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 61 64 64 20 |in order| to add |
|00002a60| 68 65 6c 70 2d 62 6c 75 | 72 62 73 2e 20 20 49 74 |help-blu|rbs. It|
|00002a70| 20 68 61 73 20 68 69 65 | 72 61 72 63 68 69 61 6c | has hie|rarchial|
|00002a80| 0a 58 22 46 75 72 74 68 | 65 72 20 68 65 6c 70 20 |.X"Furth|er help |
|00002a90| 6f 6e 20 2e 2e 2e 22 20 | 69 6d 70 6c 65 6d 65 6e |on ..." |implemen|
|00002aa0| 74 65 64 20 62 79 20 74 | 68 65 20 68 69 65 72 61 |ted by t|he hiera|
|00002ab0| 72 63 68 69 61 6c 20 66 | 69 6c 65 20 73 74 72 75 |rchial f|ile stru|
|00002ac0| 63 74 75 72 65 0a 58 6f | 66 20 74 68 65 20 64 69 |cture.Xo|f the di|
|00002ad0| 72 65 63 74 6f 72 79 20 | 69 6e 20 77 68 69 63 68 |rectory |in which|
|00002ae0| 20 74 68 65 20 68 65 6c | 70 2d 66 69 6c 65 73 20 | the hel|p-files |
|00002af0| 6c 69 76 65 2e 20 41 6c | 73 6f 2c 20 74 68 65 20 |live. Al|so, the |
|00002b00| 6d 61 6e 2d 70 61 67 65 | 73 0a 58 61 72 65 20 61 |man-page|s.Xare a|
|00002b10| 76 61 69 6c 61 62 6c 65 | 20 66 72 6f 6d 20 77 69 |vailable| from wi|
|00002b20| 74 68 69 6e 20 74 68 65 | 20 66 61 63 69 6c 69 74 |thin the| facilit|
|00002b30| 79 2c 20 77 69 74 68 6f | 75 74 20 64 72 6f 70 70 |y, witho|ut dropp|
|00002b40| 69 6e 67 20 62 61 63 6b | 0a 58 74 6f 20 74 68 65 |ing back|.Xto the|
|00002b50| 20 73 68 65 6c 6c 20 6c | 65 76 65 6c 2e 0a 58 0a | shell l|evel..X.|
|00002b60| 58 54 77 6f 20 63 6f 6d | 70 69 6c 65 2d 74 69 6d |XTwo com|pile-tim|
|00002b70| 65 20 6f 70 74 69 6f 6e | 73 3a 20 53 59 53 56 20 |e option|s: SYSV |
|00002b80| 61 6e 64 20 4f 4c 44 44 | 49 52 2c 20 69 6e 20 74 |and OLDD|IR, in t|
|00002b90| 68 65 20 43 46 4c 41 47 | 53 3d 20 6c 69 6e 65 20 |he CFLAG|S= line |
|00002ba0| 0a 58 6f 66 20 74 68 65 | 20 4d 61 6b 65 66 69 6c |.Xof the| Makefil|
|00002bb0| 65 2e 0a 58 0a 58 54 6f | 20 6d 61 6b 65 3a 20 20 |e..X.XTo| make: |
|00002bc0| 6c 6f 6f 6b 20 61 74 20 | 74 68 65 20 66 69 72 73 |look at |the firs|
|00002bd0| 74 20 74 68 69 72 74 79 | 20 6f 72 20 73 6f 20 6c |t thirty| or so l|
|00002be0| 69 6e 65 73 20 6f 66 20 | 4d 61 6b 65 66 69 6c 65 |ines of |Makefile|
|00002bf0| 2e 0a 58 54 68 65 6e 20 | 6d 61 6b 65 2e 20 20 54 |..XThen |make. T|
|00002c00| 68 65 6e 20 6d 61 6b 65 | 20 69 6e 73 74 61 6c 6c |hen make| install|
|00002c10| 2e 0a 58 0a 58 49 74 20 | 68 61 73 20 62 65 65 6e |..X.XIt |has been|
|00002c20| 20 74 65 73 74 65 64 20 | 61 6e 64 20 77 6f 72 6b | tested |and work|
|00002c30| 73 20 6f 6e 3a 0a 58 31 | 29 20 20 53 65 71 75 65 |s on:.X1|) Seque|
|00002c40| 6e 74 20 44 79 6e 69 78 | 20 33 2e 30 2e 31 34 20 |nt Dynix| 3.0.14 |
|00002c50| 28 42 53 44 34 2e 32 20 | 6b 6e 6f 63 6b 6f 66 66 |(BSD4.2 |knockoff|
|00002c60| 29 2c 20 61 6e 64 0a 58 | 32 29 20 20 53 79 73 56 |), and.X|2) SysV|
|00002c70| 20 6f 6e 20 61 6e 20 41 | 54 26 54 20 36 33 38 36 | on an A|T&T 6386|
|00002c80| 20 62 6f 78 20 28 53 79 | 73 56 20 76 65 72 73 69 | box (Sy|sV versi|
|00002c90| 6f 6e 20 75 6e 6b 6e 6f | 77 6e 2c 20 62 75 74 20 |on unkno|wn, but |
|00002ca0| 69 74 20 0a 58 20 20 20 | 20 64 69 64 20 68 61 76 |it .X | did hav|
|00002cb0| 65 20 74 68 65 20 6e 65 | 77 2d 64 69 72 65 63 74 |e the ne|w-direct|
|00002cc0| 6f 72 79 20 67 6f 6f 64 | 69 65 73 29 2c 20 61 6e |ory good|ies), an|
|00002cd0| 64 0a 58 33 29 20 20 58 | 65 6e 69 78 20 6f 6e 20 |d.X3) X|enix on |
|00002ce0| 61 20 54 61 6e 64 79 20 | 62 6f 78 2e 20 20 4d 6f |a Tandy |box. Mo|
|00002cf0| 73 74 6c 79 20 53 79 73 | 56 2c 20 62 75 74 20 77 |stly Sys|V, but w|
|00002d00| 69 74 68 6f 75 74 20 74 | 68 65 20 64 69 72 65 63 |ithout t|he direc|
|00002d10| 74 6f 72 79 0a 58 20 20 | 20 20 67 6f 6f 64 69 65 |tory.X | goodie|
|00002d20| 73 2e 0a 58 0a 58 42 75 | 74 20 6f 6e 65 20 6e 6f |s..X.XBu|t one no|
|00002d30| 74 65 20 6f 66 20 77 61 | 72 6e 69 6e 67 3a 20 20 |te of wa|rning: |
|00002d40| 49 27 76 65 20 69 6e 63 | 6c 75 64 65 64 20 6d 79 |I've inc|luded my|
|00002d50| 20 22 53 65 71 75 65 6e | 74 20 77 69 74 68 20 63 | "Sequen|t with c|
|00002d60| 63 22 20 76 65 72 73 69 | 6f 6e 73 0a 58 6f 66 20 |c" versi|ons.Xof |
|00002d70| 63 62 72 65 61 6b 28 29 | 20 61 6e 64 20 6e 6f 63 |cbreak()| and noc|
|00002d80| 62 72 65 61 6b 28 29 2e | 20 20 54 68 65 79 20 6d |break().| They m|
|00002d90| 6f 73 74 20 6c 69 6b 65 | 6c 79 20 77 69 6c 6c 20 |ost like|ly will |
|00002da0| 6e 6f 74 20 77 6f 72 6b | 20 66 6f 72 20 79 6f 75 |not work| for you|
|00002db0| 2e 0a 58 54 68 65 79 20 | 64 6f 6e 27 74 20 65 76 |..XThey |don't ev|
|00002dc0| 65 6e 20 77 6f 72 6b 20 | 66 6f 72 20 6d 65 20 65 |en work |for me e|
|00002dd0| 76 65 6e 20 75 73 69 6e | 67 20 74 68 65 20 67 63 |ven usin|g the gc|
|00002de0| 63 20 63 6f 6d 70 69 6c | 65 72 2e 20 20 54 68 69 |c compil|er. Thi|
|00002df0| 73 20 69 73 0a 58 62 65 | 63 61 75 73 65 20 6f 66 |s is.Xbe|cause of|
|00002e00| 20 73 6f 6d 65 20 77 65 | 69 72 64 20 70 72 6f 70 | some we|ird prop|
|00002e10| 65 72 74 79 20 6f 66 20 | 74 68 65 20 63 63 20 70 |erty of |the cc p|
|00002e20| 72 65 70 72 6f 63 65 73 | 73 6f 72 20 64 65 61 6c |reproces|sor deal|
|00002e30| 69 6e 67 20 77 69 74 68 | 0a 58 54 49 4f 43 47 45 |ing with|.XTIOCGE|
|00002e40| 54 50 20 61 6e 64 20 54 | 49 4f 43 53 45 54 50 20 |TP and T|IOCSETP |
|00002e50| 6d 61 63 72 6f 73 2e 20 | 20 54 68 65 20 68 65 61 |macros. | The hea|
|00002e60| 64 65 72 20 66 69 6c 65 | 73 20 6d 61 6b 65 20 73 |der file|s make s|
|00002e70| 65 6e 64 6d 61 69 6c 2e | 63 66 20 6c 6f 6f 6b 0a |endmail.|cf look.|
|00002e80| 58 6c 69 6b 65 20 61 20 | 4d 63 47 75 66 66 65 79 |Xlike a |McGuffey|
|00002e90| 27 73 20 52 65 61 64 65 | 72 2e 20 20 49 66 20 79 |'s Reade|r. If y|
|00002ea0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 73 61 76 65 20 |ou want |to save |
|00002eb0| 79 6f 75 72 20 75 73 65 | 72 73 20 61 20 66 65 77 |your use|rs a few|
|00002ec0| 0a 58 6b 65 79 73 74 72 | 6f 6b 65 73 20 61 74 20 |.Xkeystr|okes at |
|00002ed0| 74 68 65 20 2d 2d 6d 6f | 72 65 2d 2d 20 70 72 6f |the --mo|re-- pro|
|00002ee0| 6d 70 74 2c 20 66 69 67 | 75 72 65 20 6f 75 74 20 |mpt, fig|ure out |
|00002ef0| 68 6f 77 20 74 6f 20 64 | 6f 20 69 74 20 6f 6e 20 |how to d|o it on |
|00002f00| 59 4f 55 52 0a 58 73 79 | 73 74 65 6d 2e 20 20 54 |YOUR.Xsy|stem. T|
|00002f10| 72 79 20 63 72 6d 6f 64 | 65 28 29 2c 20 65 74 63 |ry crmod|e(), etc|
|00002f20| 2e 2c 20 77 69 74 68 20 | 74 68 65 20 63 75 72 73 |., with |the curs|
|00002f30| 65 73 2f 74 65 72 6d 63 | 61 70 2f 74 65 72 6d 6c |es/termc|ap/terml|
|00002f40| 69 62 20 6c 69 62 72 61 | 72 69 65 73 2c 0a 58 69 |ib libra|ries,.Xi|
|00002f50| 66 20 79 6f 75 20 68 61 | 76 65 20 74 68 65 6d 2e |f you ha|ve them.|
|00002f60| 20 20 49 20 77 61 73 68 | 20 6d 79 20 68 61 6e 64 | I wash| my hand|
|00002f70| 73 20 6f 66 20 74 68 65 | 20 77 68 6f 6c 65 20 74 |s of the| whole t|
|00002f80| 68 69 6e 67 2e 20 20 54 | 68 65 20 22 65 61 74 0a |hing. T|he "eat.|
|00002f90| 58 75 6e 74 69 6c 20 6e | 65 77 6c 69 6e 65 22 20 |Xuntil n|ewline" |
|00002fa0| 6e 6f 63 62 72 65 61 6b | 28 29 20 49 20 73 65 6e |nocbreak|() I sen|
|00002fb0| 64 20 73 65 65 6d 73 20 | 74 6f 20 77 6f 72 6b 20 |d seems |to work |
|00002fc0| 6f 6b 2c 20 62 75 74 20 | 6e 6f 74 20 70 6c 65 61 |ok, but |not plea|
|00002fd0| 73 69 6e 67 2e 0a 58 0a | 58 59 6f 75 20 6d 61 79 |sing..X.|XYou may|
|00002fe0| 20 68 61 76 65 20 74 6f | 20 62 65 63 6f 6d 65 20 | have to| become |
|00002ff0| 72 6f 6f 74 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |root if |you want|
|00003000| 20 74 6f 20 69 6e 73 74 | 61 6c 6c 20 74 68 65 20 | to inst|all the |
|00003010| 65 78 65 63 75 74 61 62 | 6c 65 20 69 6e 0a 58 65 |executab|le in.Xe|
|00003020| 76 65 72 79 62 6f 64 79 | 27 73 20 70 61 74 68 3b |verybody|'s path;|
|00003030| 20 6f 74 68 65 72 77 69 | 73 65 20 6e 6f 20 62 69 | otherwi|se no bi|
|00003040| 67 20 64 65 61 6c 2e 20 | 20 54 68 65 20 64 61 74 |g deal. | The dat|
|00003050| 61 20 66 69 6c 65 73 20 | 63 61 6e 20 6c 69 76 65 |a files |can live|
|00003060| 0a 58 61 6e 79 77 68 65 | 72 65 20 79 6f 75 20 64 |.Xanywhe|re you d|
|00003070| 65 63 69 64 65 20 74 6f | 20 70 75 74 20 74 68 65 |ecide to| put the|
|00003080| 6d 2e 20 20 0a 58 0a 58 | 4e 2e 42 2e 3a 20 49 27 |m. .X.X|N.B.: I'|
|00003090| 6d 20 73 75 72 65 20 74 | 68 69 73 20 68 61 73 20 |m sure t|his has |
|000030a0| 62 65 65 6e 20 64 6f 6e | 65 20 73 6f 6d 65 77 68 |been don|e somewh|
|000030b0| 65 72 65 2c 20 73 6f 6d | 65 74 69 6d 65 2c 20 6d |ere, som|etime, m|
|000030c0| 61 6e 79 20 74 69 6d 65 | 73 0a 58 62 65 66 6f 72 |any time|s.Xbefor|
|000030d0| 65 2c 20 61 6e 64 20 63 | 61 6e 20 62 65 20 68 61 |e, and c|an be ha|
|000030e0| 64 20 6f 6e 20 73 6f 6d | 65 20 44 45 43 55 53 20 |d on som|e DECUS |
|000030f0| 74 61 70 65 20 6f 72 20 | 55 53 45 4e 49 58 20 74 |tape or |USENIX t|
|00003100| 61 70 65 20 6f 72 20 63 | 61 6e 20 62 65 0a 58 66 |ape or c|an be.Xf|
|00003110| 74 70 27 65 64 20 66 72 | 6f 6d 20 78 78 2e 78 78 |tp'ed fr|om xx.xx|
|00003120| 2e 78 78 2e 78 78 2c 20 | 65 74 63 2e 2c 20 62 75 |.xx.xx, |etc., bu|
|00003130| 74 20 77 68 61 74 20 74 | 68 65 20 68 65 63 6b 2c |t what t|he heck,|
|00003140| 20 68 65 72 65 20 69 74 | 20 69 73 2c 20 74 72 61 | here it| is, tra|
|00003150| 73 68 20 69 74 0a 58 69 | 66 20 69 74 27 73 20 77 |sh it.Xi|f it's w|
|00003160| 6f 72 74 68 6c 65 73 73 | 2c 20 74 68 65 20 70 72 |orthless|, the pr|
|00003170| 69 63 65 20 69 73 20 72 | 69 67 68 74 21 20 20 49 |ice is r|ight! I|
|00003180| 20 77 72 6f 74 65 20 69 | 74 20 62 65 63 61 75 73 | wrote i|t becaus|
|00003190| 65 20 49 20 64 69 64 6e | 27 74 0a 58 68 61 76 65 |e I didn|'t.Xhave|
|000031a0| 20 61 63 63 65 73 73 20 | 74 6f 20 73 61 69 64 20 | access |to said |
|000031b0| 73 6f 75 72 63 65 73 2c | 20 65 74 63 2e 2c 20 61 |sources,| etc., a|
|000031c0| 6e 64 20 62 65 73 69 64 | 65 73 2c 20 69 74 20 77 |nd besid|es, it w|
|000031d0| 61 73 20 66 75 6e 2e 20 | 20 50 75 62 6c 69 63 0a |as fun. | Public.|
|000031e0| 58 44 6f 6d 61 69 6e 2e | 20 20 6a 68 6e 20 2d 2d |XDomain.| jhn --|
|000031f0| 20 31 31 20 41 75 67 20 | 38 39 2e 0a 58 20 2d 2d | 11 Aug |89..X --|
|00003200| 20 0a 58 4a 69 6d 20 4e | 65 6c 73 6f 6e 2c 55 4e | .XJim N|elson,UN|
|00003210| 43 2d 57 69 6c 6d 69 6e | 67 74 6f 6e 2c 4d 61 74 |C-Wilmin|gton,Mat|
|00003220| 68 65 6d 61 74 69 63 61 | 6c 20 53 63 69 65 6e 63 |hematica|l Scienc|
|00003230| 65 73 20 44 65 70 74 2c | 0a 58 39 31 39 2d 33 39 |es Dept,|.X919-39|
|00003240| 35 2d 33 33 30 30 20 6e | 65 6c 73 6f 6e 40 75 6e |5-3300 n|elson@un|
|00003250| 63 77 2e 75 75 63 70 20 | 6f 72 20 6e 65 6c 73 6f |cw.uucp |or nelso|
|00003260| 6e 40 65 63 73 76 61 78 | 2e 75 6e 63 65 63 73 2e |n@ecsvax|.uncecs.|
|00003270| 65 64 75 20 6f 72 0a 58 | 6e 65 6c 73 6f 6e 40 65 |edu or.X|nelson@e|
|00003280| 63 73 76 61 78 2e 62 69 | 74 6e 65 74 20 6f 72 20 |csvax.bi|tnet or |
|00003290| 7b 2e 2e 2e 2c 6d 63 6e | 63 7d 21 65 63 73 76 61 |{...,mcn|c}!ecsva|
|000032a0| 78 21 6e 65 6c 73 6f 6e | 20 0a 58 6f 72 20 7b 2e |x!nelson| .Xor {.|
|000032b0| 2e 2e 2c 6d 63 6e 63 7d | 21 65 63 73 76 61 78 21 |..,mcnc}|!ecsvax!|
|000032c0| 75 6e 63 77 21 6e 65 6c | 73 6f 6e 0a 45 4e 44 5f |uncw!nel|son.END_|
|000032d0| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|000032e0| 32 32 36 34 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |2264 -ne| `wc -c |
|000032f0| 3c 27 52 45 41 44 4d 45 | 27 60 3b 20 74 68 65 6e |<'README|'`; then|
|00003300| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00003310| 5c 22 27 52 45 41 44 4d | 45 27 5c 22 20 75 6e 70 |\"'READM|E'\" unp|
|00003320| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00003330| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00003340| 6f 66 20 27 52 45 41 44 | 4d 45 27 0a 66 69 0a 69 |of 'READ|ME'.fi.i|
|00003350| 66 20 74 65 73 74 20 2d | 66 20 27 61 63 2e 74 78 |f test -|f 'ac.tx|
|00003360| 74 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |t' -a "$|{1}" != |
|00003370| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00003380| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00003390| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|000033a0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 61 63 2e 74 |ing file| \"'ac.t|
|000033b0| 78 74 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |xt'\".el|se.echo |
|000033c0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|000033d0| 20 5c 22 27 61 63 2e 74 | 78 74 27 5c 22 20 5c 28 | \"'ac.t|xt'\" \(|
|000033e0| 35 31 38 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |518 char|acters\)|
|000033f0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00003400| 61 63 2e 74 78 74 27 20 | 3c 3c 27 45 4e 44 5f 4f |ac.txt' |<<'END_O|
|00003410| 46 5f 46 49 4c 45 27 0a | 58 54 68 65 20 74 68 72 |F_FILE'.|XThe thr|
|00003420| 65 65 20 70 72 6f 67 72 | 61 6d 73 20 22 61 70 22 |ee progr|ams "ap"|
|00003430| 2c 20 22 61 63 22 2c 20 | 61 6e 64 20 22 61 66 22 |, "ac", |and "af"|
|00003440| 2c 20 61 72 65 20 73 6f | 6d 65 77 68 61 74 20 72 |, are so|mewhat r|
|00003450| 65 6d 69 6e 69 73 63 65 | 6e 74 0a 58 6f 66 20 50 |eminisce|nt.Xof P|
|00003460| 43 20 63 6f 6d 70 69 6c | 65 72 73 2c 20 69 6e 20 |C compil|ers, in |
|00003470| 74 68 61 74 20 74 68 65 | 79 20 77 69 6c 6c 20 63 |that the|y will c|
|00003480| 6f 6d 70 69 6c 65 2c 20 | 65 64 69 74 2c 20 63 6f |ompile, |edit, co|
|00003490| 6d 70 69 6c 65 2c 20 65 | 64 69 74 2c 0a 58 63 6f |mpile, e|dit,.Xco|
|000034a0| 6d 70 69 6c 65 2c 20 65 | 64 69 74 2c 20 2e 2e 2e |mpile, e|dit, ...|
|000034b0| 20 61 64 20 6e 61 75 73 | 65 61 6d 2c 20 77 69 74 | ad naus|eam, wit|
|000034c0| 68 6f 75 74 20 65 76 65 | 72 20 64 72 6f 70 70 69 |hout eve|r droppi|
|000034d0| 6e 67 20 79 6f 75 20 62 | 61 63 6b 20 74 6f 0a 58 |ng you b|ack to.X|
|000034e0| 74 68 65 20 73 68 65 6c | 6c 2e 20 20 54 68 65 79 |the shel|l. They|
|000034f0| 20 61 6c 73 6f 20 28 61 | 6e 64 20 68 65 72 65 20 | also (a|nd here |
|00003500| 69 73 20 74 68 65 69 72 | 20 75 73 65 66 75 6c 6e |is their| usefuln|
|00003510| 65 73 73 29 20 6d 65 72 | 67 65 20 79 6f 75 72 0a |ess) mer|ge your.|
|00003520| 58 65 72 72 6f 72 20 6d | 65 73 73 61 67 65 73 20 |Xerror m|essages |
|00003530| 62 61 63 6b 20 69 6e 74 | 6f 20 79 6f 75 72 20 73 |back int|o your s|
|00003540| 6f 75 72 63 65 20 66 69 | 6c 65 2c 20 6c 65 74 20 |ource fi|le, let |
|00003550| 79 6f 75 20 66 69 78 20 | 79 6f 75 72 0a 58 73 6f |you fix |your.Xso|
|00003560| 75 72 63 65 2c 20 61 6e | 64 20 74 68 65 6e 20 72 |urce, an|d then r|
|00003570| 65 6d 6f 76 65 20 74 68 | 65 20 6d 65 73 73 61 67 |emove th|e messag|
|00003580| 65 73 2c 20 61 6c 6c 20 | 62 79 20 62 6c 61 63 6b |es, all |by black|
|00003590| 20 6d 61 67 69 63 21 20 | 20 41 75 74 68 6f 72 65 | magic! | Authore|
|000035a0| 64 0a 58 62 79 20 44 72 | 2e 20 44 6f 6f 6d 20 69 |d.Xby Dr|. Doom i|
|000035b0| 6e 20 72 65 73 70 6f 6e | 73 65 20 74 6f 20 74 68 |n respon|se to th|
|000035c0| 65 20 74 68 65 20 22 64 | 72 61 77 20 61 20 6c 69 |e the "d|raw a li|
|000035d0| 74 74 6c 65 20 68 61 6e | 64 20 77 69 74 68 20 61 |ttle han|d with a|
|000035e0| 20 66 69 6e 67 65 72 0a | 58 70 6f 69 6e 74 69 6e | finger.|Xpointin|
|000035f0| 67 20 74 6f 20 74 68 65 | 20 6d 69 73 74 61 6b 65 |g to the| mistake|
|00003600| 22 20 73 79 6e 64 72 6f | 6d 65 20 6f 66 20 73 6f |" syndro|me of so|
|00003610| 6d 65 20 70 6f 70 75 6c | 61 72 20 63 6f 6d 70 75 |me popul|ar compu|
|00003620| 74 65 72 73 2e 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |ters..EN|D_OF_FIL|
|00003630| 45 0a 69 66 20 74 65 73 | 74 20 35 31 38 20 2d 6e |E.if tes|t 518 -n|
|00003640| 65 20 60 77 63 20 2d 63 | 20 3c 27 61 63 2e 74 78 |e `wc -c| <'ac.tx|
|00003650| 74 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |t'`; the|n. ec|
|00003660| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 61 63 2e 74 |ho shar:| \"'ac.t|
|00003670| 78 74 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |xt'\" un|packed w|
|00003680| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00003690| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 61 63 2e |fi.# end| of 'ac.|
|000036a0| 74 78 74 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |txt'.fi.|if test |
|000036b0| 2d 66 20 27 61 66 2e 74 | 78 74 27 20 2d 61 20 22 |-f 'af.t|xt' -a "|
|000036c0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|000036d0| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|000036e0| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|000036f0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00003700| 65 20 5c 22 27 61 66 2e | 74 78 74 27 5c 22 0a 65 |e \"'af.|txt'\".e|
|00003710| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00003720| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 61 66 2e |xtractin|g \"'af.|
|00003730| 74 78 74 27 5c 22 20 5c | 28 35 31 38 20 63 68 61 |txt'\" \|(518 cha|
|00003740| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00003750| 2f 5e 58 2f 2f 22 20 3e | 27 61 66 2e 74 78 74 27 |/^X//" >|'af.txt'|
|00003760| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00003770| 0a 58 54 68 65 20 74 68 | 72 65 65 20 70 72 6f 67 |.XThe th|ree prog|
|00003780| 72 61 6d 73 20 22 61 70 | 22 2c 20 22 61 63 22 2c |rams "ap|", "ac",|
|00003790| 20 61 6e 64 20 22 61 66 | 22 2c 20 61 72 65 20 73 | and "af|", are s|
|000037a0| 6f 6d 65 77 68 61 74 20 | 72 65 6d 69 6e 69 73 63 |omewhat |reminisc|
|000037b0| 65 6e 74 0a 58 6f 66 20 | 50 43 20 63 6f 6d 70 69 |ent.Xof |PC compi|
|000037c0| 6c 65 72 73 2c 20 69 6e | 20 74 68 61 74 20 74 68 |lers, in| that th|
|000037d0| 65 79 20 77 69 6c 6c 20 | 63 6f 6d 70 69 6c 65 2c |ey will |compile,|
|000037e0| 20 65 64 69 74 2c 20 63 | 6f 6d 70 69 6c 65 2c 20 | edit, c|ompile, |
|000037f0| 65 64 69 74 2c 0a 58 63 | 6f 6d 70 69 6c 65 2c 20 |edit,.Xc|ompile, |
|00003800| 65 64 69 74 2c 20 2e 2e | 2e 20 61 64 20 6e 61 75 |edit, ..|. ad nau|
|00003810| 73 65 61 6d 2c 20 77 69 | 74 68 6f 75 74 20 65 76 |seam, wi|thout ev|
|00003820| 65 72 20 64 72 6f 70 70 | 69 6e 67 20 79 6f 75 20 |er dropp|ing you |
|00003830| 62 61 63 6b 20 74 6f 0a | 58 74 68 65 20 73 68 65 |back to.|Xthe she|
|00003840| 6c 6c 2e 20 20 54 68 65 | 79 20 61 6c 73 6f 20 28 |ll. The|y also (|
|00003850| 61 6e 64 20 68 65 72 65 | 20 69 73 20 74 68 65 69 |and here| is thei|
|00003860| 72 20 75 73 65 66 75 6c | 6e 65 73 73 29 20 6d 65 |r useful|ness) me|
|00003870| 72 67 65 20 79 6f 75 72 | 0a 58 65 72 72 6f 72 20 |rge your|.Xerror |
|00003880| 6d 65 73 73 61 67 65 73 | 20 62 61 63 6b 20 69 6e |messages| back in|
|00003890| 74 6f 20 79 6f 75 72 20 | 73 6f 75 72 63 65 20 66 |to your |source f|
|000038a0| 69 6c 65 2c 20 6c 65 74 | 20 79 6f 75 20 66 69 78 |ile, let| you fix|
|000038b0| 20 79 6f 75 72 0a 58 73 | 6f 75 72 63 65 2c 20 61 | your.Xs|ource, a|
|000038c0| 6e 64 20 74 68 65 6e 20 | 72 65 6d 6f 76 65 20 74 |nd then |remove t|
|000038d0| 68 65 20 6d 65 73 73 61 | 67 65 73 2c 20 61 6c 6c |he messa|ges, all|
|000038e0| 20 62 79 20 62 6c 61 63 | 6b 20 6d 61 67 69 63 21 | by blac|k magic!|
|000038f0| 20 20 41 75 74 68 6f 72 | 65 64 0a 58 62 79 20 44 | Author|ed.Xby D|
|00003900| 72 2e 20 44 6f 6f 6d 20 | 69 6e 20 72 65 73 70 6f |r. Doom |in respo|
|00003910| 6e 73 65 20 74 6f 20 74 | 68 65 20 74 68 65 20 22 |nse to t|he the "|
|00003920| 64 72 61 77 20 61 20 6c | 69 74 74 6c 65 20 68 61 |draw a l|ittle ha|
|00003930| 6e 64 20 77 69 74 68 20 | 61 20 66 69 6e 67 65 72 |nd with |a finger|
|00003940| 0a 58 70 6f 69 6e 74 69 | 6e 67 20 74 6f 20 74 68 |.Xpointi|ng to th|
|00003950| 65 20 6d 69 73 74 61 6b | 65 22 20 73 79 6e 64 72 |e mistak|e" syndr|
|00003960| 6f 6d 65 20 6f 66 20 73 | 6f 6d 65 20 70 6f 70 75 |ome of s|ome popu|
|00003970| 6c 61 72 20 63 6f 6d 70 | 75 74 65 72 73 2e 0a 45 |lar comp|uters..E|
|00003980| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|00003990| 73 74 20 35 31 38 20 2d | 6e 65 20 60 77 63 20 2d |st 518 -|ne `wc -|
|000039a0| 63 20 3c 27 61 66 2e 74 | 78 74 27 60 3b 20 74 68 |c <'af.t|xt'`; th|
|000039b0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000039c0| 3a 20 5c 22 27 61 66 2e | 74 78 74 27 5c 22 20 75 |: \"'af.|txt'\" u|
|000039d0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000039e0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|000039f0| 64 20 6f 66 20 27 61 66 | 2e 74 78 74 27 0a 66 69 |d of 'af|.txt'.fi|
|00003a00| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 61 70 2e |.if test| -f 'ap.|
|00003a10| 74 78 74 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |txt' -a |"${1}" !|
|00003a20| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00003a30| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00003a40| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00003a50| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 61 70 |sting fi|le \"'ap|
|00003a60| 2e 74 78 74 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |.txt'\".|else.ech|
|00003a70| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00003a80| 6e 67 20 5c 22 27 61 70 | 2e 74 78 74 27 5c 22 20 |ng \"'ap|.txt'\" |
|00003a90| 5c 28 35 31 38 20 63 68 | 61 72 61 63 74 65 72 73 |\(518 ch|aracters|
|00003aa0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00003ab0| 3e 27 61 70 2e 74 78 74 | 27 20 3c 3c 27 45 4e 44 |>'ap.txt|' <<'END|
|00003ac0| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 54 68 65 20 74 |_OF_FILE|'.XThe t|
|00003ad0| 68 72 65 65 20 70 72 6f | 67 72 61 6d 73 20 22 61 |hree pro|grams "a|
|00003ae0| 70 22 2c 20 22 61 63 22 | 2c 20 61 6e 64 20 22 61 |p", "ac"|, and "a|
|00003af0| 66 22 2c 20 61 72 65 20 | 73 6f 6d 65 77 68 61 74 |f", are |somewhat|
|00003b00| 20 72 65 6d 69 6e 69 73 | 63 65 6e 74 0a 58 6f 66 | reminis|cent.Xof|
|00003b10| 20 50 43 20 63 6f 6d 70 | 69 6c 65 72 73 2c 20 69 | PC comp|ilers, i|
|00003b20| 6e 20 74 68 61 74 20 74 | 68 65 79 20 77 69 6c 6c |n that t|hey will|
|00003b30| 20 63 6f 6d 70 69 6c 65 | 2c 20 65 64 69 74 2c 20 | compile|, edit, |
|00003b40| 63 6f 6d 70 69 6c 65 2c | 20 65 64 69 74 2c 0a 58 |compile,| edit,.X|
|00003b50| 63 6f 6d 70 69 6c 65 2c | 20 65 64 69 74 2c 20 2e |compile,| edit, .|
|00003b60| 2e 2e 20 61 64 20 6e 61 | 75 73 65 61 6d 2c 20 77 |.. ad na|useam, w|
|00003b70| 69 74 68 6f 75 74 20 65 | 76 65 72 20 64 72 6f 70 |ithout e|ver drop|
|00003b80| 70 69 6e 67 20 79 6f 75 | 20 62 61 63 6b 20 74 6f |ping you| back to|
|00003b90| 0a 58 74 68 65 20 73 68 | 65 6c 6c 2e 20 20 54 68 |.Xthe sh|ell. Th|
|00003ba0| 65 79 20 61 6c 73 6f 20 | 28 61 6e 64 20 68 65 72 |ey also |(and her|
|00003bb0| 65 20 69 73 20 74 68 65 | 69 72 20 75 73 65 66 75 |e is the|ir usefu|
|00003bc0| 6c 6e 65 73 73 29 20 6d | 65 72 67 65 20 79 6f 75 |lness) m|erge you|
|00003bd0| 72 0a 58 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |r.Xerror| message|
|00003be0| 73 20 62 61 63 6b 20 69 | 6e 74 6f 20 79 6f 75 72 |s back i|nto your|
|00003bf0| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 2c 20 6c 65 | source |file, le|
|00003c00| 74 20 79 6f 75 20 66 69 | 78 20 79 6f 75 72 0a 58 |t you fi|x your.X|
|00003c10| 73 6f 75 72 63 65 2c 20 | 61 6e 64 20 74 68 65 6e |source, |and then|
|00003c20| 20 72 65 6d 6f 76 65 20 | 74 68 65 20 6d 65 73 73 | remove |the mess|
|00003c30| 61 67 65 73 2c 20 61 6c | 6c 20 62 79 20 62 6c 61 |ages, al|l by bla|
|00003c40| 63 6b 20 6d 61 67 69 63 | 21 20 20 41 75 74 68 6f |ck magic|! Autho|
|00003c50| 72 65 64 0a 58 62 79 20 | 44 72 2e 20 44 6f 6f 6d |red.Xby |Dr. Doom|
|00003c60| 20 69 6e 20 72 65 73 70 | 6f 6e 73 65 20 74 6f 20 | in resp|onse to |
|00003c70| 74 68 65 20 74 68 65 20 | 22 64 72 61 77 20 61 20 |the the |"draw a |
|00003c80| 6c 69 74 74 6c 65 20 68 | 61 6e 64 20 77 69 74 68 |little h|and with|
|00003c90| 20 61 20 66 69 6e 67 65 | 72 0a 58 70 6f 69 6e 74 | a finge|r.Xpoint|
|00003ca0| 69 6e 67 20 74 6f 20 74 | 68 65 20 6d 69 73 74 61 |ing to t|he mista|
|00003cb0| 6b 65 22 20 73 79 6e 64 | 72 6f 6d 65 20 6f 66 20 |ke" synd|rome of |
|00003cc0| 73 6f 6d 65 20 70 6f 70 | 75 6c 61 72 20 63 6f 6d |some pop|ular com|
|00003cd0| 70 75 74 65 72 73 2e 0a | 45 4e 44 5f 4f 46 5f 46 |puters..|END_OF_F|
|00003ce0| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 35 31 38 20 |ILE.if t|est 518 |
|00003cf0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 61 70 2e |-ne `wc |-c <'ap.|
|00003d00| 74 78 74 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |txt'`; t|hen. |
|00003d10| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 61 70 |echo sha|r: \"'ap|
|00003d20| 2e 74 78 74 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |.txt'\" |unpacked|
|00003d30| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00003d40| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 61 |!.fi.# e|nd of 'a|
|00003d50| 70 2e 74 78 74 27 0a 66 | 69 0a 69 66 20 74 65 73 |p.txt'.f|i.if tes|
|00003d60| 74 20 2d 66 20 27 61 70 | 72 6f 70 6f 73 2e 74 78 |t -f 'ap|ropos.tx|
|00003d70| 74 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |t' -a "$|{1}" != |
|00003d80| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00003d90| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00003da0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00003db0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 61 70 72 6f |ing file| \"'apro|
|00003dc0| 70 6f 73 2e 74 78 74 27 | 5c 22 0a 65 6c 73 65 0a |pos.txt'|\".else.|
|00003dd0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00003de0| 63 74 69 6e 67 20 5c 22 | 27 61 70 72 6f 70 6f 73 |cting \"|'apropos|
|00003df0| 2e 74 78 74 27 5c 22 20 | 5c 28 31 35 31 20 63 68 |.txt'\" |\(151 ch|
|00003e00| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00003e10| 73 2f 5e 58 2f 2f 22 20 | 3e 27 61 70 72 6f 70 6f |s/^X//" |>'apropo|
|00003e20| 73 2e 74 78 74 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |s.txt' <|<'END_OF|
|00003e30| 5f 46 49 4c 45 27 0a 58 | 41 70 72 6f 70 6f 73 20 |_FILE'.X|Apropos |
|00003e40| 77 69 6c 6c 20 73 65 61 | 72 63 68 20 74 68 65 20 |will sea|rch the |
|00003e50| 74 69 74 6c 65 20 6c 69 | 6e 65 73 20 6f 66 20 74 |title li|nes of t|
|00003e60| 68 65 20 6d 61 6e 75 61 | 6c 20 70 61 67 65 73 20 |he manua|l pages |
|00003e70| 6c 6f 6f 6b 69 6e 67 0a | 58 66 6f 72 20 61 20 6b |looking.|Xfor a k|
|00003e80| 65 79 77 6f 72 64 2e 20 | 20 49 74 20 77 69 6c 6c |eyword. | It will|
|00003e90| 20 74 68 65 6e 20 74 65 | 6c 6c 20 79 6f 75 20 74 | then te|ll you t|
|00003ea0| 68 6f 73 65 20 63 6f 6d | 6d 61 6e 64 73 20 77 68 |hose com|mands wh|
|00003eb0| 69 63 68 20 61 72 65 0a | 58 66 6f 75 6e 64 2e 20 |ich are.|Xfound. |
|00003ec0| 20 53 65 65 20 61 6c 73 | 6f 20 22 6d 61 6e 22 2e | See als|o "man".|
|00003ed0| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|00003ee0| 74 65 73 74 20 31 35 31 | 20 2d 6e 65 20 60 77 63 |test 151| -ne `wc|
|00003ef0| 20 2d 63 20 3c 27 61 70 | 72 6f 70 6f 73 2e 74 78 | -c <'ap|ropos.tx|
|00003f00| 74 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |t'`; the|n. ec|
|00003f10| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 61 70 72 6f |ho shar:| \"'apro|
|00003f20| 70 6f 73 2e 74 78 74 27 | 5c 22 20 75 6e 70 61 63 |pos.txt'|\" unpac|
|00003f30| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00003f40| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00003f50| 20 27 61 70 72 6f 70 6f | 73 2e 74 78 74 27 0a 66 | 'apropo|s.txt'.f|
|00003f60| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 62 79 |i.if tes|t -f 'by|
|00003f70| 65 2e 74 78 74 27 20 2d | 61 20 22 24 7b 31 7d 22 |e.txt' -|a "${1}"|
|00003f80| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00003f90| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00003fa0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00003fb0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00003fc0| 62 79 65 2e 74 78 74 27 | 5c 22 0a 65 6c 73 65 0a |bye.txt'|\".else.|
|00003fd0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00003fe0| 63 74 69 6e 67 20 5c 22 | 27 62 79 65 2e 74 78 74 |cting \"|'bye.txt|
|00003ff0| 27 5c 22 20 5c 28 32 37 | 33 20 63 68 61 72 61 63 |'\" \(27|3 charac|
|00004000| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00004010| 2f 2f 22 20 3e 27 62 79 | 65 2e 74 78 74 27 20 3c |//" >'by|e.txt' <|
|00004020| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00004030| 59 6f 75 20 6c 6f 67 20 | 6f 66 66 20 74 68 65 20 |You log |off the |
|00004040| 55 6e 69 78 20 6d 61 63 | 68 69 6e 65 73 20 62 79 |Unix mac|hines by|
|00004050| 20 74 79 70 69 6e 67 20 | 63 6f 6e 74 72 6f 6c 2d | typing |control-|
|00004060| 64 20 61 74 20 74 68 65 | 0a 58 63 6f 6d 6d 61 6e |d at the|.Xcomman|
|00004070| 64 20 6c 69 6e 65 20 70 | 72 6f 6d 70 74 2e 20 20 |d line p|rompt. |
|00004080| 28 54 6f 20 74 79 70 65 | 20 63 6f 6e 74 72 6f 6c |(To type| control|
|00004090| 2d 64 2c 20 79 6f 75 20 | 48 4f 4c 44 20 44 4f 57 |-d, you |HOLD DOW|
|000040a0| 4e 20 74 68 65 0a 58 22 | 63 6f 6e 74 72 6f 6c 22 |N the.X"|control"|
|000040b0| 20 6b 65 79 20 57 48 49 | 4c 45 20 74 79 70 69 6e | key WHI|LE typin|
|000040c0| 67 20 22 64 22 3b 20 74 | 68 69 73 20 69 73 20 6e |g "d"; t|his is n|
|000040d0| 6f 74 20 61 20 74 77 6f | 2d 73 74 72 6f 6b 65 0a |ot a two|-stroke.|
|000040e0| 58 73 65 71 75 65 6e 63 | 65 20 2d 2d 20 69 74 27 |Xsequenc|e -- it'|
|000040f0| 73 20 61 20 6f 6e 65 2d | 6b 65 79 73 74 72 6f 6b |s a one-|keystrok|
|00004100| 65 20 73 65 71 75 65 6e | 63 65 20 6d 61 64 65 20 |e sequen|ce made |
|00004110| 62 79 20 68 6f 6c 64 69 | 6e 67 0a 58 64 6f 77 6e |by holdi|ng.Xdown|
|00004120| 20 74 68 65 20 66 69 72 | 73 74 20 77 68 69 6c 65 | the fir|st while|
|00004130| 20 74 79 70 69 6e 67 20 | 74 68 65 20 73 65 63 6f | typing |the seco|
|00004140| 6e 64 29 2e 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |nd)..END|_OF_FILE|
|00004150| 0a 69 66 20 74 65 73 74 | 20 32 37 33 20 2d 6e 65 |.if test| 273 -ne|
|00004160| 20 60 77 63 20 2d 63 20 | 3c 27 62 79 65 2e 74 78 | `wc -c |<'bye.tx|
|00004170| 74 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |t'`; the|n. ec|
|00004180| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 62 79 65 2e |ho shar:| \"'bye.|
|00004190| 74 78 74 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |txt'\" u|npacked |
|000041a0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000041b0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 62 79 |.fi.# en|d of 'by|
|000041c0| 65 2e 74 78 74 27 0a 66 | 69 0a 69 66 20 74 65 73 |e.txt'.f|i.if tes|
|000041d0| 74 20 2d 66 20 27 63 61 | 74 2e 74 78 74 27 20 2d |t -f 'ca|t.txt' -|
|000041e0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000041f0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00004200| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00004210| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00004220| 66 69 6c 65 20 5c 22 27 | 63 61 74 2e 74 78 74 27 |file \"'|cat.txt'|
|00004230| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00004240| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00004250| 27 63 61 74 2e 74 78 74 | 27 5c 22 20 5c 28 32 31 |'cat.txt|'\" \(21|
|00004260| 32 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |2 charac|ters\).s|
|00004270| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 63 61 |ed "s/^X|//" >'ca|
|00004280| 74 2e 74 78 74 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |t.txt' <|<'END_OF|
|00004290| 5f 46 49 4c 45 27 0a 58 | 54 68 65 20 70 72 6f 67 |_FILE'.X|The prog|
|000042a0| 72 61 6d 20 74 6f 20 22 | 63 6f 6e 63 61 74 65 6e |ram to "|concaten|
|000042b0| 61 74 65 22 20 6d 75 6c | 74 69 70 6c 65 20 66 69 |ate" mul|tiple fi|
|000042c0| 6c 65 73 20 69 73 20 63 | 61 6c 6c 65 64 20 22 63 |les is c|alled "c|
|000042d0| 61 74 22 2e 0a 58 55 73 | 61 67 65 3a 0a 58 24 20 |at"..XUs|age:.X$ |
|000042e0| 63 61 74 20 66 69 6c 65 | 31 20 66 69 6c 65 32 20 |cat file|1 file2 |
|000042f0| 66 69 6c 65 33 20 2e 2e | 2e 20 3e 20 6f 75 74 70 |file3 ..|. > outp|
|00004300| 75 74 66 69 6c 65 0a 58 | 0a 58 42 65 20 63 61 72 |utfile.X|.XBe car|
|00004310| 65 66 75 6c 20 74 68 61 | 74 20 22 6f 75 74 70 75 |eful tha|t "outpu|
|00004320| 74 66 69 6c 65 22 20 69 | 73 20 6e 6f 74 20 74 68 |tfile" i|s not th|
|00004330| 65 20 73 61 6d 65 20 61 | 73 20 61 6e 79 20 6f 66 |e same a|s any of|
|00004340| 20 74 68 65 20 6f 74 68 | 65 72 0a 58 66 69 6c 65 | the oth|er.Xfile|
|00004350| 73 2e 20 20 49 66 20 69 | 74 20 69 73 2c 20 69 74 |s. If i|t is, it|
|00004360| 20 77 69 6c 6c 20 62 65 | 20 4c 4f 53 54 21 21 0a | will be| LOST!!.|
|00004370| 58 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |X.END_OF|_FILE.if|
|00004380| 20 74 65 73 74 20 32 31 | 32 20 2d 6e 65 20 60 77 | test 21|2 -ne `w|
|00004390| 63 20 2d 63 20 3c 27 63 | 61 74 2e 74 78 74 27 60 |c -c <'c|at.txt'`|
|000043a0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000043b0| 73 68 61 72 3a 20 5c 22 | 27 63 61 74 2e 74 78 74 |shar: \"|'cat.txt|
|000043c0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000043d0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|000043e0| 0a 23 20 65 6e 64 20 6f | 66 20 27 63 61 74 2e 74 |.# end o|f 'cat.t|
|000043f0| 78 74 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |xt'.fi.i|f test -|
|00004400| 66 20 27 63 62 72 65 61 | 6b 2e 63 27 20 2d 61 20 |f 'cbrea|k.c' -a |
|00004410| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00004420| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00004430| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00004440| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00004450| 6c 65 20 5c 22 27 63 62 | 72 65 61 6b 2e 63 27 5c |le \"'cb|reak.c'\|
|00004460| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00004470| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00004480| 63 62 72 65 61 6b 2e 63 | 27 5c 22 20 5c 28 34 39 |cbreak.c|'\" \(49|
|00004490| 30 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |0 charac|ters\).s|
|000044a0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 63 62 |ed "s/^X|//" >'cb|
|000044b0| 72 65 61 6b 2e 63 27 20 | 3c 3c 27 45 4e 44 5f 4f |reak.c' |<<'END_O|
|000044c0| 46 5f 46 49 4c 45 27 0a | 58 23 69 66 64 65 66 20 |F_FILE'.|X#ifdef |
|000044d0| 73 65 71 75 65 6e 74 0a | 58 23 69 6e 63 6c 75 64 |sequent.|X#includ|
|000044e0| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0a 58 23 69 6e |e <stdio|.h>.X#in|
|000044f0| 63 6c 75 64 65 20 3c 73 | 67 74 74 79 2e 68 3e 0a |clude <s|gtty.h>.|
|00004500| 58 0a 58 63 62 72 65 61 | 6b 28 29 0a 58 7b 0a 58 |X.Xcbrea|k().X{.X|
|00004510| 09 69 6e 74 20 69 3b 0a | 58 09 65 78 74 65 72 6e |.int i;.|X.extern|
|00004520| 20 69 6e 74 20 65 72 72 | 6e 6f 3b 0a 58 09 73 74 | int err|no;.X.st|
|00004530| 72 75 63 74 20 73 67 74 | 74 79 62 20 74 74 79 73 |ruct sgt|tyb ttys|
|00004540| 74 61 74 75 73 3b 0a 58 | 09 63 68 61 72 20 2a 61 |tatus;.X|.char *a|
|00004550| 3b 0a 58 09 2f 2a 20 69 | 74 20 69 73 20 73 65 65 |;.X./* i|t is see|
|00004560| 6d 69 6e 67 6c 79 20 69 | 6d 70 6f 73 73 69 62 6c |mingly i|mpossibl|
|00004570| 65 20 74 6f 20 67 65 74 | 20 6c 69 6e 74 20 74 6f |e to get| lint to|
|00004580| 20 73 68 75 74 0a 58 09 | 75 70 20 61 62 6f 75 74 | shut.X.|up about|
|00004590| 20 74 68 69 73 3a 20 2a | 2f 0a 58 09 61 3d 20 26 | this: *|/.X.a= &|
|000045a0| 74 74 79 73 74 61 74 75 | 73 2e 73 67 5f 69 73 70 |ttystatu|s.sg_isp|
|000045b0| 65 65 64 3b 0a 58 09 65 | 72 72 6e 6f 3d 30 3b 0a |eed;.X.e|rrno=0;.|
|000045c0| 58 09 69 3d 69 6f 63 74 | 6c 28 30 2c 54 49 4f 43 |X.i=ioct|l(0,TIOC|
|000045d0| 47 45 54 50 2c 61 29 3b | 0a 58 09 69 66 28 69 3c |GETP,a);|.X.if(i<|
|000045e0| 30 29 0a 58 09 7b 69 6e | 74 20 6d 65 3b 6d 65 3d |0).X.{in|t me;me=|
|000045f0| 65 72 72 6e 6f 3b 66 70 | 72 69 6e 74 66 28 73 74 |errno;fp|rintf(st|
|00004600| 64 65 72 72 2c 22 65 72 | 72 6e 6f 20 25 64 5c 6e |derr,"er|rno %d\n|
|00004610| 22 2c 6d 65 29 3b 65 78 | 69 74 28 33 29 3b 7d 0a |",me);ex|it(3);}.|
|00004620| 58 0a 58 23 64 65 66 69 | 6e 65 20 46 09 74 74 79 |X.X#defi|ne F.tty|
|00004630| 73 74 61 74 75 73 2e 73 | 67 5f 66 6c 61 67 73 0a |status.s|g_flags.|
|00004640| 58 09 46 20 7c 3d 20 43 | 42 52 45 41 4b 3b 0a 58 |X.F |= C|BREAK;.X|
|00004650| 09 69 3d 69 6f 63 74 6c | 28 30 2c 54 49 4f 43 53 |.i=ioctl|(0,TIOCS|
|00004660| 45 54 50 2c 61 29 3b 0a | 58 09 69 66 28 69 3c 30 |ETP,a);.|X.if(i<0|
|00004670| 29 0a 58 09 7b 69 6e 74 | 20 6d 65 3b 6d 65 3d 65 |).X.{int| me;me=e|
|00004680| 72 72 6e 6f 3b 66 70 72 | 69 6e 74 66 28 73 74 64 |rrno;fpr|intf(std|
|00004690| 65 72 72 2c 22 65 72 72 | 6e 6f 20 25 64 5c 6e 22 |err,"err|no %d\n"|
|000046a0| 2c 6d 65 29 3b 65 78 69 | 74 28 34 29 3b 7d 0a 58 |,me);exi|t(4);}.X|
|000046b0| 7d 0a 58 23 65 6c 73 65 | 0a 58 63 62 72 65 61 6b |}.X#else|.Xcbreak|
|000046c0| 28 29 7b 7d 0a 58 23 65 | 6e 64 69 66 0a 45 4e 44 |(){}.X#e|ndif.END|
|000046d0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000046e0| 20 34 39 30 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 | 490 -ne| `wc -c |
|000046f0| 3c 27 63 62 72 65 61 6b | 2e 63 27 60 3b 20 74 68 |<'cbreak|.c'`; th|
|00004700| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00004710| 3a 20 5c 22 27 63 62 72 | 65 61 6b 2e 63 27 5c 22 |: \"'cbr|eak.c'\"|
|00004720| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00004730| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00004740| 65 6e 64 20 6f 66 20 27 | 63 62 72 65 61 6b 2e 63 |end of '|cbreak.c|
|00004750| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00004760| 27 63 63 2e 74 78 74 27 | 20 2d 61 20 22 24 7b 31 |'cc.txt'| -a "${1|
|00004770| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00004780| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00004790| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|000047a0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000047b0| 22 27 63 63 2e 74 78 74 | 27 5c 22 0a 65 6c 73 65 |"'cc.txt|'\".else|
|000047c0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|000047d0| 61 63 74 69 6e 67 20 5c | 22 27 63 63 2e 74 78 74 |acting \|"'cc.txt|
|000047e0| 27 5c 22 20 5c 28 31 35 | 35 20 63 68 61 72 61 63 |'\" \(15|5 charac|
|000047f0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00004800| 2f 2f 22 20 3e 27 63 63 | 2e 74 78 74 27 20 3c 3c |//" >'cc|.txt' <<|
|00004810| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 54 |'END_OF_|FILE'.XT|
|00004820| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 74 6f 20 63 6f |he comma|nd to co|
|00004830| 6d 70 69 6c 65 20 61 20 | 43 2d 6c 61 6e 67 75 61 |mpile a |C-langua|
|00004840| 67 65 20 70 72 6f 67 72 | 61 6d 20 69 73 0a 58 24 |ge progr|am is.X$|
|00004850| 20 63 63 20 66 69 6c 65 | 6e 61 6d 65 2e 63 0a 58 | cc file|name.c.X|
|00004860| 54 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 65 78 |The resu|lting ex|
|00004870| 65 63 75 74 61 62 6c 65 | 20 77 69 6c 6c 20 62 65 |ecutable| will be|
|00004880| 20 6c 65 66 74 20 69 6e | 20 22 61 2e 6f 75 74 22 | left in| "a.out"|
|00004890| 20 69 6e 20 79 6f 75 72 | 20 64 69 72 65 63 74 6f | in your| directo|
|000048a0| 72 79 2e 0a 58 54 6f 20 | 72 75 6e 20 69 74 2c 20 |ry..XTo |run it, |
|000048b0| 74 79 70 65 0a 58 24 20 | 61 2e 6f 75 74 0a 45 4e |type.X$ |a.out.EN|
|000048c0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|000048d0| 74 20 31 35 35 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 155 -n|e `wc -c|
|000048e0| 20 3c 27 63 63 2e 74 78 | 74 27 60 3b 20 74 68 65 | <'cc.tx|t'`; the|
|000048f0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00004900| 20 5c 22 27 63 63 2e 74 | 78 74 27 5c 22 20 75 6e | \"'cc.t|xt'\" un|
|00004910| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00004920| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00004930| 20 6f 66 20 27 63 63 2e | 74 78 74 27 0a 66 69 0a | of 'cc.|txt'.fi.|
|00004940| 69 66 20 74 65 73 74 20 | 2d 66 20 27 63 64 2e 74 |if test |-f 'cd.t|
|00004950| 78 74 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |xt' -a "|${1}" !=|
|00004960| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00004970| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00004980| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00004990| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 63 64 2e |ting fil|e \"'cd.|
|000049a0| 74 78 74 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |txt'\".e|lse.echo|
|000049b0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000049c0| 67 20 5c 22 27 63 64 2e | 74 78 74 27 5c 22 20 5c |g \"'cd.|txt'\" \|
|000049d0| 28 32 36 39 20 63 68 61 | 72 61 63 74 65 72 73 5c |(269 cha|racters\|
|000049e0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|000049f0| 27 63 64 2e 74 78 74 27 | 20 3c 3c 27 45 4e 44 5f |'cd.txt'| <<'END_|
|00004a00| 4f 46 5f 46 49 4c 45 27 | 0a 58 22 63 64 22 20 6d |OF_FILE'|.X"cd" m|
|00004a10| 65 61 6e 73 20 22 63 68 | 61 6e 67 65 20 64 69 72 |eans "ch|ange dir|
|00004a20| 65 63 74 6f 72 79 22 2e | 20 20 54 68 61 74 20 69 |ectory".| That i|
|00004a30| 73 2c 20 63 68 61 6e 67 | 65 20 74 6f 20 74 68 61 |s, chang|e to tha|
|00004a40| 74 20 64 69 72 65 63 74 | 6f 72 79 0a 58 73 6f 20 |t direct|ory.Xso |
|00004a50| 74 68 61 74 20 69 74 20 | 62 65 63 6f 6d 65 73 20 |that it |becomes |
|00004a60| 74 68 65 20 64 65 66 61 | 75 6c 74 20 64 69 72 65 |the defa|ult dire|
|00004a70| 63 74 6f 72 79 2e 20 20 | 55 73 61 67 65 20 65 78 |ctory. |Usage ex|
|00004a80| 61 6d 70 6c 65 3a 0a 58 | 25 20 63 64 20 2f 75 73 |ample:.X|% cd /us|
|00004a90| 72 32 2f 6e 65 6c 73 6f | 6e 0a 58 63 61 75 73 65 |r2/nelso|n.Xcause|
|00004aa0| 73 20 61 6c 6c 20 66 75 | 72 74 68 65 72 20 63 6f |s all fu|rther co|
|00004ab0| 6d 6d 61 6e 64 73 20 77 | 68 69 63 68 20 72 65 66 |mmands w|hich ref|
|00004ac0| 65 72 20 74 6f 20 74 68 | 65 20 64 65 66 61 75 6c |er to th|e defaul|
|00004ad0| 74 20 64 69 72 65 63 74 | 6f 72 79 0a 58 74 6f 20 |t direct|ory.Xto |
|00004ae0| 6c 6f 6f 6b 20 69 6e 20 | 2f 75 73 72 32 2f 6e 65 |look in |/usr2/ne|
|00004af0| 6c 73 6f 6e 20 66 69 72 | 73 74 2e 20 20 54 6f 20 |lson fir|st. To |
|00004b00| 72 65 74 75 72 6e 20 68 | 6f 6d 65 2c 20 6a 75 73 |return h|ome, jus|
|00004b10| 74 20 73 61 79 0a 58 25 | 20 63 64 0a 45 4e 44 5f |t say.X%| cd.END_|
|00004b20| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00004b30| 32 36 39 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |269 -ne |`wc -c <|
|00004b40| 27 63 64 2e 74 78 74 27 | 60 3b 20 74 68 65 6e 0a |'cd.txt'|`; then.|
|00004b50| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00004b60| 22 27 63 64 2e 74 78 74 | 27 5c 22 20 75 6e 70 61 |"'cd.txt|'\" unpa|
|00004b70| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00004b80| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00004b90| 66 20 27 63 64 2e 74 78 | 74 27 0a 66 69 0a 69 66 |f 'cd.tx|t'.fi.if|
|00004ba0| 20 74 65 73 74 20 2d 66 | 20 27 63 6f 6d 70 69 6c | test -f| 'compil|
|00004bb0| 65 72 73 2e 74 78 74 27 | 20 2d 61 20 22 24 7b 31 |ers.txt'| -a "${1|
|00004bc0| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00004bd0| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00004be0| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00004bf0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00004c00| 22 27 63 6f 6d 70 69 6c | 65 72 73 2e 74 78 74 27 |"'compil|ers.txt'|
|00004c10| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00004c20| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00004c30| 27 63 6f 6d 70 69 6c 65 | 72 73 2e 74 78 74 27 5c |'compile|rs.txt'\|
|00004c40| 22 20 5c 28 32 38 33 20 | 63 68 61 72 61 63 74 65 |" \(283 |characte|
|00004c50| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00004c60| 22 20 3e 27 63 6f 6d 70 | 69 6c 65 72 73 2e 74 78 |" >'comp|ilers.tx|
|00004c70| 74 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |t' <<'EN|D_OF_FIL|
|00004c80| 45 27 0a 58 54 68 65 72 | 65 20 61 72 65 20 74 68 |E'.XTher|e are th|
|00004c90| 72 65 65 20 6f 66 66 69 | 63 69 61 6c 6c 79 20 73 |ree offi|cially s|
|00004ca0| 75 70 70 6f 72 74 65 64 | 20 6c 61 6e 67 75 61 67 |upported| languag|
|00004cb0| 65 73 20 6f 6e 20 74 68 | 69 73 20 6d 61 63 68 69 |es on th|is machi|
|00004cc0| 6e 65 3a 0a 58 46 4f 52 | 54 52 41 4e 2c 20 43 2c |ne:.XFOR|TRAN, C,|
|00004cd0| 20 61 6e 64 20 50 61 73 | 63 61 6c 2e 20 20 41 64 | and Pas|cal. Ad|
|00004ce0| 61 20 69 73 20 6f 6e 20 | 6c 6f 61 6e 20 66 72 6f |a is on |loan fro|
|00004cf0| 6d 20 53 65 71 75 65 6e | 74 2c 20 61 6e 64 20 6d |m Sequen|t, and m|
|00004d00| 61 79 0a 58 62 65 20 72 | 65 74 75 72 6e 65 64 20 |ay.Xbe r|eturned |
|00004d10| 61 74 20 61 6e 79 20 74 | 69 6d 65 2e 20 20 41 77 |at any t|ime. Aw|
|00004d20| 6b 20 61 6e 64 20 50 65 | 72 6c 20 6d 61 79 20 62 |k and Pe|rl may b|
|00004d30| 65 20 63 6f 6e 73 69 64 | 65 72 65 64 20 62 79 20 |e consid|ered by |
|00004d40| 73 6f 6d 65 0a 58 74 6f | 20 62 65 20 6c 61 6e 67 |some.Xto| be lang|
|00004d50| 75 61 67 65 73 2e 20 20 | 57 65 20 64 6f 20 6e 6f |uages. |We do no|
|00004d60| 74 20 68 61 76 65 20 42 | 41 53 49 43 2c 20 6e 6f |t have B|ASIC, no|
|00004d70| 72 20 61 72 65 20 77 65 | 20 65 76 65 72 20 6c 69 |r are we| ever li|
|00004d80| 6b 65 6c 79 20 74 6f 2e | 0a 58 43 2b 2b 20 6d 61 |kely to.|.XC++ ma|
|00004d90| 79 20 62 65 20 63 6f 6d | 69 6e 67 20 6c 61 74 65 |y be com|ing late|
|00004da0| 72 2e 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |r..END_O|F_FILE.i|
|00004db0| 66 20 74 65 73 74 20 32 | 38 33 20 2d 6e 65 20 60 |f test 2|83 -ne `|
|00004dc0| 77 63 20 2d 63 20 3c 27 | 63 6f 6d 70 69 6c 65 72 |wc -c <'|compiler|
|00004dd0| 73 2e 74 78 74 27 60 3b | 20 74 68 65 6e 0a 20 20 |s.txt'`;| then. |
|00004de0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00004df0| 63 6f 6d 70 69 6c 65 72 | 73 2e 74 78 74 27 5c 22 |compiler|s.txt'\"|
|00004e00| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00004e10| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00004e20| 65 6e 64 20 6f 66 20 27 | 63 6f 6d 70 69 6c 65 72 |end of '|compiler|
|00004e30| 73 2e 74 78 74 27 0a 66 | 69 0a 69 66 20 74 65 73 |s.txt'.f|i.if tes|
|00004e40| 74 20 2d 66 20 27 63 6f | 70 79 2e 74 78 74 27 20 |t -f 'co|py.txt' |
|00004e50| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00004e60| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00004e70| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00004e80| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00004e90| 20 66 69 6c 65 20 5c 22 | 27 63 6f 70 79 2e 74 78 | file \"|'copy.tx|
|00004ea0| 74 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |t'\".els|e.echo s|
|00004eb0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00004ec0| 5c 22 27 63 6f 70 79 2e | 74 78 74 27 5c 22 20 5c |\"'copy.|txt'\" \|
|00004ed0| 28 38 31 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |(81 char|acters\)|
|00004ee0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00004ef0| 63 6f 70 79 2e 74 78 74 | 27 20 3c 3c 27 45 4e 44 |copy.txt|' <<'END|
|00004f00| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 43 6f 70 79 69 |_OF_FILE|'.XCopyi|
|00004f10| 6e 67 20 69 73 20 64 6f | 6e 65 20 62 79 20 74 68 |ng is do|ne by th|
|00004f20| 65 20 22 63 70 22 20 63 | 6f 6d 6d 61 6e 64 2c 20 |e "cp" c|ommand, |
|00004f30| 77 68 69 63 68 20 68 61 | 73 20 74 68 65 20 66 6f |which ha|s the fo|
|00004f40| 6c 6c 6f 77 69 6e 67 20 | 75 73 61 67 65 3a 0a 58 |llowing |usage:.X|
|00004f50| 24 20 63 70 20 66 72 6f | 6d 20 74 6f 0a 45 4e 44 |$ cp fro|m to.END|
|00004f60| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00004f70| 20 38 31 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c | 81 -ne |`wc -c <|
|00004f80| 27 63 6f 70 79 2e 74 78 | 74 27 60 3b 20 74 68 65 |'copy.tx|t'`; the|
|00004f90| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00004fa0| 20 5c 22 27 63 6f 70 79 | 2e 74 78 74 27 5c 22 20 | \"'copy|.txt'\" |
|00004fb0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00004fc0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00004fd0| 6e 64 20 6f 66 20 27 63 | 6f 70 79 2e 74 78 74 27 |nd of 'c|opy.txt'|
|00004fe0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00004ff0| 63 70 2e 74 78 74 27 20 | 2d 61 20 22 24 7b 31 7d |cp.txt' |-a "${1}|
|00005000| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00005010| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00005020| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00005030| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00005040| 27 63 70 2e 74 78 74 27 | 5c 22 0a 65 6c 73 65 0a |'cp.txt'|\".else.|
|00005050| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00005060| 63 74 69 6e 67 20 5c 22 | 27 63 70 2e 74 78 74 27 |cting \"|'cp.txt'|
|00005070| 5c 22 20 5c 28 38 31 20 | 63 68 61 72 61 63 74 65 |\" \(81 |characte|
|00005080| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00005090| 22 20 3e 27 63 70 2e 74 | 78 74 27 20 3c 3c 27 45 |" >'cp.t|xt' <<'E|
|000050a0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 43 6f 70 |ND_OF_FI|LE'.XCop|
|000050b0| 79 69 6e 67 20 69 73 20 | 64 6f 6e 65 20 62 79 20 |ying is |done by |
|000050c0| 74 68 65 20 22 63 70 22 | 20 63 6f 6d 6d 61 6e 64 |the "cp"| command|
|000050d0| 2c 20 77 68 69 63 68 20 | 68 61 73 20 74 68 65 20 |, which |has the |
|000050e0| 66 6f 6c 6c 6f 77 69 6e | 67 20 75 73 61 67 65 3a |followin|g usage:|
|000050f0| 0a 58 24 20 63 70 20 66 | 72 6f 6d 20 74 6f 0a 45 |.X$ cp f|rom to.E|
|00005100| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|00005110| 73 74 20 38 31 20 2d 6e | 65 20 60 77 63 20 2d 63 |st 81 -n|e `wc -c|
|00005120| 20 3c 27 63 70 2e 74 78 | 74 27 60 3b 20 74 68 65 | <'cp.tx|t'`; the|
|00005130| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00005140| 20 5c 22 27 63 70 2e 74 | 78 74 27 5c 22 20 75 6e | \"'cp.t|xt'\" un|
|00005150| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00005160| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00005170| 20 6f 66 20 27 63 70 2e | 74 78 74 27 0a 66 69 0a | of 'cp.|txt'.fi.|
|00005180| 69 66 20 74 65 73 74 20 | 2d 66 20 27 63 73 68 2e |if test |-f 'csh.|
|00005190| 74 78 74 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |txt' -a |"${1}" !|
|000051a0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000051b0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|000051c0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|000051d0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 63 73 |sting fi|le \"'cs|
|000051e0| 68 2e 74 78 74 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |h.txt'\"|.else.ec|
|000051f0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00005200| 69 6e 67 20 5c 22 27 63 | 73 68 2e 74 78 74 27 5c |ing \"'c|sh.txt'\|
|00005210| 22 20 5c 28 31 38 37 20 | 63 68 61 72 61 63 74 65 |" \(187 |characte|
|00005220| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00005230| 22 20 3e 27 63 73 68 2e | 74 78 74 27 20 3c 3c 27 |" >'csh.|txt' <<'|
|00005240| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 43 73 |END_OF_F|ILE'.XCs|
|00005250| 68 20 69 73 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |h is the| command|
|00005260| 2d 6c 69 6e 65 20 69 6e | 74 65 72 70 72 65 74 65 |-line in|terprete|
|00005270| 72 2e 20 20 49 74 20 69 | 73 20 74 6f 20 55 6e 69 |r. It i|s to Uni|
|00005280| 78 20 77 68 61 74 20 44 | 43 4c 20 69 73 0a 58 28 |x what D|CL is.X(|
|00005290| 66 65 65 62 6c 79 29 20 | 74 6f 20 56 4d 53 2e 20 |feebly) |to VMS. |
|000052a0| 20 49 74 20 68 61 73 20 | 68 69 73 74 6f 72 79 20 | It has |history |
|000052b0| 61 6e 64 20 63 6f 6d 6d | 61 6e 64 2d 6c 69 6e 65 |and comm|and-line|
|000052c0| 20 73 75 62 73 74 69 74 | 75 74 69 6f 6e 0a 58 66 | substit|ution.Xf|
|000052d0| 65 61 74 75 72 65 73 2e | 20 20 43 6f 6e 73 75 6c |eatures.| Consul|
|000052e0| 74 20 61 20 47 75 72 75 | 20 66 6f 72 20 6e 65 61 |t a Guru| for nea|
|000052f0| 74 6f 20 74 72 69 63 6b | 73 20 74 6f 20 74 72 79 |to trick|s to try|
|00005300| 20 77 69 74 68 20 63 73 | 68 2e 0a 45 4e 44 5f 4f | with cs|h..END_O|
|00005310| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 31 |F_FILE.i|f test 1|
|00005320| 38 37 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |87 -ne `|wc -c <'|
|00005330| 63 73 68 2e 74 78 74 27 | 60 3b 20 74 68 65 6e 0a |csh.txt'|`; then.|
|00005340| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00005350| 22 27 63 73 68 2e 74 78 | 74 27 5c 22 20 75 6e 70 |"'csh.tx|t'\" unp|
|00005360| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00005370| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00005380| 6f 66 20 27 63 73 68 2e | 74 78 74 27 0a 66 69 0a |of 'csh.|txt'.fi.|
|00005390| 69 66 20 74 65 73 74 20 | 2d 66 20 27 64 69 72 2e |if test |-f 'dir.|
|000053a0| 74 78 74 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |txt' -a |"${1}" !|
|000053b0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000053c0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|000053d0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|000053e0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 64 69 |sting fi|le \"'di|
|000053f0| 72 2e 74 78 74 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |r.txt'\"|.else.ec|
|00005400| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00005410| 69 6e 67 20 5c 22 27 64 | 69 72 2e 74 78 74 27 5c |ing \"'d|ir.txt'\|
|00005420| 22 20 5c 28 31 30 37 20 | 63 68 61 72 61 63 74 65 |" \(107 |characte|
|00005430| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00005440| 22 20 3e 27 64 69 72 2e | 74 78 74 27 20 3c 3c 27 |" >'dir.|txt' <<'|
|00005450| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 54 6f |END_OF_F|ILE'.XTo|
|00005460| 20 6c 69 73 74 20 74 68 | 65 20 66 69 6c 65 73 20 | list th|e files |
|00005470| 69 6e 20 79 6f 75 72 20 | 64 69 72 65 63 74 6f 72 |in your |director|
|00005480| 79 2c 20 75 73 65 20 6f | 6e 65 20 6f 66 3a 0a 58 |y, use o|ne of:.X|
|00005490| 25 20 6c 0a 58 6f 72 0a | 58 25 20 6c 6c 0a 58 6f |% l.Xor.|X% ll.Xo|
|000054a0| 72 0a 58 25 20 6c 73 0a | 58 28 74 72 79 20 74 68 |r.X% ls.|X(try th|
|000054b0| 65 6d 20 61 6c 6c 20 74 | 6f 20 73 65 65 20 74 68 |em all t|o see th|
|000054c0| 65 20 64 69 66 66 65 72 | 65 6e 63 65 29 2e 0a 45 |e differ|ence)..E|
|000054d0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|000054e0| 73 74 20 31 30 37 20 2d | 6e 65 20 60 77 63 20 2d |st 107 -|ne `wc -|
|000054f0| 63 20 3c 27 64 69 72 2e | 74 78 74 27 60 3b 20 74 |c <'dir.|txt'`; t|
|00005500| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00005510| 72 3a 20 5c 22 27 64 69 | 72 2e 74 78 74 27 5c 22 |r: \"'di|r.txt'\"|
|00005520| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00005530| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00005540| 65 6e 64 20 6f 66 20 27 | 64 69 72 2e 74 78 74 27 |end of '|dir.txt'|
|00005550| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00005560| 65 64 2e 74 78 74 27 20 | 2d 61 20 22 24 7b 31 7d |ed.txt' |-a "${1}|
|00005570| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00005580| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00005590| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|000055a0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|000055b0| 27 65 64 2e 74 78 74 27 | 5c 22 0a 65 6c 73 65 0a |'ed.txt'|\".else.|
|000055c0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000055d0| 63 74 69 6e 67 20 5c 22 | 27 65 64 2e 74 78 74 27 |cting \"|'ed.txt'|
|000055e0| 5c 22 20 5c 28 31 31 30 | 20 63 68 61 72 61 63 74 |\" \(110| charact|
|000055f0| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00005600| 2f 22 20 3e 27 65 64 2e | 74 78 74 27 20 3c 3c 27 |/" >'ed.|txt' <<'|
|00005610| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 22 65 |END_OF_F|ILE'.X"e|
|00005620| 64 22 20 69 73 20 74 68 | 65 20 6f 6c 64 2c 20 6f |d" is th|e old, o|
|00005630| 6c 64 2c 20 6c 69 6e 65 | 2d 6f 72 69 65 6e 74 65 |ld, line|-oriente|
|00005640| 64 20 65 64 69 74 6f 72 | 2e 20 20 56 69 20 69 73 |d editor|. Vi is|
|00005650| 20 74 68 65 0a 58 70 72 | 65 66 65 72 72 65 64 20 | the.Xpr|eferred |
|00005660| 65 64 69 74 6f 72 2e 20 | 20 53 65 6c 65 63 74 20 |editor. | Select |
|00005670| 76 69 20 61 74 20 74 68 | 65 20 6e 65 78 74 20 68 |vi at th|e next h|
|00005680| 65 6c 70 20 70 72 6f 6d | 70 74 2e 0a 58 0a 45 4e |elp prom|pt..X.EN|
|00005690| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|000056a0| 74 20 31 31 30 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 110 -n|e `wc -c|
|000056b0| 20 3c 27 65 64 2e 74 78 | 74 27 60 3b 20 74 68 65 | <'ed.tx|t'`; the|
|000056c0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|000056d0| 20 5c 22 27 65 64 2e 74 | 78 74 27 5c 22 20 75 6e | \"'ed.t|xt'\" un|
|000056e0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|000056f0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00005700| 20 6f 66 20 27 65 64 2e | 74 78 74 27 0a 66 69 0a | of 'ed.|txt'.fi.|
|00005710| 69 66 20 74 65 73 74 20 | 2d 66 20 27 65 64 69 74 |if test |-f 'edit|
|00005720| 2e 74 78 74 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |.txt' -a| "${1}" |
|00005730| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00005740| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00005750| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00005760| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 65 |isting f|ile \"'e|
|00005770| 64 69 74 2e 74 78 74 27 | 5c 22 0a 65 6c 73 65 0a |dit.txt'|\".else.|
|00005780| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00005790| 63 74 69 6e 67 20 5c 22 | 27 65 64 69 74 2e 74 78 |cting \"|'edit.tx|
|000057a0| 74 27 5c 22 20 5c 28 38 | 35 20 63 68 61 72 61 63 |t'\" \(8|5 charac|
|000057b0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|000057c0| 2f 2f 22 20 3e 27 65 64 | 69 74 2e 74 78 74 27 20 |//" >'ed|it.txt' |
|000057d0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000057e0| 58 54 68 65 20 65 64 69 | 74 6f 72 20 6f 6e 20 74 |XThe edi|tor on t|
|000057f0| 68 65 20 55 6e 69 78 20 | 6d 61 63 68 69 6e 65 73 |he Unix |machines|
|00005800| 20 69 73 20 63 61 6c 6c | 65 64 20 22 76 69 22 2e | is call|ed "vi".|
|00005810| 20 20 46 6f 72 20 6d 6f | 72 65 20 68 65 6c 70 0a | For mo|re help.|
|00005820| 58 61 73 6b 20 66 6f 72 | 20 68 65 6c 70 20 6f 6e |Xask for| help on|
|00005830| 20 22 76 69 22 2e 0a 45 | 4e 44 5f 4f 46 5f 46 49 | "vi"..E|ND_OF_FI|
|00005840| 4c 45 0a 69 66 20 74 65 | 73 74 20 38 35 20 2d 6e |LE.if te|st 85 -n|
|00005850| 65 20 60 77 63 20 2d 63 | 20 3c 27 65 64 69 74 2e |e `wc -c| <'edit.|
|00005860| 74 78 74 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |txt'`; t|hen. |
|00005870| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 65 64 |echo sha|r: \"'ed|
|00005880| 69 74 2e 74 78 74 27 5c | 22 20 75 6e 70 61 63 6b |it.txt'\|" unpack|
|00005890| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|000058a0| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|000058b0| 27 65 64 69 74 2e 74 78 | 74 27 0a 66 69 0a 69 66 |'edit.tx|t'.fi.if|
|000058c0| 20 74 65 73 74 20 2d 66 | 20 27 65 78 69 74 2e 74 | test -f| 'exit.t|
|000058d0| 78 74 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |xt' -a "|${1}" !=|
|000058e0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|000058f0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00005900| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00005910| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 65 78 69 |ting fil|e \"'exi|
|00005920| 74 2e 74 78 74 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |t.txt'\"|.else.ec|
|00005930| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00005940| 69 6e 67 20 5c 22 27 65 | 78 69 74 2e 74 78 74 27 |ing \"'e|xit.txt'|
|00005950| 5c 22 20 5c 28 30 20 63 | 68 61 72 61 63 74 65 72 |\" \(0 c|haracter|
|00005960| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00005970| 20 3e 27 65 78 69 74 2e | 74 78 74 27 20 3c 3c 27 | >'exit.|txt' <<'|
|00005980| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 45 4e 44 |END_OF_F|ILE'.END|
|00005990| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000059a0| 20 30 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 | 0 -ne `|wc -c <'|
|000059b0| 65 78 69 74 2e 74 78 74 | 27 60 3b 20 74 68 65 6e |exit.txt|'`; then|
|000059c0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|000059d0| 5c 22 27 65 78 69 74 2e | 74 78 74 27 5c 22 20 75 |\"'exit.|txt'\" u|
|000059e0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000059f0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00005a00| 64 20 6f 66 20 27 65 78 | 69 74 2e 74 78 74 27 0a |d of 'ex|it.txt'.|
|00005a10| 66 69 0a 69 66 20 74 65 | 73 74 20 21 20 2d 64 20 |fi.if te|st ! -d |
|00005a20| 27 66 69 6c 65 73 27 20 | 3b 20 74 68 65 6e 0a 20 |'files' |; then. |
|00005a30| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 43 72 | echo |shar: Cr|
|00005a40| 65 61 74 69 6e 67 20 64 | 69 72 65 63 74 6f 72 79 |eating d|irectory|
|00005a50| 20 5c 22 27 66 69 6c 65 | 73 27 5c 22 0a 20 20 20 | \"'file|s'\". |
|00005a60| 20 6d 6b 64 69 72 20 27 | 66 69 6c 65 73 27 0a 66 | mkdir '|files'.f|
|00005a70| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 66 69 |i.if tes|t -f 'fi|
|00005a80| 6c 65 73 2e 74 78 74 27 | 20 2d 61 20 22 24 7b 31 |les.txt'| -a "${1|
|00005a90| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00005aa0| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00005ab0| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00005ac0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00005ad0| 22 27 66 69 6c 65 73 2e | 74 78 74 27 5c 22 0a 65 |"'files.|txt'\".e|
|00005ae0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00005af0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 66 69 6c |xtractin|g \"'fil|
|00005b00| 65 73 2e 74 78 74 27 5c | 22 20 5c 28 32 34 34 20 |es.txt'\|" \(244 |
|00005b10| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00005b20| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 66 69 6c 65 | "s/^X//|" >'file|
|00005b30| 73 2e 74 78 74 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |s.txt' <|<'END_OF|
|00005b40| 5f 46 49 4c 45 27 0a 58 | 46 69 6c 65 73 20 61 72 |_FILE'.X|Files ar|
|00005b50| 65 20 73 74 6f 72 65 64 | 20 69 6e 20 61 20 68 69 |e stored| in a hi|
|00005b60| 65 72 61 72 63 68 69 61 | 6c 20 6d 61 6e 6e 65 72 |erarchia|l manner|
|00005b70| 2c 20 62 65 67 69 6e 6e | 69 6e 67 20 77 69 74 68 |, beginn|ing with|
|00005b80| 20 2f 20 61 73 20 74 68 | 65 0a 58 72 6f 6f 74 20 | / as th|e.Xroot |
|00005b90| 6f 66 20 74 68 65 20 66 | 69 6c 65 73 79 73 74 65 |of the f|ilesyste|
|00005ba0| 6d 2e 20 20 54 68 65 20 | 6d 61 6a 6f 72 20 73 75 |m. The |major su|
|00005bb0| 62 64 69 76 69 73 69 6f | 6e 73 20 61 72 65 20 2f |bdivisio|ns are /|
|00005bc0| 75 73 72 2c 20 2f 75 73 | 72 31 2c 0a 58 2f 75 73 |usr, /us|r1,.X/us|
|00005bd0| 72 32 2c 20 61 6e 64 20 | 2f 75 73 72 33 2e 20 20 |r2, and |/usr3. |
|00005be0| 59 6f 75 72 20 64 69 72 | 65 63 74 6f 72 79 20 69 |Your dir|ectory i|
|00005bf0| 73 20 70 72 6f 62 61 62 | 6c 79 20 73 6f 6d 65 74 |s probab|ly somet|
|00005c00| 68 69 6e 67 20 6c 69 6b | 65 0a 58 2f 75 73 72 33 |hing lik|e.X/usr3|
|00005c10| 2f 6d 79 6e 61 6d 65 20 | 6f 72 20 73 6f 6d 65 74 |/myname |or somet|
|00005c20| 68 69 6e 67 20 73 69 6d | 69 6c 61 72 2e 0a 58 0a |hing sim|ilar..X.|
|00005c30| 58 53 65 65 20 61 6c 73 | 6f 20 22 70 77 64 22 2e |XSee als|o "pwd".|
|00005c40| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|00005c50| 74 65 73 74 20 32 34 34 | 20 2d 6e 65 20 60 77 63 |test 244| -ne `wc|
|00005c60| 20 2d 63 20 3c 27 66 69 | 6c 65 73 2e 74 78 74 27 | -c <'fi|les.txt'|
|00005c70| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00005c80| 20 73 68 61 72 3a 20 5c | 22 27 66 69 6c 65 73 2e | shar: \|"'files.|
|00005c90| 74 78 74 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |txt'\" u|npacked |
|00005ca0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00005cb0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 66 69 |.fi.# en|d of 'fi|
|00005cc0| 6c 65 73 2e 74 78 74 27 | 0a 66 69 0a 69 66 20 74 |les.txt'|.fi.if t|
|00005cd0| 65 73 74 20 2d 66 20 27 | 66 69 6c 65 73 2f 61 2e |est -f '|files/a.|
|00005ce0| 6f 75 74 2e 74 78 74 27 | 20 2d 61 20 22 24 7b 31 |out.txt'| -a "${1|
|00005cf0| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00005d00| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00005d10| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00005d20| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00005d30| 22 27 66 69 6c 65 73 2f | 61 2e 6f 75 74 2e 74 78 |"'files/|a.out.tx|
|00005d40| 74 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |t'\".els|e.echo s|
|00005d50| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00005d60| 5c 22 27 66 69 6c 65 73 | 2f 61 2e 6f 75 74 2e 74 |\"'files|/a.out.t|
|00005d70| 78 74 27 5c 22 20 5c 28 | 31 35 34 20 63 68 61 72 |xt'\" \(|154 char|
|00005d80| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00005d90| 5e 58 2f 2f 22 20 3e 27 | 66 69 6c 65 73 2f 61 2e |^X//" >'|files/a.|
|00005da0| 6f 75 74 2e 74 78 74 27 | 20 3c 3c 27 45 4e 44 5f |out.txt'| <<'END_|
|00005db0| 4f 46 5f 46 49 4c 45 27 | 0a 58 22 61 2e 6f 75 74 |OF_FILE'|.X"a.out|
|00005dc0| 22 20 69 73 20 74 68 65 | 20 72 65 73 75 6c 74 61 |" is the| resulta|
|00005dd0| 6e 74 20 65 78 65 63 75 | 74 61 62 6c 65 20 66 69 |nt execu|table fi|
|00005de0| 6c 65 20 63 72 65 61 74 | 65 64 20 62 79 20 22 63 |le creat|ed by "c|
|00005df0| 63 22 2c 0a 58 22 70 61 | 73 63 61 6c 22 2c 20 6f |c",.X"pa|scal", o|
|00005e00| 72 20 22 66 6f 72 74 72 | 61 6e 22 2e 20 20 28 49 |r "fortr|an". (I|
|00005e10| 74 73 20 6e 61 6d 65 20 | 69 73 20 61 20 68 69 73 |ts name |is a his|
|00005e20| 74 6f 72 69 63 61 6c 20 | 61 63 63 69 64 65 6e 74 |torical |accident|
|00005e30| 20 2d 2d 0a 58 63 6f 6e | 73 75 6c 74 20 61 20 47 | --.Xcon|sult a G|
|00005e40| 75 72 75 20 66 6f 72 20 | 65 78 70 6c 61 6e 61 74 |uru for |explanat|
|00005e50| 69 6f 6e 2e 29 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |ion.).EN|D_OF_FIL|
|00005e60| 45 0a 69 66 20 74 65 73 | 74 20 31 35 34 20 2d 6e |E.if tes|t 154 -n|
|00005e70| 65 20 60 77 63 20 2d 63 | 20 3c 27 66 69 6c 65 73 |e `wc -c| <'files|
|00005e80| 2f 61 2e 6f 75 74 2e 74 | 78 74 27 60 3b 20 74 68 |/a.out.t|xt'`; th|
|00005e90| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00005ea0| 3a 20 5c 22 27 66 69 6c | 65 73 2f 61 2e 6f 75 74 |: \"'fil|es/a.out|
|00005eb0| 2e 74 78 74 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |.txt'\" |unpacked|
|00005ec0| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00005ed0| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 66 |!.fi.# e|nd of 'f|
|00005ee0| 69 6c 65 73 2f 61 2e 6f | 75 74 2e 74 78 74 27 0a |iles/a.o|ut.txt'.|
|00005ef0| 66 69 0a 69 66 20 74 65 | 73 74 20 21 20 2d 64 20 |fi.if te|st ! -d |
|00005f00| 27 66 69 6c 65 73 2f 62 | 69 6e 61 72 69 65 73 27 |'files/b|inaries'|
|00005f10| 20 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f | ; then.| echo|
|00005f20| 20 73 68 61 72 3a 20 43 | 72 65 61 74 69 6e 67 20 | shar: C|reating |
|00005f30| 64 69 72 65 63 74 6f 72 | 79 20 5c 22 27 66 69 6c |director|y \"'fil|
|00005f40| 65 73 2f 62 69 6e 61 72 | 69 65 73 27 5c 22 0a 20 |es/binar|ies'\". |
|00005f50| 20 20 20 6d 6b 64 69 72 | 20 27 66 69 6c 65 73 2f | mkdir| 'files/|
|00005f60| 62 69 6e 61 72 69 65 73 | 27 0a 66 69 0a 69 66 20 |binaries|'.fi.if |
|00005f70| 74 65 73 74 20 2d 66 20 | 27 66 69 6c 65 73 2f 62 |test -f |'files/b|
|00005f80| 69 6e 61 72 69 65 73 2e | 74 78 74 27 20 2d 61 20 |inaries.|txt' -a |
|00005f90| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00005fa0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00005fb0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00005fc0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00005fd0| 6c 65 20 5c 22 27 66 69 | 6c 65 73 2f 62 69 6e 61 |le \"'fi|les/bina|
|00005fe0| 72 69 65 73 2e 74 78 74 | 27 5c 22 0a 65 6c 73 65 |ries.txt|'\".else|
|00005ff0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00006000| 61 63 74 69 6e 67 20 5c | 22 27 66 69 6c 65 73 2f |acting \|"'files/|
|00006010| 62 69 6e 61 72 69 65 73 | 2e 74 78 74 27 5c 22 20 |binaries|.txt'\" |
|00006020| 5c 28 31 34 39 20 63 68 | 61 72 61 63 74 65 72 73 |\(149 ch|aracters|
|00006030| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00006040| 3e 27 66 69 6c 65 73 2f | 62 69 6e 61 72 69 65 73 |>'files/|binaries|
|00006050| 2e 74 78 74 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |.txt' <<|'END_OF_|
|00006060| 46 49 4c 45 27 0a 58 42 | 69 6e 61 72 79 20 66 69 |FILE'.XB|inary fi|
|00006070| 6c 65 73 20 74 79 70 69 | 63 61 6c 6c 79 20 61 72 |les typi|cally ar|
|00006080| 65 20 6e 61 6d 65 64 20 | 22 2e 6f 22 20 66 69 6c |e named |".o" fil|
|00006090| 65 73 2e 20 20 54 68 65 | 79 20 61 72 65 20 6e 6f |es. The|y are no|
|000060a0| 74 20 6e 6f 72 6d 61 6c | 6c 79 0a 58 6c 65 66 74 |t normal|ly.Xleft|
|000060b0| 20 6c 79 69 6e 67 20 61 | 72 6f 75 6e 64 20 69 6e | lying a|round in|
|000060c0| 20 79 6f 75 72 20 64 69 | 72 65 63 74 6f 72 79 2c | your di|rectory,|
|000060d0| 20 65 78 63 65 70 74 20 | 62 79 20 63 65 72 74 61 | except |by certa|
|000060e0| 69 6e 20 70 72 6f 67 72 | 61 6d 73 2c 0a 58 73 75 |in progr|ams,.Xsu|
|000060f0| 63 68 20 61 73 20 22 6d | 61 6b 65 2e 22 0a 45 4e |ch as "m|ake.".EN|
|00006100| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00006110| 74 20 31 34 39 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 149 -n|e `wc -c|
|00006120| 20 3c 27 66 69 6c 65 73 | 2f 62 69 6e 61 72 69 65 | <'files|/binarie|
|00006130| 73 2e 74 78 74 27 60 3b | 20 74 68 65 6e 0a 20 20 |s.txt'`;| then. |
|00006140| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00006150| 66 69 6c 65 73 2f 62 69 | 6e 61 72 69 65 73 2e 74 |files/bi|naries.t|
|00006160| 78 74 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |xt'\" un|packed w|
|00006170| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00006180| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 66 69 6c |fi.# end| of 'fil|
|00006190| 65 73 2f 62 69 6e 61 72 | 69 65 73 2e 74 78 74 27 |es/binar|ies.txt'|
|000061a0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|000061b0| 66 69 6c 65 73 2f 62 69 | 6e 61 72 69 65 73 2f 61 |files/bi|naries/a|
|000061c0| 2e 6f 75 74 2e 74 78 74 | 27 20 2d 61 20 22 24 7b |.out.txt|' -a "${|
|000061d0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|000061e0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|000061f0| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00006200| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00006210| 5c 22 27 66 69 6c 65 73 | 2f 62 69 6e 61 72 69 65 |\"'files|/binarie|
|00006220| 73 2f 61 2e 6f 75 74 2e | 74 78 74 27 5c 22 0a 65 |s/a.out.|txt'\".e|
|00006230| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00006240| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 66 69 6c |xtractin|g \"'fil|
|00006250| 65 73 2f 62 69 6e 61 72 | 69 65 73 2f 61 2e 6f 75 |es/binar|ies/a.ou|
|00006260| 74 2e 74 78 74 27 5c 22 | 20 5c 28 37 34 20 63 68 |t.txt'\"| \(74 ch|
|00006270| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00006280| 73 2f 5e 58 2f 2f 22 20 | 3e 27 66 69 6c 65 73 2f |s/^X//" |>'files/|
|00006290| 62 69 6e 61 72 69 65 73 | 2f 61 2e 6f 75 74 2e 74 |binaries|/a.out.t|
|000062a0| 78 74 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |xt' <<'E|ND_OF_FI|
|000062b0| 4c 45 27 0a 58 45 78 65 | 63 75 74 61 62 6c 65 20 |LE'.XExe|cutable |
|000062c0| 66 69 6c 65 73 20 61 72 | 65 20 62 79 20 64 65 66 |files ar|e by def|
|000062d0| 61 75 6c 74 20 6e 61 6d | 65 64 20 22 61 2e 6f 75 |ault nam|ed "a.ou|
|000062e0| 74 22 20 61 6e 64 20 6c | 65 66 74 20 69 6e 20 79 |t" and l|eft in y|
|000062f0| 6f 75 72 0a 58 64 69 72 | 65 63 74 6f 72 79 2e 0a |our.Xdir|ectory..|
|00006300| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00006310| 65 73 74 20 37 34 20 2d | 6e 65 20 60 77 63 20 2d |est 74 -|ne `wc -|
|00006320| 63 20 3c 27 66 69 6c 65 | 73 2f 62 69 6e 61 72 69 |c <'file|s/binari|
|00006330| 65 73 2f 61 2e 6f 75 74 | 2e 74 78 74 27 60 3b 20 |es/a.out|.txt'`; |
|00006340| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00006350| 61 72 3a 20 5c 22 27 66 | 69 6c 65 73 2f 62 69 6e |ar: \"'f|iles/bin|
|00006360| 61 72 69 65 73 2f 61 2e | 6f 75 74 2e 74 78 74 27 |aries/a.|out.txt'|
|00006370| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00006380| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00006390| 23 20 65 6e 64 20 6f 66 | 20 27 66 69 6c 65 73 2f |# end of| 'files/|
|000063a0| 62 69 6e 61 72 69 65 73 | 2f 61 2e 6f 75 74 2e 74 |binaries|/a.out.t|
|000063b0| 78 74 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |xt'.fi.i|f test -|
|000063c0| 66 20 27 66 69 6c 65 73 | 2f 62 69 6e 61 72 69 65 |f 'files|/binarie|
|000063d0| 73 2f 65 78 65 63 75 74 | 61 62 6c 65 73 2e 74 78 |s/execut|ables.tx|
|000063e0| 74 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |t' -a "$|{1}" != |
|000063f0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.