home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / mail / elm / 3688 < prev    next >
SHell self-extracting ARchive  |  1992-12-12  |  4.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 58 72 65 66 3a 20 73 70 | 61 72 6b 79 20 63 6f 6d |Xref: sp|arky com|
|00000010| 70 2e 6d 61 69 6c 2e 65 | 6c 6d 3a 33 36 38 38 20 |p.mail.e|lm:3688 |
|00000020| 63 6f 6d 70 2e 6c 61 6e | 67 2e 74 63 6c 3a 32 30 |comp.lan|g.tcl:20|
|00000030| 39 36 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |96.Newsg|roups: c|
|00000040| 6f 6d 70 2e 6d 61 69 6c | 2e 65 6c 6d 2c 63 6f 6d |omp.mail|.elm,com|
|00000050| 70 2e 6c 61 6e 67 2e 74 | 63 6c 0a 50 61 74 68 3a |p.lang.t|cl.Path:|
|00000060| 20 73 70 61 72 6b 79 21 | 75 75 6e 65 74 21 68 65 | sparky!|uunet!he|
|00000070| 6c 61 2e 69 74 69 2e 6f | 72 67 21 68 65 6c 61 2e |la.iti.o|rg!hela.|
|00000080| 69 74 69 2e 6f 72 67 21 | 73 63 73 0a 46 72 6f 6d |iti.org!|scs.From|
|00000090| 3a 20 73 63 73 40 69 74 | 69 2e 6f 72 67 20 28 53 |: scs@it|i.org (S|
|000000a0| 74 65 76 65 20 53 69 6d | 6d 6f 6e 73 29 0a 53 75 |teve Sim|mons).Su|
|000000b0| 62 6a 65 63 74 3a 20 58 | 2d 62 61 73 65 64 2f 65 |bject: X|-based/e|
|000000c0| 6c 6d 2d 62 61 73 65 64 | 20 6d 61 69 6c 20 62 72 |lm-based| mail br|
|000000d0| 6f 77 73 65 72 20 75 73 | 69 6e 67 20 74 6b 0a 4d |owser us|ing tk.M|
|000000e0| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 73 63 73 2e |essage-I|D: <scs.|
|000000f0| 37 32 34 31 33 36 31 33 | 37 40 68 65 6c 61 2e 69 |72413613|7@hela.i|
|00000100| 74 69 2e 6f 72 67 3e 0a | 53 65 6e 64 65 72 3a 20 |ti.org>.|Sender: |
|00000110| 75 73 65 6e 65 74 40 69 | 74 69 2e 6f 72 67 20 28 |usenet@i|ti.org (|
|00000120| 48 65 6c 61 20 55 53 45 | 4e 45 54 20 4e 65 77 73 |Hela USE|NET News|
|00000130| 20 53 79 73 74 65 6d 29 | 0a 4e 6e 74 70 2d 50 6f | System)|.Nntp-Po|
|00000140| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 68 65 6c 61 |sting-Ho|st: hela|
|00000150| 2e 69 74 69 2e 6f 72 67 | 0a 4f 72 67 61 6e 69 7a |.iti.org|.Organiz|
|00000160| 61 74 69 6f 6e 3a 20 49 | 6e 64 75 73 74 72 69 61 |ation: I|ndustria|
|00000170| 6c 20 54 65 63 68 6e 6f | 6c 6f 67 79 20 49 6e 73 |l Techno|logy Ins|
|00000180| 74 69 74 75 74 65 0a 44 | 61 74 65 3a 20 53 61 74 |titute.D|ate: Sat|
|00000190| 2c 20 31 32 20 44 65 63 | 20 31 39 39 32 20 30 34 |, 12 Dec| 1992 04|
|000001a0| 3a 35 35 3a 33 37 20 47 | 4d 54 0a 4c 69 6e 65 73 |:55:37 G|MT.Lines|
|000001b0| 3a 20 31 31 31 0a 0a 0a | 49 27 76 65 20 62 65 65 |: 111...|I've bee|
|000001c0| 6e 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 74 6b 2f 74 |n follow|ing tk/t|
|000001d0| 63 6c 20 66 6f 72 20 73 | 6f 6d 65 20 74 69 6d 65 |cl for s|ome time|
|000001e0| 2c 20 62 75 74 20 6a 75 | 73 74 20 72 65 63 65 6e |, but ju|st recen|
|000001f0| 74 6c 79 20 73 61 74 20 | 64 6f 77 6e 20 74 6f 0a |tly sat |down to.|
|00000200| 61 63 74 75 61 6c 6c 79 | 20 2a 64 6f 2a 20 73 6f |actually| *do* so|
|00000210| 6d 65 74 68 69 6e 67 20 | 77 69 74 68 20 69 74 2e |mething |with it.|
|00000220| 20 20 54 68 65 20 74 6b | 2f 74 63 6c 20 6b 69 74 | The tk|/tcl kit|
|00000230| 20 69 6e 63 6c 75 64 65 | 73 20 61 20 73 69 6d 70 | include|s a simp|
|00000240| 6c 65 20 66 69 6c 65 0a | 62 72 6f 77 73 65 72 2c |le file.|browser,|
|00000250| 20 61 6e 64 20 61 73 20 | 61 20 6c 65 61 72 6e 69 | and as |a learni|
|00000260| 6e 67 20 65 78 65 72 63 | 69 73 65 20 49 20 68 61 |ng exerc|ise I ha|
|00000270| 63 6b 65 64 20 69 74 20 | 75 70 20 74 6f 20 62 65 |cked it |up to be|
|00000280| 63 6f 6d 65 20 61 20 6d | 61 69 6c 62 6f 78 0a 62 |come a m|ailbox.b|
|00000290| 72 6f 77 73 65 72 2e 20 | 20 49 74 20 62 72 69 6e |rowser. | It brin|
|000002a0| 67 73 20 75 70 20 61 20 | 6c 69 73 74 20 6f 66 20 |gs up a |list of |
|000002b0| 79 6f 75 72 20 6d 61 69 | 6c 20 66 6f 6c 64 65 72 |your mai|l folder|
|000002c0| 73 2c 20 79 6f 75 20 63 | 6c 69 63 6b 20 6f 6e 20 |s, you c|lick on |
|000002d0| 74 68 65 0a 6e 61 6d 65 | 2c 20 61 6e 64 20 69 74 |the.name|, and it|
|000002e0| 20 66 69 72 65 73 20 75 | 70 20 61 6e 20 69 6e 73 | fires u|p an ins|
|000002f0| 74 61 6e 63 65 20 6f 66 | 20 65 6c 6d 20 6f 6e 20 |tance of| elm on |
|00000300| 74 68 65 20 69 6e 64 69 | 63 61 74 65 64 20 66 6f |the indi|cated fo|
|00000310| 6c 64 65 72 2e 0a 0a 57 | 68 61 74 2c 20 79 6f 75 |lder...W|hat, you|
|00000320| 27 72 65 20 6e 6f 74 20 | 61 6e 20 65 6c 6d 20 66 |'re not |an elm f|
|00000330| 61 6e 3f 20 20 54 68 69 | 73 20 73 68 6f 75 6c 64 |an? Thi|s should|
|00000340| 20 62 65 20 75 73 65 66 | 75 6c 20 66 6f 72 20 2a | be usef|ul for *|
|00000350| 61 6e 79 2a 20 6d 61 69 | 6c 0a 72 65 61 64 69 6e |any* mai|l.readin|
|00000360| 67 20 70 72 6f 67 72 61 | 6d 2e 20 20 53 69 6d 70 |g progra|m. Simp|
|00000370| 6c 65 20 63 68 61 6e 67 | 65 20 74 68 65 20 27 65 |le chang|e the 'e|
|00000380| 6c 6d 27 20 63 6f 6d 6d | 61 6e 64 20 74 6f 20 74 |lm' comm|and to t|
|00000390| 68 65 20 6d 61 69 6c 65 | 72 20 6f 66 20 79 6f 75 |he maile|r of you|
|000003a0| 72 0a 63 68 6f 69 63 65 | 2e 0a 0a 49 6e 20 74 68 |r.choice|...In th|
|000003b0| 65 20 65 6c 6d 20 77 69 | 6e 64 6f 77 73 20 75 73 |e elm wi|ndows us|
|000003c0| 65 20 79 6f 75 72 20 73 | 74 61 6e 64 61 72 64 20 |e your s|tandard |
|000003d0| 65 6c 6d 20 63 6f 6d 6d | 61 6e 64 73 2e 20 20 49 |elm comm|ands. I|
|000003e0| 6e 20 74 68 65 20 62 72 | 6f 77 73 65 0a 77 69 6e |n the br|owse.win|
|000003f0| 64 6f 77 73 20 64 6f 20 | 64 6f 75 62 6c 65 2d 63 |dows do |double-c|
|00000400| 6c 69 63 6b 20 74 6f 20 | 73 65 6c 65 63 74 20 61 |lick to |select a|
|00000410| 20 6d 61 69 6c 62 6f 78 | 3b 20 64 6f 20 5e 51 20 | mailbox|; do ^Q |
|00000420| 6f 72 20 5e 43 20 74 6f | 20 65 78 69 74 20 74 68 |or ^C to| exit th|
|00000430| 65 0a 62 72 6f 77 73 65 | 20 77 69 6e 64 6f 77 73 |e.browse| windows|
|00000440| 2e 20 20 59 6f 75 20 6d | 61 79 20 77 61 6e 74 20 |. You m|ay want |
|00000450| 74 6f 20 73 65 74 20 74 | 68 65 20 22 64 69 72 73 |to set t|he "dirs|
|00000460| 77 69 74 63 68 22 20 61 | 6e 64 20 22 64 69 72 22 |witch" a|nd "dir"|
|00000470| 0a 76 61 72 69 61 62 6c | 65 73 20 74 6f 20 6d 61 |.variabl|es to ma|
|00000480| 74 63 68 20 79 6f 75 72 | 20 70 65 72 73 6f 6e 61 |tch your| persona|
|00000490| 6c 20 75 73 61 67 65 2e | 0a 0a 4c 65 73 74 20 61 |l usage.|..Lest a|
|000004a0| 6e 79 6f 6e 65 20 6a 75 | 6d 70 20 75 70 20 61 6e |nyone ju|mp up an|
|000004b0| 64 20 64 6f 77 6e 20 61 | 62 6f 75 74 20 67 69 76 |d down a|bout giv|
|000004c0| 65 6e 20 66 65 61 74 75 | 72 65 73 3a 20 74 68 69 |en featu|res: thi|
|000004d0| 73 20 77 61 73 20 73 6f | 0a 73 74 61 72 74 6c 69 |s was so|.startli|
|000004e0| 6e 67 6c 79 20 73 69 6d | 70 6c 65 20 61 6e 64 20 |ngly sim|ple and |
|000004f0| 66 75 6e 63 74 69 6f 6e | 61 6c 20 74 68 61 74 20 |function|al that |
|00000500| 49 20 61 6e 64 20 6f 74 | 68 65 72 73 20 61 6d 20 |I and ot|hers am |
|00000510| 61 6c 72 65 61 64 79 20 | 75 73 69 6e 67 0a 69 74 |already |using.it|
|00000520| 2e 20 20 54 68 65 72 65 | 27 73 20 61 6e 20 68 6f |. There|'s an ho|
|00000530| 75 72 20 6f 66 20 77 6f | 72 6b 20 74 6f 70 73 20 |ur of wo|rk tops |
|00000540| 69 6e 20 74 68 65 20 74 | 68 69 6e 67 2c 20 6d 6f |in the t|hing, mo|
|00000550| 73 74 20 6f 66 20 74 68 | 61 74 20 72 65 61 64 69 |st of th|at readi|
|00000560| 6e 67 0a 74 68 65 20 6d | 61 6e 75 61 6c 20 70 61 |ng.the m|anual pa|
|00000570| 67 65 2e 20 20 50 72 6f | 62 61 62 6c 79 20 38 30 |ge. Pro|bably 80|
|00000580| 25 20 6f 66 20 74 68 65 | 20 63 6f 64 65 20 69 73 |% of the| code is|
|00000590| 20 72 69 70 70 65 64 20 | 6f 66 66 20 64 69 72 65 | ripped |off dire|
|000005a0| 63 74 6c 79 20 66 72 6f | 6d 0a 74 68 65 20 74 6b |ctly fro|m.the tk|
|000005b0| 20 73 61 6d 70 6c 65 20 | 66 69 6c 65 20 62 72 6f | sample |file bro|
|000005c0| 77 73 65 72 2e 0a 0a 46 | 6f 72 20 74 68 6f 73 65 |wser...F|or those|
|000005d0| 20 72 65 61 64 69 6e 67 | 20 74 68 69 73 20 69 6e | reading| this in|
|000005e0| 20 63 6f 6d 70 2e 6d 61 | 69 6c 2e 65 6c 6d 2c 20 | comp.ma|il.elm, |
|000005f0| 74 6b 2f 74 63 6c 20 69 | 73 20 61 6e 20 58 20 77 |tk/tcl i|s an X w|
|00000600| 69 6e 64 6f 77 73 20 74 | 6f 6f 6c 6b 69 74 0a 61 |indows t|oolkit.a|
|00000610| 6e 64 20 63 6f 6d 6d 61 | 6e 64 20 70 72 6f 63 65 |nd comma|nd proce|
|00000620| 73 73 69 6e 67 20 6c 61 | 6e 67 75 61 67 65 2e 20 |ssing la|nguage. |
|00000630| 20 59 6f 75 20 63 61 6e | 20 64 6f 77 6e 6c 6f 61 | You can| downloa|
|00000640| 64 20 74 68 65 20 63 6f | 64 65 20 66 72 6f 6d 0a |d the co|de from.|
|00000650| 73 70 72 69 74 65 2e 62 | 65 72 6b 65 6c 65 79 2e |sprite.b|erkeley.|
|00000660| 65 64 75 3b 20 74 68 65 | 20 6c 61 6e 67 75 61 67 |edu; the| languag|
|00000670| 65 20 69 73 20 64 69 73 | 63 75 73 73 65 64 20 69 |e is dis|cussed i|
|00000680| 6e 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 74 63 6c 2c |n comp.l|ang.tcl,|
|00000690| 20 74 6f 0a 77 68 69 63 | 68 20 74 68 69 73 20 61 | to.whic|h this a|
|000006a0| 72 74 69 63 6c 65 20 69 | 73 20 63 72 6f 73 73 70 |rticle i|s crossp|
|000006b0| 6f 73 74 65 64 2e 0a 0a | 45 6e 6a 6f 79 2e 0a 0a |osted...|Enjoy...|
|000006c0| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|000006d0| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|000006e0| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|000006f0| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|00000700| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 75 6e |is line,| then un|
|00000710| 70 61 63 6b 0a 23 20 69 | 74 20 62 79 20 73 61 76 |pack.# i|t by sav|
|00000720| 69 6e 67 20 69 74 20 69 | 6e 74 6f 20 61 20 66 69 |ing it i|nto a fi|
|00000730| 6c 65 20 61 6e 64 20 74 | 79 70 69 6e 67 20 22 73 |le and t|yping "s|
|00000740| 68 20 66 69 6c 65 22 2e | 20 20 54 6f 20 6f 76 65 |h file".| To ove|
|00000750| 72 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 0a |rwrite e|xisting.|
|00000760| 23 20 66 69 6c 65 73 2c | 20 74 79 70 65 20 22 73 |# files,| type "s|
|00000770| 68 20 66 69 6c 65 20 2d | 63 22 2e 20 20 59 6f 75 |h file -|c". You|
|00000780| 20 63 61 6e 20 61 6c 73 | 6f 20 66 65 65 64 20 74 | can als|o feed t|
|00000790| 68 69 73 20 61 73 20 73 | 74 61 6e 64 61 72 64 20 |his as s|tandard |
|000007a0| 69 6e 70 75 74 20 76 69 | 61 0a 23 20 75 6e 73 68 |input vi|a.# unsh|
|000007b0| 61 72 2c 20 6f 72 20 62 | 79 20 74 79 70 69 6e 67 |ar, or b|y typing|
|000007c0| 20 22 73 68 20 3c 66 69 | 6c 65 22 2c 20 65 2e 67 | "sh <fi|le", e.g|
|000007d0| 2e 2e 20 20 49 66 20 74 | 68 69 73 20 61 72 63 68 |.. If t|his arch|
|000007e0| 69 76 65 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2c |ive is c|omplete,|
|000007f0| 20 79 6f 75 0a 23 20 77 | 69 6c 6c 20 73 65 65 20 | you.# w|ill see |
|00000800| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000810| 73 73 61 67 65 20 61 74 | 20 74 68 65 20 65 6e 64 |ssage at| the end|
|00000820| 3a 0a 23 09 09 22 45 6e | 64 20 6f 66 20 73 68 65 |:.#.."En|d of she|
|00000830| 6c 6c 20 61 72 63 68 69 | 76 65 2e 22 0a 23 20 43 |ll archi|ve.".# C|
|00000840| 6f 6e 74 65 6e 74 73 3a | 20 20 74 6b 65 6c 6d 0a |ontents:| tkelm.|
|00000850| 23 20 57 72 61 70 70 65 | 64 20 62 79 20 73 63 73 |# Wrappe|d by scs|
|00000860| 40 68 65 6c 61 2e 69 74 | 69 2e 6f 72 67 20 6f 6e |@hela.it|i.org on|
|00000870| 20 46 72 69 20 44 65 63 | 20 31 31 20 32 33 3a 35 | Fri Dec| 11 23:5|
|00000880| 34 3a 32 30 20 31 39 39 | 32 0a 50 41 54 48 3d 2f |4:20 199|2.PATH=/|
|00000890| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|000008a0| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|000008b0| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|000008c0| 74 6b 65 6c 6d 27 20 2d | 61 20 22 24 7b 31 7d 22 |tkelm' -|a "${1}"|
|000008d0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|000008e0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|000008f0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00000900| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00000910| 74 6b 65 6c 6d 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |tkelm'\"|.else.ec|
|00000920| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00000930| 69 6e 67 20 5c 22 27 74 | 6b 65 6c 6d 27 5c 22 20 |ing \"'t|kelm'\" |
|00000940| 5c 28 31 37 35 32 20 63 | 68 61 72 61 63 74 65 72 |\(1752 c|haracter|
|00000950| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00000960| 20 3e 27 74 6b 65 6c 6d | 27 20 3c 3c 27 45 4e 44 | >'tkelm|' <<'END|
|00000970| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 23 21 2f 75 73 |_OF_FILE|'.X#!/us|
|00000980| 72 2f 6c 6f 63 61 6c 2f | 62 69 6e 2f 77 69 73 68 |r/local/|bin/wish|
|00000990| 20 2d 66 0a 58 23 0a 58 | 23 20 54 68 69 73 20 73 | -f.X#.X|# This s|
|000009a0| 63 72 69 70 74 20 67 65 | 6e 65 72 61 74 65 73 20 |cript ge|nerates |
|000009b0| 61 20 64 69 72 65 63 74 | 6f 72 79 20 62 72 6f 77 |a direct|ory brow|
|000009c0| 73 65 72 2c 20 77 68 69 | 63 68 20 6c 69 73 74 73 |ser, whi|ch lists|
|000009d0| 20 74 68 65 20 77 6f 72 | 6b 69 6e 67 0a 58 23 20 | the wor|king.X# |
|000009e0| 64 69 72 65 63 74 6f 72 | 79 20 61 6e 64 20 61 6c |director|y and al|
|000009f0| 6c 6f 77 73 20 79 6f 75 | 20 74 6f 20 6f 70 65 6e |lows you| to open|
|00000a00| 20 66 69 6c 65 73 20 6f | 72 20 73 75 62 64 69 72 | files o|r subdir|
|00000a10| 65 63 74 6f 72 69 65 73 | 20 62 79 0a 58 23 20 64 |ectories| by.X# d|
|00000a20| 6f 75 62 6c 65 2d 63 6c | 69 63 6b 69 6e 67 2e 0a |ouble-cl|icking..|
|00000a30| 58 0a 58 23 20 43 72 65 | 61 74 65 20 61 20 73 63 |X.X# Cre|ate a sc|
|00000a40| 72 6f 6c 6c 62 61 72 20 | 6f 6e 20 74 68 65 20 72 |rollbar |on the r|
|00000a50| 69 67 68 74 20 73 69 64 | 65 20 6f 66 20 74 68 65 |ight sid|e of the|
|00000a60| 20 6d 61 69 6e 20 77 69 | 6e 64 6f 77 20 61 6e 64 | main wi|ndow and|
|00000a70| 20 61 20 6c 69 73 74 62 | 6f 78 0a 58 23 20 6f 6e | a listb|ox.X# on|
|00000a80| 20 74 68 65 20 6c 65 66 | 74 20 73 69 64 65 2e 0a | the lef|t side..|
|00000a90| 58 0a 58 23 20 54 68 65 | 73 65 20 61 72 65 20 74 |X.X# The|se are t|
|00000aa0| 68 65 20 73 77 69 74 63 | 68 65 73 20 6e 65 65 64 |he switc|hes need|
|00000ab0| 65 64 20 74 6f 20 67 65 | 6e 65 72 61 74 65 20 61 |ed to ge|nerate a|
|00000ac0| 20 6c 73 20 6c 69 73 74 | 69 6e 67 20 74 68 61 74 | ls list|ing that|
|00000ad0| 20 70 72 69 6e 74 73 0a | 58 23 20 61 6c 6c 20 66 | prints.|X# all f|
|00000ae0| 69 6c 65 73 20 65 78 63 | 65 70 74 20 2e 20 61 6e |iles exc|ept . an|
|00000af0| 64 20 2e 2e 2c 20 61 6e | 64 20 61 70 70 65 6e 64 |d .., an|d append|
|00000b00| 73 20 61 20 22 2f 22 20 | 74 6f 20 64 69 72 65 63 |s a "/" |to direc|
|00000b10| 74 6f 72 79 20 6e 61 6d | 65 73 2e 20 20 59 6f 75 |tory nam|es. You|
|00000b20| 72 0a 58 23 20 6d 69 6c | 65 61 67 65 20 6d 61 79 |r.X# mil|eage may|
|00000b30| 20 76 61 72 79 2e 0a 58 | 0a 58 73 65 74 20 64 69 | vary..X|.Xset di|
|00000b40| 72 73 77 69 74 63 68 20 | 22 2d 41 46 22 0a 58 0a |rswitch |"-AF".X.|
|00000b50| 58 23 20 54 68 65 20 64 | 65 66 61 75 6c 74 20 6c |X# The d|efault l|
|00000b60| 6f 63 61 74 69 6f 6e 20 | 6f 66 20 79 6f 75 72 20 |ocation |of your |
|00000b70| 6d 61 69 6c 20 66 6f 6c | 64 65 72 2e 20 20 45 6c |mail fol|der. El|
|00000b80| 6d 27 73 20 64 65 66 61 | 75 6c 74 20 69 73 20 22 |m's defa|ult is "|
|00000b90| 4d 61 69 6c 22 2c 0a 58 | 23 20 62 75 74 20 6d 61 |Mail",.X|# but ma|
|00000ba0| 6e 79 20 66 6f 6c 6b 73 | 20 6f 76 65 72 72 69 64 |ny folks| overrid|
|00000bb0| 65 20 74 68 69 73 2e 0a | 58 0a 58 73 65 74 20 64 |e this..|X.Xset d|
|00000bc0| 69 72 20 22 2e 6d 61 69 | 6c 62 6f 78 22 0a 58 0a |ir ".mai|lbox".X.|
|00000bd0| 58 73 63 72 6f 6c 6c 62 | 61 72 20 2e 73 63 72 6f |Xscrollb|ar .scro|
|00000be0| 6c 6c 20 2d 63 6f 6d 6d | 61 6e 64 20 22 2e 6c 69 |ll -comm|and ".li|
|00000bf0| 73 74 20 79 76 69 65 77 | 22 0a 58 6c 69 73 74 62 |st yview|".Xlistb|
|00000c00| 6f 78 20 2e 6c 69 73 74 | 20 2d 62 6f 72 64 65 72 |ox .list| -border|
|00000c10| 77 69 64 74 68 20 32 20 | 2d 79 73 63 72 6f 6c 6c |width 2 |-yscroll|
|00000c20| 20 22 2e 73 63 72 6f 6c | 6c 20 73 65 74 22 20 2d | ".scrol|l set" -|
|00000c30| 72 65 6c 69 65 66 20 72 | 61 69 73 65 64 20 2d 67 |relief r|aised -g|
|00000c40| 65 6f 6d 65 74 72 79 20 | 32 30 78 32 30 0a 58 70 |eometry |20x20.Xp|
|00000c50| 61 63 6b 20 61 70 70 65 | 6e 64 20 2e 20 2e 73 63 |ack appe|nd . .sc|
|00000c60| 72 6f 6c 6c 20 7b 72 69 | 67 68 74 20 66 69 6c 6c |roll {ri|ght fill|
|00000c70| 79 7d 20 2e 6c 69 73 74 | 20 7b 6c 65 66 74 20 65 |y} .list| {left e|
|00000c80| 78 70 61 6e 64 20 66 69 | 6c 6c 7d 0a 58 0a 58 23 |xpand fi|ll}.X.X#|
|00000c90| 20 54 68 65 20 70 72 6f | 63 65 64 75 72 65 20 62 | The pro|cedure b|
|00000ca0| 65 6c 6f 77 20 69 73 20 | 69 6e 76 6f 6b 65 64 20 |elow is |invoked |
|00000cb0| 74 6f 20 6f 70 65 6e 20 | 61 20 62 72 6f 77 73 65 |to open |a browse|
|00000cc0| 72 20 6f 6e 20 61 20 67 | 69 76 65 6e 20 66 69 6c |r on a g|iven fil|
|00000cd0| 65 3b 20 20 69 66 20 74 | 68 65 0a 58 23 20 66 69 |e; if t|he.X# fi|
|00000ce0| 6c 65 20 69 73 20 61 20 | 64 69 72 65 63 74 6f 72 |le is a |director|
|00000cf0| 79 20 74 68 65 6e 20 61 | 6e 6f 74 68 65 72 20 69 |y then a|nother i|
|00000d00| 6e 73 74 61 6e 63 65 20 | 6f 66 20 74 68 69 73 20 |nstance |of this |
|00000d10| 70 72 6f 67 72 61 6d 20 | 69 73 20 69 6e 76 6f 6b |program |is invok|
|00000d20| 65 64 3b 20 69 66 0a 58 | 23 20 74 68 65 20 66 69 |ed; if.X|# the fi|
|00000d30| 6c 65 20 69 73 20 61 20 | 72 65 67 75 6c 61 72 20 |le is a |regular |
|00000d40| 66 69 6c 65 20 74 68 65 | 6e 20 74 68 65 20 4d 78 |file the|n the Mx|
|00000d50| 20 65 64 69 74 6f 72 20 | 69 73 20 69 6e 76 6f 6b | editor |is invok|
|00000d60| 65 64 20 74 6f 20 64 69 | 73 70 6c 61 79 0a 58 23 |ed to di|splay.X#|
|00000d70| 20 74 68 65 20 66 69 6c | 65 2e 0a 58 0a 58 70 72 | the fil|e..X.Xpr|
|00000d80| 6f 63 20 6d 61 69 6c 62 | 72 6f 77 73 65 20 7b 64 |oc mailb|rowse {d|
|00000d90| 69 72 20 66 69 6c 65 7d | 20 7b 0a 58 20 20 20 20 |ir file}| {.X |
|00000da0| 69 66 20 7b 5b 73 74 72 | 69 6e 67 20 63 6f 6d 70 |if {[str|ing comp|
|00000db0| 61 72 65 20 24 64 69 72 | 20 22 2e 22 5d 20 21 3d |are $dir| "."] !=|
|00000dc0| 20 30 7d 20 7b 73 65 74 | 20 66 69 6c 65 20 24 64 | 0} {set| file $d|
|00000dd0| 69 72 2f 24 66 69 6c 65 | 7d 0a 58 20 20 20 20 69 |ir/$file|}.X i|
|00000de0| 66 20 5b 66 69 6c 65 20 | 69 73 64 69 72 65 63 74 |f [file |isdirect|
|00000df0| 6f 72 79 20 24 66 69 6c | 65 5d 20 7b 0a 58 09 65 |ory $fil|e] {.X.e|
|00000e00| 78 65 63 20 6d 61 69 6c | 62 72 6f 77 73 65 20 24 |xec mail|browse $|
|00000e10| 66 69 6c 65 20 26 0a 58 | 20 20 20 20 7d 20 65 6c |file &.X| } el|
|00000e20| 73 65 20 7b 0a 58 09 69 | 66 20 5b 66 69 6c 65 20 |se {.X.i|f [file |
|00000e30| 69 73 66 69 6c 65 20 24 | 66 69 6c 65 5d 20 7b 0a |isfile $|file] {.|
|00000e40| 58 09 20 20 20 20 65 78 | 65 63 20 2f 75 73 72 2f |X. ex|ec /usr/|
|00000e50| 62 69 6e 2f 58 31 31 2f | 78 74 65 72 6d 20 2d 54 |bin/X11/|xterm -T|
|00000e60| 20 24 66 69 6c 65 20 2d | 6e 20 24 66 69 6c 65 20 | $file -|n $file |
|00000e70| 2d 65 20 65 6c 6d 20 2d | 66 20 24 66 69 6c 65 20 |-e elm -|f $file |
|00000e80| 26 0a 58 09 7d 20 65 6c | 73 65 20 7b 0a 58 09 20 |&.X.} el|se {.X. |
|00000e90| 20 20 20 70 75 74 73 20 | 73 74 64 6f 75 74 20 22 | puts |stdout "|
|00000ea0| 5c 22 24 66 69 6c 65 5c | 22 20 69 73 6e 27 74 20 |\"$file\|" isn't |
|00000eb0| 61 20 64 69 72 65 63 74 | 6f 72 79 20 6f 72 20 72 |a direct|ory or r|
|00000ec0| 65 67 75 6c 61 72 20 66 | 69 6c 65 22 0a 58 09 7d |egular f|ile".X.}|
|00000ed0| 0a 58 20 20 20 20 7d 0a | 58 7d 0a 58 0a 58 23 20 |.X }.|X}.X.X# |
|00000ee0| 46 69 6c 6c 20 74 68 65 | 20 6c 69 73 74 62 6f 78 |Fill the| listbox|
|00000ef0| 20 77 69 74 68 20 61 20 | 6c 69 73 74 20 6f 66 20 | with a |list of |
|00000f00| 61 6c 6c 20 74 68 65 20 | 66 69 6c 65 73 20 69 6e |all the |files in|
|00000f10| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 20 28 | the dir|ectory (|
|00000f20| 72 75 6e 0a 58 23 20 74 | 68 65 20 22 6c 73 22 20 |run.X# t|he "ls" |
|00000f30| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 67 65 74 20 74 |command |to get t|
|00000f40| 68 61 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 29 |hat info|rmation)|
|00000f50| 2e 0a 58 0a 58 69 66 20 | 24 61 72 67 63 3e 30 20 |..X.Xif |$argc>0 |
|00000f60| 7b 73 65 74 20 64 69 72 | 20 5b 6c 69 6e 64 65 78 |{set dir| [lindex|
|00000f70| 20 24 61 72 67 76 20 30 | 5d 7d 0a 58 66 6f 72 65 | $argv 0|]}.Xfore|
|00000f80| 61 63 68 20 69 20 5b 65 | 78 65 63 20 6c 73 20 24 |ach i [e|xec ls $|
|00000f90| 64 69 72 73 77 69 74 63 | 68 20 24 64 69 72 5d 20 |dirswitc|h $dir] |
|00000fa0| 7b 0a 58 20 20 20 20 2e | 6c 69 73 74 20 69 6e 73 |{.X .|list ins|
|00000fb0| 65 72 74 20 65 6e 64 20 | 24 69 0a 58 7d 0a 58 0a |ert end |$i.X}.X.|
|00000fc0| 58 23 20 53 65 74 20 75 | 70 20 62 69 6e 64 69 6e |X# Set u|p bindin|
|00000fd0| 67 73 20 66 6f 72 20 74 | 68 65 20 62 72 6f 77 73 |gs for t|he brows|
|00000fe0| 65 72 2e 0a 58 0a 58 62 | 69 6e 64 20 2e 6c 69 73 |er..X.Xb|ind .lis|
|00000ff0| 74 20 3c 43 6f 6e 74 72 | 6f 6c 2d 71 3e 20 7b 64 |t <Contr|ol-q> {d|
|00001000| 65 73 74 72 6f 79 20 2e | 7d 0a 58 62 69 6e 64 20 |estroy .|}.Xbind |
|00001010| 2e 6c 69 73 74 20 3c 43 | 6f 6e 74 72 6f 6c 2d 63 |.list <C|ontrol-c|
|00001020| 3e 20 7b 64 65 73 74 72 | 6f 79 20 2e 7d 0a 58 66 |> {destr|oy .}.Xf|
|00001030| 6f 63 75 73 20 2e 6c 69 | 73 74 0a 58 62 69 6e 64 |ocus .li|st.Xbind|
|00001040| 20 2e 6c 69 73 74 20 3c | 44 6f 75 62 6c 65 2d 42 | .list <|Double-B|
|00001050| 75 74 74 6f 6e 2d 31 3e | 20 7b 66 6f 72 65 61 63 |utton-1>| {foreac|
|00001060| 68 20 69 20 5b 73 65 6c | 65 63 74 69 6f 6e 20 67 |h i [sel|ection g|
|00001070| 65 74 5d 20 7b 6d 61 69 | 6c 62 72 6f 77 73 65 20 |et] {mai|lbrowse |
|00001080| 24 64 69 72 20 24 69 7d | 7d 0a 45 4e 44 5f 4f 46 |$dir $i}|}.END_OF|
|00001090| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 31 37 |_FILE.if| test 17|
|000010a0| 35 32 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |52 -ne `|wc -c <'|
|000010b0| 74 6b 65 6c 6d 27 60 3b | 20 74 68 65 6e 0a 20 20 |tkelm'`;| then. |
|000010c0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|000010d0| 74 6b 65 6c 6d 27 5c 22 | 20 75 6e 70 61 63 6b 65 |tkelm'\"| unpacke|
|000010e0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|000010f0| 65 21 0a 66 69 0a 63 68 | 6d 6f 64 20 2b 78 20 27 |e!.fi.ch|mod +x '|
|00001100| 74 6b 65 6c 6d 27 0a 23 | 20 65 6e 64 20 6f 66 20 |tkelm'.#| end of |
|00001110| 27 74 6b 65 6c 6d 27 0a | 66 69 0a 65 63 68 6f 20 |'tkelm'.|fi.echo |
|00001120| 73 68 61 72 3a 20 45 6e | 64 20 6f 66 20 73 68 65 |shar: En|d of she|
|00001130| 6c 6c 20 61 72 63 68 69 | 76 65 2e 0a 65 78 69 74 |ll archi|ve..exit|
|00001140| 20 30 0a 2d 2d 20 0a 09 | 22 59 6f 75 20 63 61 6e | 0.-- ..|"You can|
|00001150| 27 74 20 67 65 74 20 68 | 65 72 65 20 66 72 6f 6d |'t get h|ere from|
|00001160| 20 68 65 72 65 2e 22 0a | | here.".| |
+--------+-------------------------+-------------------------+--------+--------+