home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-12-28 | 178.6 KB | [TEXT/ALFA] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: Tcl Commands
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Dec 28 10:44:15 1995, modified Thu Dec 28 10:44:15 1995, creator Alpha editor, type ASCII, 173481 bytes "Tcl Commands" , at 0x2a629 9095 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ALFA] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 54 63 6c 20 43 6f | 6d 6d 61 6e 64 73 00 00 |..Tcl Co|mmands..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 41 4c 46 | 41 01 00 00 00 00 00 00 |.TEXTALF|A.......|
|00000050| 00 00 00 00 02 a5 a9 00 | 00 23 87 ad 08 6b cf ad |........|.#...k..|
|00000060| 08 6b cf 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.k......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 09 e2 00 00 |........|........|
|00000080| 0d 0d 0d 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00000090| 20 20 20 20 54 63 6c 20 | 42 75 69 6c 74 2d 49 6e | Tcl |Built-In|
|000000a0| 20 43 6f 6d 6d 61 6e 64 | 73 0d 0d 0d 0d 5f 5f 5f | Command|s....___|
|000000b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 0d 0d |________|______..|
|000000f0| 4e 41 4d 45 0d 20 20 20 | 20 20 54 63 6c 20 2d 20 |NAME. | Tcl - |
|00000100| 53 75 6d 6d 61 72 79 20 | 6f 66 20 54 63 6c 20 6c |Summary |of Tcl l|
|00000110| 61 6e 67 75 61 67 65 20 | 73 79 6e 74 61 78 2e 0d |anguage |syntax..|
|00000120| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000130| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000140| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000150| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000160| 5f 0d 0d 0d 44 45 53 43 | 52 49 50 54 49 4f 4e 0d |_...DESC|RIPTION.|
|00000170| 20 20 20 20 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 | The| followi|
|00000180| 6e 67 20 72 75 6c 65 73 | 20 64 65 66 69 6e 65 20 |ng rules| define |
|00000190| 74 68 65 20 73 79 6e 74 | 61 78 20 61 6e 64 20 73 |the synt|ax and s|
|000001a0| 65 6d 61 6e 74 69 63 73 | 20 20 6f 66 20 20 74 68 |emantics| of th|
|000001b0| 65 0d 20 20 20 20 20 54 | 63 6c 20 6c 61 6e 67 75 |e. T|cl langu|
|000001c0| 61 67 65 3a 0d 0d 20 20 | 20 20 20 5b 31 5d 20 20 |age:.. | [1] |
|000001d0| 41 20 54 63 6c 20 73 63 | 72 69 70 74 20 69 73 20 |A Tcl sc|ript is |
|000001e0| 61 20 73 74 72 69 6e 67 | 20 63 6f 6e 74 61 69 6e |a string| contain|
|000001f0| 69 6e 67 20 6f 6e 65 20 | 20 6f 72 20 20 6d 6f 72 |ing one | or mor|
|00000200| 65 20 20 63 6f 6d 2d 0d | 20 20 20 20 20 20 20 20 |e com-.| |
|00000210| 20 20 6d 61 6e 64 73 2e | 20 20 53 65 6d 69 2d 63 | mands.| Semi-c|
|00000220| 6f 6c 6f 6e 73 20 61 6e | 64 20 6e 65 77 6c 69 6e |olons an|d newlin|
|00000230| 65 73 20 61 72 65 20 63 | 6f 6d 6d 61 6e 64 20 73 |es are c|ommand s|
|00000240| 65 70 61 72 61 74 6f 72 | 73 0d 20 20 20 20 20 20 |eparator|s. |
|00000250| 20 20 20 20 75 6e 6c 65 | 73 73 20 71 75 6f 74 65 | unle|ss quote|
|00000260| 64 20 61 73 20 64 65 73 | 63 72 69 62 65 64 20 62 |d as des|cribed b|
|00000270| 65 6c 6f 77 2e 20 20 43 | 6c 6f 73 65 20 20 62 72 |elow. C|lose br|
|00000280| 61 63 6b 65 74 73 20 20 | 61 72 65 0d 20 20 20 20 |ackets |are. |
|00000290| 20 20 20 20 20 20 63 6f | 6d 6d 61 6e 64 20 20 74 | co|mmand t|
|000002a0| 65 72 6d 69 6e 61 74 6f | 72 73 20 20 64 75 72 69 |erminato|rs duri|
|000002b0| 6e 67 20 20 63 6f 6d 6d | 61 6e 64 20 73 75 62 73 |ng comm|and subs|
|000002c0| 74 69 74 75 74 69 6f 6e | 20 28 73 65 65 0d 20 20 |titution| (see. |
|000002d0| 20 20 20 20 20 20 20 20 | 62 65 6c 6f 77 29 20 75 | |below) u|
|000002e0| 6e 6c 65 73 73 20 71 75 | 6f 74 65 64 2e 0d 0d 20 |nless qu|oted... |
|000002f0| 20 20 20 20 5b 32 5d 20 | 20 41 20 63 6f 6d 6d 61 | [2] | A comma|
|00000300| 6e 64 20 69 73 20 65 76 | 61 6c 75 61 74 65 64 20 |nd is ev|aluated |
|00000310| 69 6e 20 74 77 6f 20 73 | 74 65 70 73 2e 20 20 20 |in two s|teps. |
|00000320| 46 69 72 73 74 2c 20 20 | 74 68 65 20 20 54 63 6c |First, |the Tcl|
|00000330| 0d 20 20 20 20 20 20 20 | 20 20 20 69 6e 74 65 72 |. | inter|
|00000340| 70 72 65 74 65 72 20 20 | 62 72 65 61 6b 73 20 74 |preter |breaks t|
|00000350| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 69 6e 74 6f 20 |he comma|nd into |
|00000360| 77 6f 72 64 73 20 61 6e | 64 20 70 65 72 66 6f 72 |words an|d perfor|
|00000370| 6d 73 0d 20 20 20 20 20 | 20 20 20 20 20 73 75 62 |ms. | sub|
|00000380| 73 74 69 74 75 74 69 6f | 6e 73 20 61 73 20 64 65 |stitutio|ns as de|
|00000390| 73 63 72 69 62 65 64 20 | 62 65 6c 6f 77 2e 20 20 |scribed |below. |
|000003a0| 54 68 65 73 65 20 20 73 | 75 62 73 74 69 74 75 74 |These s|ubstitut|
|000003b0| 69 6f 6e 73 0d 20 20 20 | 20 20 20 20 20 20 20 61 |ions. | a|
|000003c0| 72 65 20 20 70 65 72 66 | 6f 72 6d 65 64 20 20 69 |re perf|ormed i|
|000003d0| 6e 20 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 20 |n the s|ame way |
|000003e0| 66 6f 72 20 61 6c 6c 20 | 63 6f 6d 6d 61 6e 64 73 |for all |commands|
|000003f0| 2e 20 20 54 68 65 0d 20 | 20 20 20 20 20 20 20 20 |. The. | |
|00000400| 20 66 69 72 73 74 20 77 | 6f 72 64 20 69 73 20 75 | first w|ord is u|
|00000410| 73 65 64 20 74 6f 20 6c | 6f 63 61 74 65 20 20 61 |sed to l|ocate a|
|00000420| 20 20 63 6f 6d 6d 61 6e | 64 20 20 70 72 6f 63 65 | comman|d proce|
|00000430| 64 75 72 65 20 20 74 6f | 0d 20 20 20 20 20 20 20 |dure to|. |
|00000440| 20 20 20 63 61 72 72 79 | 20 20 6f 75 74 20 20 74 | carry| out t|
|00000450| 68 65 20 20 63 6f 6d 6d | 61 6e 64 2c 20 20 74 68 |he comm|and, th|
|00000460| 65 6e 20 61 6c 6c 20 6f | 66 20 74 68 65 20 77 6f |en all o|f the wo|
|00000470| 72 64 73 20 6f 66 20 74 | 68 65 0d 20 20 20 20 20 |rds of t|he. |
|00000480| 20 20 20 20 20 63 6f 6d | 6d 61 6e 64 20 61 72 65 | com|mand are|
|00000490| 20 70 61 73 73 65 64 20 | 74 6f 20 74 68 65 20 63 | passed |to the c|
|000004a0| 6f 6d 6d 61 6e 64 20 70 | 72 6f 63 65 64 75 72 65 |ommand p|rocedure|
|000004b0| 2e 20 20 54 68 65 20 20 | 63 6f 6d 2d 0d 20 20 20 |. The |com-. |
|000004c0| 20 20 20 20 20 20 20 6d | 61 6e 64 20 20 70 72 6f | m|and pro|
|000004d0| 63 65 64 75 72 65 20 20 | 69 73 20 66 72 65 65 20 |cedure |is free |
|000004e0| 74 6f 20 69 6e 74 65 72 | 70 72 65 74 20 65 61 63 |to inter|pret eac|
|000004f0| 68 20 6f 66 20 69 74 73 | 20 77 6f 72 64 73 0d 20 |h of its| words. |
|00000500| 20 20 20 20 20 20 20 20 | 20 69 6e 20 61 6e 79 20 | | in any |
|00000510| 77 61 79 20 69 74 20 6c | 69 6b 65 73 2c 20 73 75 |way it l|ikes, su|
|00000520| 63 68 20 61 73 20 61 6e | 20 69 6e 74 65 67 65 72 |ch as an| integer|
|00000530| 2c 20 76 61 72 69 61 62 | 6c 65 20 6e 61 6d 65 2c |, variab|le name,|
|00000540| 0d 20 20 20 20 20 20 20 | 20 20 20 6c 69 73 74 2c |. | list,|
|00000550| 20 20 6f 72 20 20 54 63 | 6c 20 20 73 63 72 69 70 | or Tc|l scrip|
|00000560| 74 2e 20 20 20 44 69 66 | 66 65 72 65 6e 74 20 20 |t. Dif|ferent |
|00000570| 63 6f 6d 6d 61 6e 64 73 | 20 69 6e 74 65 72 70 72 |commands| interpr|
|00000580| 65 74 0d 20 20 20 20 20 | 20 20 20 20 20 74 68 65 |et. | the|
|00000590| 69 72 20 77 6f 72 64 73 | 20 64 69 66 66 65 72 65 |ir words| differe|
|000005a0| 6e 74 6c 79 2e 0d 0d 20 | 20 20 20 20 5b 33 5d 20 |ntly... | [3] |
|000005b0| 20 57 6f 72 64 73 20 6f | 66 20 61 20 63 6f 6d 6d | Words o|f a comm|
|000005c0| 61 6e 64 20 61 72 65 20 | 73 65 70 61 72 61 74 65 |and are |separate|
|000005d0| 64 20 62 79 20 77 68 69 | 74 65 20 73 70 61 63 65 |d by whi|te space|
|000005e0| 20 28 65 78 63 65 70 74 | 0d 20 20 20 20 20 20 20 | (except|. |
|000005f0| 20 20 20 66 6f 72 20 6e | 65 77 6c 69 6e 65 73 2c | for n|ewlines,|
|00000600| 20 77 68 69 63 68 20 61 | 72 65 20 63 6f 6d 6d 61 | which a|re comma|
|00000610| 6e 64 20 73 65 70 61 72 | 61 74 6f 72 73 29 2e 0d |nd separ|ators)..|
|00000620| 0d 20 20 20 20 20 5b 34 | 5d 20 20 49 66 20 74 68 |. [4|] If th|
|00000630| 65 20 20 66 69 72 73 74 | 20 20 63 68 61 72 61 63 |e first| charac|
|00000640| 74 65 72 20 20 6f 66 20 | 20 61 20 20 77 6f 72 64 |ter of | a word|
|00000650| 20 20 69 73 20 20 64 6f | 75 62 6c 65 2d 71 75 6f | is do|uble-quo|
|00000660| 74 65 0d 20 20 20 20 20 | 20 20 20 20 20 28 60 60 |te. | (``|
|00000670| 22 27 27 29 20 20 74 68 | 65 6e 20 20 74 68 65 20 |"'') th|en the |
|00000680| 20 77 6f 72 64 20 20 69 | 73 20 20 74 65 72 6d 69 | word i|s termi|
|00000690| 6e 61 74 65 64 20 20 62 | 79 20 20 74 68 65 20 20 |nated b|y the |
|000006a0| 6e 65 78 74 0d 20 20 20 | 20 20 20 20 20 20 20 64 |next. | d|
|000006b0| 6f 75 62 6c 65 2d 71 75 | 6f 74 65 20 63 68 61 72 |ouble-qu|ote char|
|000006c0| 61 63 74 65 72 2e 20 20 | 49 66 20 73 65 6d 69 2d |acter. |If semi-|
|000006d0| 63 6f 6c 6f 6e 73 2c 20 | 20 63 6c 6f 73 65 20 20 |colons, | close |
|000006e0| 62 72 61 63 6b 2d 0d 20 | 20 20 20 20 20 20 20 20 |brack-. | |
|000006f0| 20 65 74 73 2c 20 20 6f | 72 20 20 77 68 69 74 65 | ets, o|r white|
|00000700| 20 20 73 70 61 63 65 20 | 20 63 68 61 72 61 63 74 | space | charact|
|00000710| 65 72 73 20 28 69 6e 63 | 6c 75 64 69 6e 67 20 6e |ers (inc|luding n|
|00000720| 65 77 6c 69 6e 65 73 29 | 0d 20 20 20 20 20 20 20 |ewlines)|. |
|00000730| 20 20 20 61 70 70 65 61 | 72 20 62 65 74 77 65 65 | appea|r betwee|
|00000740| 6e 20 74 68 65 20 71 75 | 6f 74 65 73 20 20 74 68 |n the qu|otes th|
|00000750| 65 6e 20 20 74 68 65 79 | 20 20 61 72 65 20 20 74 |en they| are t|
|00000760| 72 65 61 74 65 64 20 20 | 61 73 0d 20 20 20 20 20 |reated |as. |
|00000770| 20 20 20 20 20 6f 72 64 | 69 6e 61 72 79 20 20 63 | ord|inary c|
|00000780| 68 61 72 61 63 74 65 72 | 73 20 61 6e 64 20 69 6e |haracter|s and in|
|00000790| 63 6c 75 64 65 64 20 69 | 6e 20 74 68 65 20 77 6f |cluded i|n the wo|
|000007a0| 72 64 2e 20 20 43 6f 6d | 6d 61 6e 64 0d 20 20 20 |rd. Com|mand. |
|000007b0| 20 20 20 20 20 20 20 73 | 75 62 73 74 69 74 75 74 | s|ubstitut|
|000007c0| 69 6f 6e 2c 20 76 61 72 | 69 61 62 6c 65 20 73 75 |ion, var|iable su|
|000007d0| 62 73 74 69 74 75 74 69 | 6f 6e 2c 20 61 6e 64 20 |bstituti|on, and |
|000007e0| 62 61 63 6b 73 6c 61 73 | 68 20 73 75 62 2d 0d 20 |backslas|h sub-. |
|000007f0| 20 20 20 20 20 20 20 20 | 20 73 74 69 74 75 74 69 | | stituti|
|00000800| 6f 6e 20 20 61 72 65 20 | 20 70 65 72 66 6f 72 6d |on are | perform|
|00000810| 65 64 20 6f 6e 20 74 68 | 65 20 63 68 61 72 61 63 |ed on th|e charac|
|00000820| 74 65 72 73 20 62 65 74 | 77 65 65 6e 20 74 68 65 |ters bet|ween the|
|00000830| 0d 20 20 20 20 20 20 20 | 20 20 20 71 75 6f 74 65 |. | quote|
|00000840| 73 20 61 73 20 64 65 73 | 63 72 69 62 65 64 20 62 |s as des|cribed b|
|00000850| 65 6c 6f 77 2e 20 20 54 | 68 65 20 64 6f 75 62 6c |elow. T|he doubl|
|00000860| 65 2d 71 75 6f 74 65 73 | 20 20 61 72 65 20 20 6e |e-quotes| are n|
|00000870| 6f 74 0d 20 20 20 20 20 | 20 20 20 20 20 72 65 74 |ot. | ret|
|00000880| 61 69 6e 65 64 20 61 73 | 20 70 61 72 74 20 6f 66 |ained as| part of|
|00000890| 20 74 68 65 20 77 6f 72 | 64 2e 0d 0d 20 20 20 20 | the wor|d... |
|000008a0| 20 5b 35 5d 20 20 49 66 | 20 74 68 65 20 66 69 72 | [5] If| the fir|
|000008b0| 73 74 20 63 68 61 72 61 | 63 74 65 72 20 6f 66 20 |st chara|cter of |
|000008c0| 20 61 20 20 77 6f 72 64 | 20 20 69 73 20 20 61 6e | a word| is an|
|000008d0| 20 20 6f 70 65 6e 20 20 | 62 72 61 63 65 0d 20 20 | open |brace. |
|000008e0| 20 20 20 20 20 20 20 20 | 28 60 60 7b 27 27 29 20 | |(``{'') |
|000008f0| 20 74 68 65 6e 20 20 74 | 68 65 20 20 77 6f 72 64 | then t|he word|
|00000900| 20 20 69 73 20 74 65 72 | 6d 69 6e 61 74 65 64 20 | is ter|minated |
|00000910| 62 79 20 74 68 65 20 6d | 61 74 63 68 69 6e 67 0d |by the m|atching.|
|00000920| 20 20 20 20 20 20 20 20 | 20 20 63 6c 6f 73 65 20 | | close |
|00000930| 62 72 61 63 65 20 28 60 | 60 7d 27 27 29 2e 20 20 |brace (`|`}''). |
|00000940| 42 72 61 63 65 73 20 6e | 65 73 74 20 77 69 74 68 |Braces n|est with|
|00000950| 69 6e 20 74 68 65 20 77 | 6f 72 64 3a 20 20 66 6f |in the w|ord: fo|
|00000960| 72 0d 20 20 20 20 20 20 | 20 20 20 20 65 61 63 68 |r. | each|
|00000970| 20 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 6f 70 65 | additi|onal ope|
|00000980| 6e 20 62 72 61 63 65 20 | 74 68 65 72 65 20 6d 75 |n brace |there mu|
|00000990| 73 74 20 62 65 20 61 6e | 20 61 64 64 69 74 69 6f |st be an| additio|
|000009a0| 6e 61 6c 0d 20 20 20 20 | 20 20 20 20 20 20 63 6c |nal. | cl|
|000009b0| 6f 73 65 20 62 72 61 63 | 65 20 28 68 6f 77 65 76 |ose brac|e (howev|
|000009c0| 65 72 2c 20 69 66 20 61 | 6e 20 6f 70 65 6e 20 62 |er, if a|n open b|
|000009d0| 72 61 63 65 20 6f 72 20 | 20 63 6c 6f 73 65 20 20 |race or | close |
|000009e0| 62 72 61 63 65 0d 20 20 | 20 20 20 20 20 20 20 20 |brace. | |
|000009f0| 77 69 74 68 69 6e 20 20 | 74 68 65 20 20 77 6f 72 |within |the wor|
|00000a00| 64 20 69 73 20 71 75 6f | 74 65 64 20 77 69 74 68 |d is quo|ted with|
|00000a10| 20 61 20 62 61 63 6b 73 | 6c 61 73 68 20 74 68 65 | a backs|lash the|
|00000a20| 6e 20 69 74 20 69 73 0d | 20 20 20 20 20 20 20 20 |n it is.| |
|00000a30| 20 20 6e 6f 74 20 63 6f | 75 6e 74 65 64 20 69 6e | not co|unted in|
|00000a40| 20 6c 6f 63 61 74 69 6e | 67 20 74 68 65 20 6d 61 | locatin|g the ma|
|00000a50| 74 63 68 69 6e 67 20 63 | 6c 6f 73 65 20 62 72 61 |tching c|lose bra|
|00000a60| 63 65 29 2e 20 20 20 4e | 6f 0d 20 20 20 20 20 20 |ce). N|o. |
|00000a70| 20 20 20 20 73 75 62 73 | 74 69 74 75 74 69 6f 6e | subs|titution|
|00000a80| 73 20 20 61 72 65 20 20 | 70 65 72 66 6f 72 6d 65 |s are |performe|
|00000a90| 64 20 6f 6e 20 74 68 65 | 20 63 68 61 72 61 63 74 |d on the| charact|
|00000aa0| 65 72 73 20 62 65 74 77 | 65 65 6e 0d 20 20 20 20 |ers betw|een. |
|00000ab0| 20 20 20 20 20 20 74 68 | 65 20 62 72 61 63 65 73 | th|e braces|
|00000ac0| 20 65 78 63 65 70 74 20 | 66 6f 72 20 20 62 61 63 | except |for bac|
|00000ad0| 6b 73 6c 61 73 68 2d 6e | 65 77 6c 69 6e 65 20 20 |kslash-n|ewline |
|00000ae0| 73 75 62 73 74 69 74 75 | 74 69 6f 6e 73 0d 20 20 |substitu|tions. |
|00000af0| 20 20 20 20 20 20 20 20 | 64 65 73 63 72 69 62 65 | |describe|
|00000b00| 64 20 20 62 65 6c 6f 77 | 2c 20 20 6e 6f 72 20 20 |d below|, nor |
|00000b10| 64 6f 20 73 65 6d 69 2d | 63 6f 6c 6f 6e 73 2c 20 |do semi-|colons, |
|00000b20| 6e 65 77 6c 69 6e 65 73 | 2c 20 63 6c 6f 73 65 0d |newlines|, close.|
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 62 72 61 63 6b 65 | | bracke|
|00000b40| 74 73 2c 20 6f 72 20 77 | 68 69 74 65 20 73 70 61 |ts, or w|hite spa|
|00000b50| 63 65 20 72 65 63 65 69 | 76 65 20 61 6e 79 20 73 |ce recei|ve any s|
|00000b60| 70 65 63 69 61 6c 20 20 | 69 6e 74 65 72 70 72 65 |pecial |interpre|
|00000b70| 2d 0d 20 20 20 20 20 20 | 20 20 20 20 74 61 74 69 |-. | tati|
|00000b80| 6f 6e 2e 20 20 20 54 68 | 65 20 20 77 6f 72 64 20 |on. Th|e word |
|00000b90| 77 69 6c 6c 20 63 6f 6e | 73 69 73 74 20 6f 66 20 |will con|sist of |
|00000ba0| 65 78 61 63 74 6c 79 20 | 74 68 65 20 63 68 61 72 |exactly |the char|
|00000bb0| 61 63 2d 0d 20 20 20 20 | 20 20 20 20 20 20 74 65 |ac-. | te|
|00000bc0| 72 73 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 6f |rs betwe|en the o|
|00000bd0| 75 74 65 72 20 62 72 61 | 63 65 73 2c 20 6e 6f 74 |uter bra|ces, not|
|00000be0| 20 69 6e 63 6c 75 64 69 | 6e 67 20 74 68 65 20 62 | includi|ng the b|
|00000bf0| 72 61 63 65 73 0d 20 20 | 20 20 20 20 20 20 20 20 |races. | |
|00000c00| 74 68 65 6d 73 65 6c 76 | 65 73 2e 0d 0d 20 20 20 |themselv|es... |
|00000c10| 20 20 5b 36 5d 20 20 49 | 66 20 61 20 77 6f 72 64 | [6] I|f a word|
|00000c20| 20 63 6f 6e 74 61 69 6e | 73 20 61 6e 20 6f 70 65 | contain|s an ope|
|00000c30| 6e 20 20 62 72 61 63 6b | 65 74 20 20 28 60 60 5b |n brack|et (``[|
|00000c40| 27 27 29 20 20 74 68 65 | 6e 20 20 54 63 6c 0d 20 |'') the|n Tcl. |
|00000c50| 20 20 20 20 20 20 20 20 | 20 70 65 72 66 6f 72 6d | | perform|
|00000c60| 73 20 20 63 6f 6d 6d 61 | 6e 64 20 20 73 75 62 73 |s comma|nd subs|
|00000c70| 74 69 74 75 74 69 6f 6e | 2e 20 20 54 6f 20 64 6f |titution|. To do|
|00000c80| 20 74 68 69 73 20 69 74 | 20 69 6e 76 6f 6b 65 73 | this it| invokes|
|00000c90| 0d 20 20 20 20 20 20 20 | 20 20 20 74 68 65 20 54 |. | the T|
|00000ca0| 63 6c 20 69 6e 74 65 72 | 70 72 65 74 65 72 20 72 |cl inter|preter r|
|00000cb0| 65 63 75 72 73 69 76 65 | 6c 79 20 74 6f 20 70 72 |ecursive|ly to pr|
|00000cc0| 6f 63 65 73 73 20 74 68 | 65 20 20 63 68 61 72 61 |ocess th|e chara|
|00000cd0| 63 2d 0d 20 20 20 20 20 | 20 20 20 20 20 74 65 72 |c-. | ter|
|00000ce0| 73 20 20 66 6f 6c 6c 6f | 77 69 6e 67 20 20 74 68 |s follo|wing th|
|00000cf0| 65 20 6f 70 65 6e 20 62 | 72 61 63 6b 65 74 20 61 |e open b|racket a|
|00000d00| 73 20 61 20 54 63 6c 20 | 73 63 72 69 70 74 2e 20 |s a Tcl |script. |
|00000d10| 20 54 68 65 0d 20 20 20 | 20 20 20 20 20 20 20 73 | The. | s|
|00000d20| 63 72 69 70 74 20 6d 61 | 79 20 63 6f 6e 74 61 69 |cript ma|y contai|
|00000d30| 6e 20 61 6e 79 20 6e 75 | 6d 62 65 72 20 6f 66 20 |n any nu|mber of |
|00000d40| 63 6f 6d 6d 61 6e 64 73 | 20 61 6e 64 20 20 6d 75 |commands| and mu|
|00000d50| 73 74 20 20 62 65 0d 20 | 20 20 20 20 20 20 20 20 |st be. | |
|00000d60| 20 74 65 72 6d 69 6e 61 | 74 65 64 20 20 62 79 20 | termina|ted by |
|00000d70| 20 61 20 63 6c 6f 73 65 | 20 62 72 61 63 6b 65 74 | a close| bracket|
|00000d80| 20 28 60 60 5d 27 27 29 | 2e 20 20 54 68 65 20 72 | (``]'')|. The r|
|00000d90| 65 73 75 6c 74 20 6f 66 | 0d 20 20 20 20 20 20 20 |esult of|. |
|00000da0| 20 20 20 74 68 65 20 73 | 63 72 69 70 74 20 28 69 | the s|cript (i|
|00000db0| 2e 65 2e 20 74 68 65 20 | 72 65 73 75 6c 74 20 6f |.e. the |result o|
|00000dc0| 66 20 20 69 74 73 20 20 | 6c 61 73 74 20 20 63 6f |f its |last co|
|00000dd0| 6d 6d 61 6e 64 29 20 20 | 69 73 0d 20 20 20 20 20 |mmand) |is. |
|00000de0| 20 20 20 20 20 73 75 62 | 73 74 69 74 75 74 65 64 | sub|stituted|
|00000df0| 20 20 69 6e 74 6f 20 74 | 68 65 20 77 6f 72 64 20 | into t|he word |
|00000e00| 69 6e 20 70 6c 61 63 65 | 20 6f 66 20 74 68 65 20 |in place| of the |
|00000e10| 62 72 61 63 6b 65 74 73 | 20 61 6e 64 0d 20 20 20 |brackets| and. |
|00000e20| 20 20 20 20 20 20 20 61 | 6c 6c 20 6f 66 20 74 68 | a|ll of th|
|00000e30| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 62 65 74 |e charac|ters bet|
|00000e40| 77 65 65 6e 20 74 68 65 | 6d 2e 20 20 54 68 65 72 |ween the|m. Ther|
|00000e50| 65 20 6d 61 79 20 20 62 | 65 20 20 61 6e 79 0d 20 |e may b|e any. |
|00000e60| 20 20 20 20 20 20 20 20 | 20 6e 75 6d 62 65 72 20 | | number |
|00000e70| 6f 66 20 63 6f 6d 6d 61 | 6e 64 20 73 75 62 73 74 |of comma|nd subst|
|00000e80| 69 74 75 74 69 6f 6e 73 | 20 69 6e 20 61 20 73 69 |itutions| in a si|
|00000e90| 6e 67 6c 65 20 77 6f 72 | 64 2e 20 20 43 6f 6d 2d |ngle wor|d. Com-|
|00000ea0| 0d 20 20 20 20 20 20 20 | 20 20 20 6d 61 6e 64 20 |. | mand |
|00000eb0| 73 75 62 73 74 69 74 75 | 74 69 6f 6e 20 69 73 20 |substitu|tion is |
|00000ec0| 6e 6f 74 20 70 65 72 66 | 6f 72 6d 65 64 20 6f 6e |not perf|ormed on|
|00000ed0| 20 77 6f 72 64 73 20 65 | 6e 63 6c 6f 73 65 64 20 | words e|nclosed |
|00000ee0| 69 6e 0d 20 20 20 20 20 | 20 20 20 20 20 62 72 61 |in. | bra|
|00000ef0| 63 65 73 2e 0d 0d 20 20 | 20 20 20 5b 37 5d 20 20 |ces... | [7] |
|00000f00| 49 66 20 61 20 77 6f 72 | 64 20 63 6f 6e 74 61 69 |If a wor|d contai|
|00000f10| 6e 73 20 61 20 64 6f 6c | 6c 61 72 2d 73 69 67 6e |ns a dol|lar-sign|
|00000f20| 20 28 60 60 24 27 27 29 | 20 74 68 65 6e 20 54 63 | (``$'')| then Tc|
|00000f30| 6c 20 20 70 65 72 2d 0d | 20 20 20 20 20 20 20 20 |l per-.| |
|00000f40| 20 20 66 6f 72 6d 73 20 | 20 76 61 72 69 61 62 6c | forms | variabl|
|00000f50| 65 20 20 73 75 62 73 74 | 69 74 75 74 69 6f 6e 3a |e subst|itution:|
|00000f60| 20 20 74 68 65 20 64 6f | 6c 6c 61 72 2d 73 69 67 | the do|llar-sig|
|00000f70| 6e 20 61 6e 64 20 74 68 | 65 0d 20 20 20 20 20 20 |n and th|e. |
|00000f80| 20 20 20 20 66 6f 6c 6c | 6f 77 69 6e 67 20 63 68 | foll|owing ch|
|00000f90| 61 72 61 63 74 65 72 73 | 20 61 72 65 20 72 65 70 |aracters| are rep|
|00000fa0| 6c 61 63 65 64 20 69 6e | 20 74 68 65 20 20 77 6f |laced in| the wo|
|00000fb0| 72 64 20 20 62 79 20 20 | 74 68 65 0d 20 20 20 20 |rd by |the. |
|00000fc0| 20 20 20 20 20 20 76 61 | 6c 75 65 20 20 6f 66 20 | va|lue of |
|00000fd0| 61 20 76 61 72 69 61 62 | 6c 65 2e 20 20 56 61 72 |a variab|le. Var|
|00000fe0| 69 61 62 6c 65 20 73 75 | 62 73 74 69 74 69 6f 6e |iable su|bstition|
|00000ff0| 20 6d 61 79 20 74 61 6b | 65 20 61 6e 79 0d 20 20 | may tak|e any. |
|00001000| 20 20 20 20 20 20 20 20 | 6f 66 20 74 68 65 20 66 | |of the f|
|00001010| 6f 6c 6c 6f 77 69 6e 67 | 20 66 6f 72 6d 73 3a 0d |ollowing| forms:.|
|00001020| 0d 20 20 20 20 20 20 20 | 20 20 20 24 6e 61 6d 65 |. | $name|
|00001030| 20 20 20 20 20 20 20 20 | 20 20 4e 61 6d 65 20 69 | | Name i|
|00001040| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 20 |s the na|me of a |
|00001050| 20 73 63 61 6c 61 72 20 | 20 76 61 72 69 61 62 6c | scalar | variabl|
|00001060| 65 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e;. | |
|00001070| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 68 65 20 | | the |
|00001080| 20 6e 61 6d 65 20 69 73 | 20 74 65 72 6d 69 6e 61 | name is| termina|
|00001090| 74 65 64 20 62 79 20 61 | 6e 79 20 63 68 61 72 61 |ted by a|ny chara|
|000010a0| 63 74 65 72 0d 20 20 20 | 20 20 20 20 20 20 20 20 |cter. | |
|000010b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 74 68 | | th|
|000010c0| 61 74 20 69 73 6e 27 74 | 20 61 20 6c 65 74 74 65 |at isn't| a lette|
|000010d0| 72 2c 20 20 64 69 67 69 | 74 2c 20 20 6f 72 20 20 |r, digi|t, or |
|000010e0| 75 6e 64 65 72 2d 0d 20 | 20 20 20 20 20 20 20 20 |under-. | |
|000010f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001100| 73 63 6f 72 65 2e 0d 0d | 20 20 20 20 20 20 20 20 |score...| |
|00001110| 20 20 24 6e 61 6d 65 28 | 69 6e 64 65 78 29 20 20 | $name(|index) |
|00001120| 20 4e 61 6d 65 20 67 69 | 76 65 73 20 74 68 65 20 | Name gi|ves the |
|00001130| 6e 61 6d 65 20 6f 66 20 | 61 6e 20 61 72 72 61 79 |name of |an array|
|00001140| 20 76 61 72 69 61 62 6c | 65 0d 20 20 20 20 20 20 | variabl|e. |
|00001150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001160| 20 20 20 61 6e 64 20 20 | 69 6e 64 65 78 20 20 67 | and |index g|
|00001170| 69 76 65 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |ives the| name of|
|00001180| 20 61 6e 20 65 6c 65 6d | 65 6e 74 0d 20 20 20 20 | an elem|ent. |
|00001190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011a0| 20 20 20 20 20 77 69 74 | 68 69 6e 20 74 68 61 74 | wit|hin that|
|000011b0| 20 61 72 72 61 79 2e 20 | 20 20 4e 61 6d 65 20 20 | array. | Name |
|000011c0| 6d 75 73 74 20 20 63 6f | 6e 74 61 69 6e 0d 20 20 |must co|ntain. |
|000011d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011e0| 20 20 20 20 20 20 20 6f | 6e 6c 79 20 20 6c 65 74 | o|nly let|
|000011f0| 74 65 72 73 2c 20 20 64 | 69 67 69 74 73 2c 20 61 |ters, d|igits, a|
|00001200| 6e 64 20 75 6e 64 65 72 | 73 63 6f 72 65 73 2e 0d |nd under|scores..|
|00001210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001220| 20 20 20 20 20 20 20 20 | 20 43 6f 6d 6d 61 6e 64 | | Command|
|00001230| 20 73 75 62 73 74 69 74 | 75 74 69 6f 6e 73 2c 20 | substit|utions, |
|00001240| 76 61 72 69 61 62 6c 65 | 20 20 73 75 62 73 74 69 |variable| substi|
|00001250| 2d 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |-. | |
|00001260| 20 20 20 20 20 20 20 20 | 20 20 20 74 75 74 69 6f | | tutio|
|00001270| 6e 73 2c 20 61 6e 64 20 | 62 61 63 6b 73 6c 61 73 |ns, and |backslas|
|00001280| 68 20 73 75 62 73 74 69 | 74 75 74 69 6f 6e 73 20 |h substi|tutions |
|00001290| 61 72 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |are. | |
|000012a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 65 72 | | per|
|000012b0| 66 6f 72 6d 65 64 20 6f | 6e 20 74 68 65 20 63 68 |formed o|n the ch|
|000012c0| 61 72 61 63 74 65 72 73 | 20 6f 66 20 69 6e 64 65 |aracters| of inde|
|000012d0| 78 2e 0d 0d 20 20 20 20 | 20 20 20 20 20 20 24 7b |x... | ${|
|000012e0| 6e 61 6d 65 7d 20 20 20 | 20 20 20 20 20 4e 61 6d |name} | Nam|
|000012f0| 65 20 69 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |e is the| name of|
|00001300| 20 61 20 20 73 63 61 6c | 61 72 20 20 76 61 72 69 | a scal|ar vari|
|00001310| 61 62 6c 65 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |able.. | |
|00001320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|00001330| 74 20 6d 61 79 20 63 6f | 6e 74 61 69 6e 20 61 6e |t may co|ntain an|
|00001340| 79 20 63 68 61 72 61 63 | 74 65 72 73 20 77 68 61 |y charac|ters wha|
|00001350| 74 73 6f 65 76 65 72 0d | 20 20 20 20 20 20 20 20 |tsoever.| |
|00001360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001370| 20 65 78 63 65 70 74 20 | 66 6f 72 20 63 6c 6f 73 | except |for clos|
|00001380| 65 20 62 72 61 63 65 73 | 2e 0d 0d 20 20 20 20 20 |e braces|... |
|00001390| 54 68 65 72 65 20 6d 61 | 79 20 62 65 20 61 6e 79 |There ma|y be any|
|000013a0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 76 61 72 69 61 | number |of varia|
|000013b0| 62 6c 65 20 73 75 62 73 | 74 69 74 75 74 69 6f 6e |ble subs|titution|
|000013c0| 73 20 69 6e 20 61 20 20 | 73 69 6e 2d 0d 20 20 20 |s in a |sin-. |
|000013d0| 20 20 67 6c 65 20 20 77 | 6f 72 64 2e 20 20 20 56 | gle w|ord. V|
|000013e0| 61 72 69 61 62 6c 65 20 | 73 75 62 73 74 69 74 75 |ariable |substitu|
|000013f0| 74 69 6f 6e 20 69 73 20 | 6e 6f 74 20 70 65 72 66 |tion is |not perf|
|00001400| 6f 72 6d 65 64 20 6f 6e | 20 77 6f 72 64 73 0d 20 |ormed on| words. |
|00001410| 20 20 20 20 65 6e 63 6c | 6f 73 65 64 20 69 6e 20 | encl|osed in |
|00001420| 62 72 61 63 65 73 2e 0d | 0d 20 20 20 20 20 5b 38 |braces..|. [8|
|00001430| 5d 20 20 49 66 20 61 20 | 62 61 63 6b 73 6c 61 73 |] If a |backslas|
|00001440| 68 20 20 28 60 60 5c 27 | 27 29 20 20 61 70 70 65 |h (``\'|') appe|
|00001450| 61 72 73 20 20 77 69 74 | 68 69 6e 20 20 61 20 20 |ars wit|hin a |
|00001460| 77 6f 72 64 20 20 74 68 | 65 6e 0d 20 20 20 20 20 |word th|en. |
|00001470| 20 20 20 20 20 62 61 63 | 6b 73 6c 61 73 68 20 20 | bac|kslash |
|00001480| 73 75 62 73 74 69 74 75 | 74 69 6f 6e 20 6f 63 63 |substitu|tion occ|
|00001490| 75 72 73 2e 20 20 49 6e | 20 61 6c 6c 20 63 61 73 |urs. In| all cas|
|000014a0| 65 73 20 62 75 74 20 74 | 68 6f 73 65 20 20 7c 0d |es but t|hose |.|
|000014b0| 20 20 20 20 20 20 20 20 | 20 20 64 65 73 63 72 69 | | descri|
|000014c0| 62 65 64 20 62 65 6c 6f | 77 20 74 68 65 20 62 61 |bed belo|w the ba|
|000014d0| 63 6b 73 6c 61 73 68 20 | 69 73 20 64 72 6f 70 70 |ckslash |is dropp|
|000014e0| 65 64 20 61 6e 64 20 20 | 74 68 65 20 20 66 6f 6c |ed and |the fol|
|000014f0| 2d 20 20 7c 0d 20 20 20 | 20 20 20 20 20 20 20 6c |- |. | l|
|00001500| 6f 77 69 6e 67 20 20 63 | 68 61 72 61 63 74 65 72 |owing c|haracter|
|00001510| 20 20 69 73 20 20 74 72 | 65 61 74 65 64 20 61 73 | is tr|eated as|
|00001520| 20 61 6e 20 6f 72 64 69 | 6e 61 72 79 20 63 68 61 | an ordi|nary cha|
|00001530| 72 61 63 74 65 72 20 20 | 7c 0d 20 20 20 20 20 20 |racter ||. |
|00001540| 20 20 20 20 61 6e 64 20 | 69 6e 63 6c 75 64 65 64 | and |included|
|00001550| 20 69 6e 20 74 68 65 20 | 77 6f 72 64 2e 20 20 54 | in the |word. T|
|00001560| 68 69 73 20 61 6c 6c 6f | 77 73 20 63 68 61 72 61 |his allo|ws chara|
|00001570| 63 74 65 72 73 20 20 73 | 75 63 68 0d 20 20 20 20 |cters s|uch. |
|00001580| 20 20 20 20 20 20 61 73 | 20 20 64 6f 75 62 6c 65 | as| double|
|00001590| 20 20 71 75 6f 74 65 73 | 2c 20 63 6c 6f 73 65 20 | quotes|, close |
|000015a0| 62 72 61 63 6b 65 74 73 | 2c 20 61 6e 64 20 64 6f |brackets|, and do|
|000015b0| 6c 6c 61 72 20 73 69 67 | 6e 73 20 74 6f 0d 20 20 |llar sig|ns to. |
|000015c0| 20 20 20 20 20 20 20 20 | 62 65 20 69 6e 63 6c 75 | |be inclu|
|000015d0| 64 65 64 20 69 6e 20 77 | 6f 72 64 73 20 77 69 74 |ded in w|ords wit|
|000015e0| 68 6f 75 74 20 20 74 72 | 69 67 67 65 72 69 6e 67 |hout tr|iggering|
|000015f0| 20 20 73 70 65 63 69 61 | 6c 20 20 70 72 6f 2d 0d | specia|l pro-.|
|00001600| 20 20 20 20 20 20 20 20 | 20 20 63 65 73 73 69 6e | | cessin|
|00001610| 67 2e 20 20 20 54 68 65 | 20 20 66 6f 6c 6c 6f 77 |g. The| follow|
|00001620| 69 6e 67 20 20 74 61 62 | 6c 65 20 20 6c 69 73 74 |ing tab|le list|
|00001630| 73 20 20 74 68 65 20 20 | 62 61 63 6b 73 6c 61 73 |s the |backslas|
|00001640| 68 0d 20 20 20 20 20 20 | 20 20 20 20 73 65 71 75 |h. | sequ|
|00001650| 65 6e 63 65 73 20 74 68 | 61 74 20 61 72 65 20 68 |ences th|at are h|
|00001660| 61 6e 64 6c 65 64 20 73 | 70 65 63 69 61 6c 6c 79 |andled s|pecially|
|00001670| 2c 20 20 61 6c 6f 6e 67 | 20 20 77 69 74 68 20 20 |, along| with |
|00001680| 74 68 65 0d 20 20 20 20 | 20 20 20 20 20 20 76 61 |the. | va|
|00001690| 6c 75 65 20 74 68 61 74 | 20 72 65 70 6c 61 63 65 |lue that| replace|
|000016a0| 73 20 65 61 63 68 20 73 | 65 71 75 65 6e 63 65 2e |s each s|equence.|
|000016b0| 0d 0d 20 20 20 20 20 20 | 20 20 20 20 5c 61 20 20 |.. | \a |
|000016c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016f0| 20 20 20 20 20 20 20 20 | 20 20 7c 7c 0d 20 20 20 | | ||. |
|00001700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 75 64 | | Aud|
|00001710| 69 62 6c 65 20 61 6c 65 | 72 74 20 28 62 65 6c 6c |ible ale|rt (bell|
|00001720| 29 20 28 30 78 37 29 2e | 0d 0d 20 20 20 20 20 20 |) (0x7).|.. |
|00001730| 20 20 20 20 5c 62 20 20 | 20 20 42 61 63 6b 73 70 | \b | Backsp|
|00001740| 61 63 65 20 28 30 78 38 | 29 2e 0d 0d 20 20 20 20 |ace (0x8|)... |
|00001750| 20 20 20 20 20 20 5c 66 | 20 20 20 20 46 6f 72 6d | \f| Form|
|00001760| 20 66 65 65 64 20 28 30 | 78 63 29 2e 0d 0d 20 20 | feed (0|xc)... |
|00001770| 20 20 20 20 20 20 20 20 | 5c 6e 20 20 20 20 4e 65 | |\n Ne|
|00001780| 77 6c 69 6e 65 20 28 30 | 78 61 29 2e 0d 0d 20 20 |wline (0|xa)... |
|00001790| 20 20 20 20 20 20 20 20 | 5c 72 20 20 20 20 43 61 | |\r Ca|
|000017a0| 72 72 69 61 67 65 2d 72 | 65 74 75 72 6e 20 28 30 |rriage-r|eturn (0|
|000017b0| 78 64 29 2e 0d 0d 20 20 | 20 20 20 20 20 20 20 20 |xd)... | |
|000017c0| 5c 74 20 20 20 20 54 61 | 62 20 28 30 78 39 29 2e |\t Ta|b (0x9).|
|000017d0| 0d 0d 20 20 20 20 20 20 | 20 20 20 20 5c 76 20 20 |.. | \v |
|000017e0| 20 20 56 65 72 74 69 63 | 61 6c 20 74 61 62 20 28 | Vertic|al tab (|
|000017f0| 30 78 62 29 2e 0d 0d 20 | 20 20 20 20 20 20 20 20 |0xb)... | |
|00001800| 20 5c 3c 6e 65 77 6c 69 | 6e 65 3e 77 68 69 74 65 | \<newli|ne>white|
|00001810| 53 70 61 63 65 0d 20 20 | 20 20 20 20 20 20 20 20 |Space. | |
|00001820| 20 20 20 20 20 20 41 20 | 73 69 6e 67 6c 65 20 73 | A |single s|
|00001830| 70 61 63 65 20 63 68 61 | 72 61 63 74 65 72 20 72 |pace cha|racter r|
|00001840| 65 70 6c 61 63 65 73 20 | 74 68 65 20 20 62 61 63 |eplaces |the bac|
|00001850| 6b 73 6c 61 73 68 2c 20 | 20 7c 0d 20 20 20 20 20 |kslash, | |. |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 6e 65 77 6c 69 | | newli|
|00001870| 6e 65 2c 20 20 61 6e 64 | 20 20 61 6c 6c 20 77 68 |ne, and| all wh|
|00001880| 69 74 65 20 73 70 61 63 | 65 20 61 66 74 65 72 20 |ite spac|e after |
|00001890| 74 68 65 20 6e 65 77 6c | 69 6e 65 2e 20 20 7c 0d |the newl|ine. |.|
|000018a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018b0| 54 68 69 73 20 62 61 63 | 6b 73 6c 61 73 68 20 73 |This bac|kslash s|
|000018c0| 65 71 75 65 6e 63 65 20 | 69 73 20 75 6e 69 71 75 |equence |is uniqu|
|000018d0| 65 20 69 6e 20 74 68 61 | 74 20 20 69 74 20 20 69 |e in tha|t it i|
|000018e0| 73 20 20 7c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |s |. | |
|000018f0| 20 20 20 20 20 72 65 70 | 6c 61 63 65 64 20 20 69 | rep|laced i|
|00001900| 6e 20 20 61 20 73 65 70 | 61 72 61 74 65 20 70 72 |n a sep|arate pr|
|00001910| 65 2d 70 61 73 73 20 62 | 65 66 6f 72 65 20 74 68 |e-pass b|efore th|
|00001920| 65 20 63 6f 6d 2d 20 20 | 7c 0d 20 20 20 20 20 20 |e com- ||. |
|00001930| 20 20 20 20 20 20 20 20 | 20 20 6d 61 6e 64 20 69 | | mand i|
|00001940| 73 20 61 63 74 75 61 6c | 6c 79 20 70 61 72 73 65 |s actual|ly parse|
|00001950| 64 2e 20 20 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |d. This| means t|
|00001960| 68 61 74 20 69 74 20 77 | 69 6c 6c 20 20 7c 0d 20 |hat it w|ill |. |
|00001970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00001980| 65 20 20 72 65 70 6c 61 | 63 65 64 20 20 65 76 65 |e repla|ced eve|
|00001990| 6e 20 77 68 65 6e 20 69 | 74 20 6f 63 63 75 72 73 |n when i|t occurs|
|000019a0| 20 62 65 74 77 65 65 6e | 20 62 72 61 63 65 73 2c | between| braces,|
|000019b0| 20 20 7c 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | |. | |
|000019c0| 20 20 20 20 61 6e 64 20 | 74 68 65 20 72 65 73 75 | and |the resu|
|000019d0| 6c 74 69 6e 67 20 73 70 | 61 63 65 20 77 69 6c 6c |lting sp|ace will|
|000019e0| 20 62 65 20 74 72 65 61 | 74 65 64 20 61 73 20 61 | be trea|ted as a|
|000019f0| 20 77 6f 72 64 20 20 7c | 0d 20 20 20 20 20 20 20 | word ||. |
|00001a00| 20 20 20 20 20 20 20 20 | 20 73 65 70 61 72 61 74 | | separat|
|00001a10| 6f 72 20 69 66 20 69 74 | 20 69 73 6e 27 74 20 69 |or if it| isn't i|
|00001a20| 6e 20 62 72 61 63 65 73 | 20 6f 72 20 71 75 6f 74 |n braces| or quot|
|00001a30| 65 73 2e 0d 0d 20 20 20 | 20 20 20 20 20 20 20 5c |es... | \|
|00001a40| 5c 20 20 20 20 42 61 63 | 6b 73 6c 61 73 68 20 28 |\ Bac|kslash (|
|00001a50| 60 60 5c 27 27 29 2e 0d | 0d 20 20 20 20 20 20 20 |``\'')..|. |
|00001a60| 20 20 20 5c 6f 6f 6f 20 | 20 54 68 65 20 64 69 67 | \ooo | The dig|
|00001a70| 69 74 73 20 6f 6f 6f 20 | 28 6f 6e 65 2c 20 74 77 |its ooo |(one, tw|
|00001a80| 6f 2c 20 6f 72 20 74 68 | 72 65 65 20 6f 66 20 74 |o, or th|ree of t|
|00001a90| 68 65 6d 29 20 20 67 69 | 76 65 0d 20 20 20 20 20 |hem) gi|ve. |
|00001aa0| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 65 20 6f | | the o|
|00001ab0| 63 74 61 6c 20 76 61 6c | 75 65 20 6f 66 20 74 68 |ctal val|ue of th|
|00001ac0| 65 20 63 68 61 72 61 63 | 74 65 72 2e 0d 0d 20 20 |e charac|ter... |
|00001ad0| 20 20 20 20 20 20 20 20 | 5c 78 68 68 20 20 54 68 | |\xhh Th|
|00001ae0| 65 20 68 65 78 61 64 65 | 63 69 6d 61 6c 20 64 69 |e hexade|cimal di|
|00001af0| 67 69 74 73 20 68 68 20 | 20 67 69 76 65 20 20 74 |gits hh | give t|
|00001b00| 68 65 20 20 68 65 78 61 | 64 65 63 69 6d 61 6c 20 |he hexa|decimal |
|00001b10| 20 7c 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | |. | |
|00001b20| 20 20 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 20 | value| of the |
|00001b30| 63 68 61 72 61 63 74 65 | 72 2e 20 20 41 6e 79 20 |characte|r. Any |
|00001b40| 6e 75 6d 62 65 72 20 6f | 66 20 64 69 67 69 74 73 |number o|f digits|
|00001b50| 20 6d 61 79 20 20 7c 0d | 20 20 20 20 20 20 20 20 | may |.| |
|00001b60| 20 20 20 20 20 20 20 20 | 62 65 20 70 72 65 73 65 | |be prese|
|00001b70| 6e 74 2e 0d 0d 20 20 20 | 20 20 42 61 63 6b 73 6c |nt... | Backsl|
|00001b80| 61 73 68 20 73 75 62 73 | 74 69 74 75 74 69 6f 6e |ash subs|titution|
|00001b90| 20 69 73 20 6e 6f 74 20 | 70 65 72 66 6f 72 6d 65 | is not |performe|
|00001ba0| 64 20 6f 6e 20 77 6f 72 | 64 73 20 65 6e 63 6c 6f |d on wor|ds enclo|
|00001bb0| 73 65 64 20 69 6e 0d 20 | 20 20 20 20 62 72 61 63 |sed in. | brac|
|00001bc0| 65 73 2c 20 65 78 63 65 | 70 74 20 66 6f 72 20 62 |es, exce|pt for b|
|00001bd0| 61 63 6b 73 6c 61 73 68 | 2d 6e 65 77 6c 69 6e 65 |ackslash|-newline|
|00001be0| 20 61 73 20 64 65 73 63 | 72 69 62 65 64 20 61 62 | as desc|ribed ab|
|00001bf0| 6f 76 65 2e 0d 0d 20 20 | 20 20 20 5b 39 5d 20 20 |ove... | [9] |
|00001c00| 49 66 20 61 20 68 61 73 | 68 20 63 68 61 72 61 63 |If a has|h charac|
|00001c10| 74 65 72 20 28 60 60 23 | 27 27 29 20 61 70 70 65 |ter (``#|'') appe|
|00001c20| 61 72 73 20 61 74 20 20 | 61 20 20 70 6f 69 6e 74 |ars at |a point|
|00001c30| 20 20 77 68 65 72 65 0d | 20 20 20 20 20 20 20 20 | where.| |
|00001c40| 20 20 54 63 6c 20 20 69 | 73 20 65 78 70 65 63 74 | Tcl i|s expect|
|00001c50| 69 6e 67 20 74 68 65 20 | 66 69 72 73 74 20 63 68 |ing the |first ch|
|00001c60| 61 72 61 63 74 65 72 20 | 6f 66 20 74 68 65 20 66 |aracter |of the f|
|00001c70| 69 72 73 74 20 77 6f 72 | 64 0d 20 20 20 20 20 20 |irst wor|d. |
|00001c80| 20 20 20 20 6f 66 20 61 | 20 63 6f 6d 6d 61 6e 64 | of a| command|
|00001c90| 2c 20 74 68 65 6e 20 74 | 68 65 20 68 61 73 68 20 |, then t|he hash |
|00001ca0| 63 68 61 72 61 63 74 65 | 72 20 61 6e 64 20 20 74 |characte|r and t|
|00001cb0| 68 65 20 20 63 68 61 72 | 61 63 2d 0d 20 20 20 20 |he char|ac-. |
|00001cc0| 20 20 20 20 20 20 74 65 | 72 73 20 20 74 68 61 74 | te|rs that|
|00001cd0| 20 20 66 6f 6c 6c 6f 77 | 20 69 74 2c 20 75 70 20 | follow| it, up |
|00001ce0| 74 68 72 6f 75 67 68 20 | 74 68 65 20 6e 65 78 74 |through |the next|
|00001cf0| 20 6e 65 77 6c 69 6e 65 | 2c 20 61 72 65 0d 20 20 | newline|, are. |
|00001d00| 20 20 20 20 20 20 20 20 | 74 72 65 61 74 65 64 20 | |treated |
|00001d10| 61 73 20 61 20 63 6f 6d | 6d 65 6e 74 20 61 6e 64 |as a com|ment and|
|00001d20| 20 69 67 6e 6f 72 65 64 | 2e 20 20 54 68 65 20 63 | ignored|. The c|
|00001d30| 6f 6d 6d 65 6e 74 20 20 | 63 68 61 72 61 63 2d 0d |omment |charac-.|
|00001d40| 20 20 20 20 20 20 20 20 | 20 20 74 65 72 20 6f 6e | | ter on|
|00001d50| 6c 79 20 68 61 73 20 73 | 69 67 6e 69 66 69 63 61 |ly has s|ignifica|
|00001d60| 6e 63 65 20 77 68 65 6e | 20 69 74 20 61 70 70 65 |nce when| it appe|
|00001d70| 61 72 73 20 61 74 20 74 | 68 65 20 62 65 67 69 6e |ars at t|he begin|
|00001d80| 2d 0d 20 20 20 20 20 20 | 20 20 20 20 6e 69 6e 67 |-. | ning|
|00001d90| 20 6f 66 20 61 20 63 6f | 6d 6d 61 6e 64 2e 0d 0d | of a co|mmand...|
|00001da0| 20 20 20 20 20 5b 31 30 | 5d 20 45 61 63 68 20 63 | [10|] Each c|
|00001db0| 68 61 72 61 63 74 65 72 | 20 69 73 20 70 72 6f 63 |haracter| is proc|
|00001dc0| 65 73 73 65 64 20 65 78 | 61 63 74 6c 79 20 20 6f |essed ex|actly o|
|00001dd0| 6e 63 65 20 20 62 79 20 | 20 74 68 65 20 20 54 63 |nce by | the Tc|
|00001de0| 6c 0d 20 20 20 20 20 20 | 20 20 20 20 69 6e 74 65 |l. | inte|
|00001df0| 72 70 72 65 74 65 72 20 | 61 73 20 70 61 72 74 20 |rpreter |as part |
|00001e00| 6f 66 20 63 72 65 61 74 | 69 6e 67 20 74 68 65 20 |of creat|ing the |
|00001e10| 77 6f 72 64 73 20 6f 66 | 20 61 20 63 6f 6d 6d 61 |words of| a comma|
|00001e20| 6e 64 2e 0d 0d 20 20 20 | 20 20 20 20 20 20 20 46 |nd... | F|
|00001e30| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 69 66 20 20 |or examp|le, if |
|00001e40| 76 61 72 69 61 62 6c 65 | 20 20 73 75 62 73 74 69 |variable| substi|
|00001e50| 74 69 6f 6e 20 20 6f 63 | 63 75 72 73 20 20 74 68 |tion oc|curs th|
|00001e60| 65 6e 20 20 6e 6f 0d 20 | 20 20 20 20 20 20 20 20 |en no. | |
|00001e70| 20 66 75 72 74 68 65 72 | 20 20 73 75 62 73 74 69 | further| substi|
|00001e80| 74 69 6f 6e 73 20 20 61 | 72 65 20 70 65 72 66 6f |tions a|re perfo|
|00001e90| 72 6d 65 64 20 6f 6e 20 | 74 68 65 20 76 61 6c 75 |rmed on |the valu|
|00001ea0| 65 20 6f 66 20 74 68 65 | 0d 20 20 20 20 20 20 20 |e of the|. |
|00001eb0| 20 20 20 76 61 72 69 61 | 62 6c 65 3b 20 20 74 68 | varia|ble; th|
|00001ec0| 65 20 76 61 6c 75 65 20 | 69 73 20 69 6e 73 65 72 |e value |is inser|
|00001ed0| 74 65 64 20 69 6e 74 6f | 20 74 68 65 20 20 77 6f |ted into| the wo|
|00001ee0| 72 64 20 20 76 65 72 62 | 61 2d 0d 20 20 20 20 20 |rd verb|a-. |
|00001ef0| 20 20 20 20 20 74 69 6d | 2e 20 20 20 49 66 20 20 | tim|. If |
|00001f00| 63 6f 6d 6d 61 6e 64 20 | 20 73 75 62 73 74 69 74 |command | substit|
|00001f10| 75 74 69 6f 6e 20 6f 63 | 63 75 72 73 20 74 68 65 |ution oc|curs the|
|00001f20| 6e 20 74 68 65 20 6e 65 | 73 74 65 64 0d 20 20 20 |n the ne|sted. |
|00001f30| 20 20 20 20 20 20 20 63 | 6f 6d 6d 61 6e 64 20 69 | c|ommand i|
|00001f40| 73 20 70 72 6f 63 65 73 | 73 65 64 20 65 6e 74 69 |s proces|sed enti|
|00001f50| 72 65 6c 79 20 62 79 20 | 74 68 65 20 72 65 63 75 |rely by |the recu|
|00001f60| 72 73 69 76 65 20 63 61 | 6c 6c 20 20 74 6f 0d 20 |rsive ca|ll to. |
|00001f70| 20 20 20 20 20 20 20 20 | 20 74 68 65 20 20 54 63 | | the Tc|
|00001f80| 6c 20 20 69 6e 74 65 72 | 70 72 65 74 65 72 3b 20 |l inter|preter; |
|00001f90| 20 6e 6f 20 20 73 75 62 | 73 74 69 74 75 74 69 6f | no sub|stitutio|
|00001fa0| 6e 73 20 20 61 72 65 20 | 70 65 72 66 6f 6d 65 64 |ns are |perfomed|
|00001fb0| 0d 20 20 20 20 20 20 20 | 20 20 20 62 65 66 6f 72 |. | befor|
|00001fc0| 65 20 6d 61 6b 69 6e 67 | 20 74 68 65 20 72 65 63 |e making| the rec|
|00001fd0| 75 72 73 69 76 65 20 63 | 61 6c 6c 20 61 6e 64 20 |ursive c|all and |
|00001fe0| 6e 6f 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 73 75 |no addit|ional su|
|00001ff0| 62 2d 0d 20 20 20 20 20 | 20 20 20 20 20 73 74 69 |b-. | sti|
|00002000| 74 75 74 69 6f 6e 73 20 | 20 61 72 65 20 20 70 65 |tutions | are pe|
|00002010| 72 66 6f 72 6d 65 64 20 | 20 6f 6e 20 74 68 65 20 |rformed | on the |
|00002020| 72 65 73 75 6c 74 20 6f | 66 20 74 68 65 20 6e 65 |result o|f the ne|
|00002030| 73 74 65 64 0d 20 20 20 | 20 20 20 20 20 20 20 73 |sted. | s|
|00002040| 63 72 69 70 74 2e 0d 0d | 20 20 20 20 20 5b 31 31 |cript...| [11|
|00002050| 5d 20 53 75 62 73 74 69 | 74 75 74 69 6f 6e 73 20 |] Substi|tutions |
|00002060| 64 6f 20 6e 6f 74 20 61 | 66 66 65 63 74 20 74 68 |do not a|ffect th|
|00002070| 65 20 77 6f 72 64 20 20 | 62 6f 75 6e 64 61 72 69 |e word |boundari|
|00002080| 65 73 20 20 6f 66 20 20 | 61 0d 20 20 20 20 20 20 |es of |a. |
|00002090| 20 20 20 20 63 6f 6d 6d | 61 6e 64 2e 20 20 46 6f | comm|and. Fo|
|000020a0| 72 20 65 78 61 6d 70 6c | 65 2c 20 64 75 72 69 6e |r exampl|e, durin|
|000020b0| 67 20 76 61 72 69 61 62 | 6c 65 20 73 75 62 73 74 |g variab|le subst|
|000020c0| 69 74 75 74 69 6f 6e 20 | 74 68 65 0d 20 20 20 20 |itution |the. |
|000020d0| 20 20 20 20 20 20 65 6e | 74 69 72 65 20 76 61 6c | en|tire val|
|000020e0| 75 65 20 6f 66 20 74 68 | 65 20 76 61 72 69 61 62 |ue of th|e variab|
|000020f0| 6c 65 20 62 65 63 6f 6d | 65 73 20 70 61 72 74 20 |le becom|es part |
|00002100| 6f 66 20 20 61 20 20 73 | 69 6e 67 6c 65 0d 20 20 |of a s|ingle. |
|00002110| 20 20 20 20 20 20 20 20 | 77 6f 72 64 2c 20 65 76 | |word, ev|
|00002120| 65 6e 20 69 66 20 74 68 | 65 20 76 61 72 69 61 62 |en if th|e variab|
|00002130| 6c 65 27 73 20 76 61 6c | 75 65 20 63 6f 6e 74 61 |le's val|ue conta|
|00002140| 69 6e 73 20 73 70 61 63 | 65 73 2e 0d 0d 0d 0d 54 |ins spac|es.....T|
|00002150| 63 6c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |cl | |
|00002160| 20 20 20 20 20 20 20 20 | 4c 61 73 74 20 63 68 61 | |Last cha|
|00002170| 6e 67 65 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |nge: | |
|00002180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 34 | | 4|
|00002190| 0d 0d 0d 0d 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |....____|________|
|000021a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000021b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000021c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000021d0| 5f 5f 5f 5f 5f 0d 0d 4e | 41 4d 45 0d 20 20 20 20 |_____..N|AME. |
|000021e0| 20 61 70 70 65 6e 64 20 | 2d 20 41 70 70 65 6e 64 | append |- Append|
|000021f0| 20 74 6f 20 76 61 72 69 | 61 62 6c 65 0d 0d 53 59 | to vari|able..SY|
|00002200| 4e 4f 50 53 49 53 0d 20 | 20 20 20 20 61 70 70 65 |NOPSIS. | appe|
|00002210| 6e 64 20 76 61 72 4e 61 | 6d 65 20 76 61 6c 75 65 |nd varNa|me value|
|00002220| 20 3f 76 61 6c 75 65 20 | 76 61 6c 75 65 20 2e 2e | ?value |value ..|
|00002230| 2e 3f 0d 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |.?._____|________|
|00002240| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002250| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002260| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002270| 5f 5f 5f 5f 0d 0d 0d 44 | 45 53 43 52 49 50 54 49 |____...D|ESCRIPTI|
|00002280| 4f 4e 0d 20 20 20 20 20 | 41 70 70 65 6e 64 20 61 |ON. |Append a|
|00002290| 6c 6c 20 6f 66 20 74 68 | 65 20 76 61 6c 75 65 20 |ll of th|e value |
|000022a0| 61 72 67 75 6d 65 6e 74 | 73 20 74 6f 20 74 68 65 |argument|s to the|
|000022b0| 20 20 63 75 72 72 65 6e | 74 20 20 76 61 6c 75 65 | curren|t value|
|000022c0| 20 20 6f 66 0d 20 20 20 | 20 20 76 61 72 69 61 62 | of. | variab|
|000022d0| 6c 65 20 20 76 61 72 4e | 61 6d 65 2e 20 20 20 49 |le varN|ame. I|
|000022e0| 66 20 76 61 72 4e 61 6d | 65 20 64 6f 65 73 6e 27 |f varNam|e doesn'|
|000022f0| 74 20 65 78 69 73 74 2c | 20 69 74 20 69 73 20 67 |t exist,| it is g|
|00002300| 69 76 65 6e 20 61 0d 20 | 20 20 20 20 76 61 6c 75 |iven a. | valu|
|00002310| 65 20 65 71 75 61 6c 20 | 74 6f 20 74 68 65 20 63 |e equal |to the c|
|00002320| 6f 6e 63 61 74 65 6e 61 | 74 69 6f 6e 20 6f 66 20 |oncatena|tion of |
|00002330| 61 6c 6c 20 74 68 65 20 | 76 61 6c 75 65 20 61 72 |all the |value ar|
|00002340| 67 75 6d 65 6e 74 73 2e | 0d 20 20 20 20 20 54 68 |guments.|. Th|
|00002350| 69 73 20 20 63 6f 6d 6d | 61 6e 64 20 20 70 72 6f |is comm|and pro|
|00002360| 76 69 64 65 73 20 20 61 | 6e 20 20 65 66 66 69 63 |vides a|n effic|
|00002370| 69 65 6e 74 20 20 77 61 | 79 20 74 6f 20 62 75 69 |ient wa|y to bui|
|00002380| 6c 64 20 75 70 20 6c 6f | 6e 67 0d 20 20 20 20 20 |ld up lo|ng. |
|00002390| 76 61 72 69 61 62 6c 65 | 73 20 69 6e 63 72 65 6d |variable|s increm|
|000023a0| 65 6e 74 61 6c 6c 79 2e | 20 20 46 6f 72 20 65 78 |entally.| For ex|
|000023b0| 61 6d 70 6c 65 2c 20 60 | 60 61 70 70 65 6e 64 20 |ample, `|`append |
|000023c0| 20 61 20 20 24 62 27 27 | 20 20 69 73 0d 20 20 20 | a $b''| is. |
|000023d0| 20 20 6d 75 63 68 20 6d | 6f 72 65 20 65 66 66 69 | much m|ore effi|
|000023e0| 63 69 65 6e 74 20 74 68 | 61 6e 20 60 60 73 65 74 |cient th|an ``set|
|000023f0| 20 61 20 24 61 24 62 27 | 27 20 69 66 20 24 61 20 | a $a$b'|' if $a |
|00002400| 69 73 20 6c 6f 6e 67 2e | 0d 0d 0d 4b 45 59 57 4f |is long.|...KEYWO|
|00002410| 52 44 53 0d 20 20 20 20 | 20 61 70 70 65 6e 64 2c |RDS. | append,|
|00002420| 20 76 61 72 69 61 62 6c | 65 0d 0d 0d 5f 5f 5f 5f | variabl|e...____|
|00002430| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002440| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002450| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002460| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0d 0d 4e |________|_____..N|
|00002470| 41 4d 45 0d 20 20 20 20 | 20 61 72 72 61 79 20 2d |AME. | array -|
|00002480| 20 4d 61 6e 69 70 75 6c | 61 74 65 20 61 72 72 61 | Manipul|ate arra|
|00002490| 79 20 76 61 72 69 61 62 | 6c 65 73 0d 0d 53 59 4e |y variab|les..SYN|
|000024a0| 4f 50 53 49 53 0d 20 20 | 20 20 20 61 72 72 61 79 |OPSIS. | array|
|000024b0| 20 6f 70 74 69 6f 6e 20 | 61 72 72 61 79 4e 61 6d | option |arrayNam|
|000024c0| 65 20 3f 61 72 67 20 61 | 72 67 20 2e 2e 2e 3f 0d |e ?arg a|rg ...?.|
|000024d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000024e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000024f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002500| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002510| 5f 0d 0d 0d 44 45 53 43 | 52 49 50 54 49 4f 4e 0d |_...DESC|RIPTION.|
|00002520| 20 20 20 20 20 54 68 69 | 73 20 63 6f 6d 6d 61 6e | Thi|s comman|
|00002530| 64 20 70 65 72 66 6f 72 | 6d 73 20 6f 6e 65 20 6f |d perfor|ms one o|
|00002540| 66 20 73 65 76 65 72 61 | 6c 20 6f 70 65 72 61 74 |f severa|l operat|
|00002550| 69 6f 6e 73 20 6f 6e 20 | 74 68 65 20 76 61 72 69 |ions on |the vari|
|00002560| 2d 0d 20 20 20 20 20 61 | 62 6c 65 20 20 67 69 76 |-. a|ble giv|
|00002570| 65 6e 20 20 62 79 20 61 | 72 72 61 79 4e 61 6d 65 |en by a|rrayName|
|00002580| 2e 20 20 41 72 72 61 79 | 4e 61 6d 65 20 6d 75 73 |. Array|Name mus|
|00002590| 74 20 62 65 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |t be the| name of|
|000025a0| 20 61 6e 0d 20 20 20 20 | 20 65 78 69 73 74 69 6e | an. | existin|
|000025b0| 67 20 61 72 72 61 79 20 | 76 61 72 69 61 62 6c 65 |g array |variable|
|000025c0| 2e 20 20 20 54 68 65 20 | 20 6f 70 74 69 6f 6e 20 |. The | option |
|000025d0| 20 61 72 67 75 6d 65 6e | 74 20 20 64 65 74 65 72 | argumen|t deter|
|000025e0| 6d 69 6e 65 73 0d 20 20 | 20 20 20 77 68 61 74 20 |mines. | what |
|000025f0| 20 61 63 74 69 6f 6e 20 | 20 69 73 20 20 63 61 72 | action | is car|
|00002600| 72 69 65 64 20 20 6f 75 | 74 20 20 62 79 20 20 74 |ried ou|t by t|
|00002610| 68 65 20 20 63 6f 6d 6d | 61 6e 64 2e 20 20 54 68 |he comm|and. Th|
|00002620| 65 20 6c 65 67 61 6c 0d | 20 20 20 20 20 6f 70 74 |e legal.| opt|
|00002630| 69 6f 6e 73 20 28 77 68 | 69 63 68 20 6d 61 79 20 |ions (wh|ich may |
|00002640| 62 65 20 61 62 62 72 65 | 76 69 61 74 65 64 29 20 |be abbre|viated) |
|00002650| 61 72 65 3a 0d 0d 20 20 | 20 20 20 61 72 72 61 79 |are:.. | array|
|00002660| 20 61 6e 79 6d 6f 72 65 | 20 61 72 72 61 79 4e 61 | anymore| arrayNa|
|00002670| 6d 65 20 73 65 61 72 63 | 68 49 64 0d 20 20 20 20 |me searc|hId. |
|00002680| 20 20 20 20 20 20 52 65 | 74 75 72 6e 73 20 31 20 | Re|turns 1 |
|00002690| 69 66 20 74 68 65 72 65 | 20 61 72 65 20 61 6e 79 |if there| are any|
|000026a0| 20 6d 6f 72 65 20 20 65 | 6c 65 6d 65 6e 74 73 20 | more e|lements |
|000026b0| 20 6c 65 66 74 20 20 74 | 6f 20 20 62 65 0d 20 20 | left t|o be. |
|000026c0| 20 20 20 20 20 20 20 20 | 70 72 6f 63 65 73 73 65 | |processe|
|000026d0| 64 20 20 69 6e 20 20 61 | 6e 20 20 61 72 72 61 79 |d in a|n array|
|000026e0| 20 73 65 61 72 63 68 2c | 20 30 20 69 66 20 61 6c | search,| 0 if al|
|000026f0| 6c 20 65 6c 65 6d 65 6e | 74 73 20 68 61 76 65 0d |l elemen|ts have.|
|00002700| 20 20 20 20 20 20 20 20 | 20 20 61 6c 72 65 61 64 | | alread|
|00002710| 79 20 62 65 65 6e 20 72 | 65 74 75 72 6e 65 64 2e |y been r|eturned.|
|00002720| 20 20 53 65 61 72 63 68 | 49 64 20 69 6e 64 69 63 | Search|Id indic|
|00002730| 61 74 65 73 20 77 68 69 | 63 68 20 73 65 61 72 63 |ates whi|ch searc|
|00002740| 68 0d 20 20 20 20 20 20 | 20 20 20 20 6f 6e 20 20 |h. | on |
|00002750| 61 72 72 61 79 4e 61 6d | 65 20 20 74 6f 20 20 63 |arrayNam|e to c|
|00002760| 68 65 63 6b 2c 20 61 6e | 64 20 6d 75 73 74 20 68 |heck, an|d must h|
|00002770| 61 76 65 20 62 65 65 6e | 20 74 68 65 20 72 65 74 |ave been| the ret|
|00002780| 75 72 6e 0d 20 20 20 20 | 20 20 20 20 20 20 76 61 |urn. | va|
|00002790| 6c 75 65 20 66 72 6f 6d | 20 61 20 70 72 65 76 69 |lue from| a previ|
|000027a0| 6f 75 73 20 69 6e 76 6f | 63 61 74 69 6f 6e 20 6f |ous invo|cation o|
|000027b0| 66 20 61 72 72 61 79 20 | 20 73 74 61 72 74 73 65 |f array | startse|
|000027c0| 61 72 63 68 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |arch.. | |
|000027d0| 54 68 69 73 20 20 6f 70 | 74 69 6f 6e 20 20 69 73 |This op|tion is|
|000027e0| 20 70 61 72 74 69 63 75 | 6c 61 72 6c 79 20 75 73 | particu|larly us|
|000027f0| 65 66 75 6c 20 69 66 20 | 61 6e 20 61 72 72 61 79 |eful if |an array|
|00002800| 20 68 61 73 20 61 6e 0d | 20 20 20 20 20 20 20 20 | has an.| |
|00002810| 20 20 65 6c 65 6d 65 6e | 74 20 77 69 74 68 20 61 | elemen|t with a|
|00002820| 6e 20 65 6d 70 74 79 20 | 6e 61 6d 65 2c 20 73 69 |n empty |name, si|
|00002830| 6e 63 65 20 74 68 65 20 | 72 65 74 75 72 6e 20 76 |nce the |return v|
|00002840| 61 6c 75 65 20 66 72 6f | 6d 0d 20 20 20 20 20 20 |alue fro|m. |
|00002850| 20 20 20 20 61 72 72 61 | 79 20 6e 65 78 74 65 6c | arra|y nextel|
|00002860| 65 6d 65 6e 74 20 77 6f | 6e 27 74 20 69 6e 64 69 |ement wo|n't indi|
|00002870| 63 61 74 65 20 77 68 65 | 74 68 65 72 20 74 68 65 |cate whe|ther the|
|00002880| 20 73 65 61 72 63 68 20 | 68 61 73 0d 20 20 20 20 | search |has. |
|00002890| 20 20 20 20 20 20 62 65 | 65 6e 20 63 6f 6d 70 6c | be|en compl|
|000028a0| 65 74 65 64 2e 0d 0d 20 | 20 20 20 20 61 72 72 61 |eted... | arra|
|000028b0| 79 20 64 6f 6e 65 73 65 | 61 72 63 68 20 61 72 72 |y donese|arch arr|
|000028c0| 61 79 4e 61 6d 65 20 73 | 65 61 72 63 68 49 64 0d |ayName s|earchId.|
|000028d0| 20 20 20 20 20 20 20 20 | 20 20 54 68 69 73 20 63 | | This c|
|000028e0| 6f 6d 6d 61 6e 64 20 74 | 65 72 6d 69 6e 61 74 65 |ommand t|erminate|
|000028f0| 73 20 61 6e 20 61 72 72 | 61 79 20 20 73 65 61 72 |s an arr|ay sear|
|00002900| 63 68 20 20 61 6e 64 20 | 20 64 65 73 74 72 6f 79 |ch and | destroy|
|00002910| 73 0d 20 20 20 20 20 20 | 20 20 20 20 61 6c 6c 20 |s. | all |
|00002920| 20 74 68 65 20 20 73 74 | 61 74 65 20 20 61 73 73 | the st|ate ass|
|00002930| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 74 68 61 |ociated |with tha|
|00002940| 74 20 73 65 61 72 63 68 | 2e 20 20 53 65 61 72 63 |t search|. Searc|
|00002950| 68 49 64 0d 20 20 20 20 | 20 20 20 20 20 20 69 6e |hId. | in|
|00002960| 64 69 63 61 74 65 73 20 | 77 68 69 63 68 20 73 65 |dicates |which se|
|00002970| 61 72 63 68 20 6f 6e 20 | 20 61 72 72 61 79 4e 61 |arch on | arrayNa|
|00002980| 6d 65 20 20 74 6f 20 20 | 64 65 73 74 72 6f 79 2c |me to |destroy,|
|00002990| 20 20 61 6e 64 0d 20 20 | 20 20 20 20 20 20 20 20 | and. | |
|000029a0| 6d 75 73 74 20 68 61 76 | 65 20 62 65 65 6e 20 74 |must hav|e been t|
|000029b0| 68 65 20 72 65 74 75 72 | 6e 20 76 61 6c 75 65 20 |he retur|n value |
|000029c0| 66 72 6f 6d 20 61 20 70 | 72 65 76 69 6f 75 73 20 |from a p|revious |
|000029d0| 69 6e 76 6f 63 61 2d 0d | 20 20 20 20 20 20 20 20 |invoca-.| |
|000029e0| 20 20 74 69 6f 6e 20 6f | 66 20 61 72 72 61 79 20 | tion o|f array |
|000029f0| 73 74 61 72 74 73 65 61 | 72 63 68 2e 20 20 52 65 |startsea|rch. Re|
|00002a00| 74 75 72 6e 73 20 61 6e | 20 65 6d 70 74 79 20 73 |turns an| empty s|
|00002a10| 74 72 69 6e 67 2e 0d 0d | 20 20 20 20 20 61 72 72 |tring...| arr|
|00002a20| 61 79 20 6e 61 6d 65 73 | 20 61 72 72 61 79 4e 61 |ay names| arrayNa|
|00002a30| 6d 65 0d 20 20 20 20 20 | 20 20 20 20 20 52 65 74 |me. | Ret|
|00002a40| 75 72 6e 73 20 61 20 6c | 69 73 74 20 63 6f 6e 74 |urns a l|ist cont|
|00002a50| 61 69 6e 69 6e 67 20 74 | 68 65 20 6e 61 6d 65 73 |aining t|he names|
|00002a60| 20 6f 66 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 20 | of all |of the |
|00002a70| 65 6c 65 2d 0d 20 20 20 | 20 20 20 20 20 20 20 6d |ele-. | m|
|00002a80| 65 6e 74 73 20 20 69 6e | 20 20 74 68 65 20 20 61 |ents in| the a|
|00002a90| 72 72 61 79 2e 20 20 49 | 66 20 74 68 65 72 65 20 |rray. I|f there |
|00002aa0| 61 72 65 20 6e 6f 20 65 | 6c 65 6d 65 6e 74 73 20 |are no e|lements |
|00002ab0| 69 6e 20 74 68 65 0d 20 | 20 20 20 20 20 20 20 20 |in the. | |
|00002ac0| 20 61 72 72 61 79 20 74 | 68 65 6e 20 61 6e 20 65 | array t|hen an e|
|00002ad0| 6d 70 74 79 20 73 74 72 | 69 6e 67 20 69 73 20 72 |mpty str|ing is r|
|00002ae0| 65 74 75 72 6e 65 64 2e | 0d 0d 20 20 20 20 20 61 |eturned.|.. a|
|00002af0| 72 72 61 79 20 6e 65 78 | 74 65 6c 65 6d 65 6e 74 |rray nex|telement|
|00002b00| 20 61 72 72 61 79 4e 61 | 6d 65 20 73 65 61 72 63 | arrayNa|me searc|
|00002b10| 68 49 64 0d 20 20 20 20 | 20 20 20 20 20 20 52 65 |hId. | Re|
|00002b20| 74 75 72 6e 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |turns th|e name o|
|00002b30| 66 20 74 68 65 20 6e 65 | 78 74 20 65 6c 65 6d 65 |f the ne|xt eleme|
|00002b40| 6e 74 20 69 6e 20 20 61 | 72 72 61 79 4e 61 6d 65 |nt in a|rrayName|
|00002b50| 2c 20 20 6f 72 0d 20 20 | 20 20 20 20 20 20 20 20 |, or. | |
|00002b60| 61 6e 20 20 65 6d 70 74 | 79 20 20 73 74 72 69 6e |an empt|y strin|
|00002b70| 67 20 20 69 66 20 20 61 | 6c 6c 20 20 65 6c 65 6d |g if a|ll elem|
|00002b80| 65 6e 74 73 20 20 6f 66 | 20 61 72 72 61 79 4e 61 |ents of| arrayNa|
|00002b90| 6d 65 20 68 61 76 65 0d | 20 20 20 20 20 20 20 20 |me have.| |
|00002ba0| 20 20 61 6c 72 65 61 64 | 79 20 62 65 65 6e 20 72 | alread|y been r|
|00002bb0| 65 74 75 72 6e 65 64 20 | 69 6e 20 20 74 68 69 73 |eturned |in this|
|00002bc0| 20 20 73 65 61 72 63 68 | 2e 20 20 20 54 68 65 20 | search|. The |
|00002bd0| 20 73 65 61 72 63 68 49 | 64 0d 20 20 20 20 20 20 | searchI|d. |
|00002be0| 20 20 20 20 61 72 67 75 | 6d 65 6e 74 20 20 69 64 | argu|ment id|
|00002bf0| 65 6e 74 69 66 69 65 73 | 20 74 68 65 20 73 65 61 |entifies| the sea|
|00002c00| 72 63 68 2c 20 61 6e 64 | 20 6d 75 73 74 20 68 61 |rch, and| must ha|
|00002c10| 76 65 20 62 65 65 6e 20 | 74 68 65 0d 20 20 20 20 |ve been |the. |
|00002c20| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 76 61 6c | re|turn val|
|00002c30| 75 65 20 6f 66 20 61 6e | 20 61 72 72 61 79 20 73 |ue of an| array s|
|00002c40| 74 61 72 74 73 65 61 72 | 63 68 20 63 6f 6d 6d 61 |tartsear|ch comma|
|00002c50| 6e 64 2e 20 20 57 61 72 | 6e 69 6e 67 3a 0d 20 20 |nd. War|ning:. |
|00002c60| 20 20 20 20 20 20 20 20 | 69 66 20 20 65 6c 65 6d | |if elem|
|00002c70| 65 6e 74 73 20 20 61 72 | 65 20 20 61 64 64 65 64 |ents ar|e added|
|00002c80| 20 20 74 6f 20 6f 72 20 | 64 65 6c 65 74 65 64 20 | to or |deleted |
|00002c90| 66 72 6f 6d 20 74 68 65 | 20 61 72 72 61 79 2c 0d |from the| array,.|
|00002ca0| 20 20 20 20 20 20 20 20 | 20 20 74 68 65 6e 20 61 | | then a|
|00002cb0| 6c 6c 20 73 65 61 72 63 | 68 65 73 20 61 72 65 20 |ll searc|hes are |
|00002cc0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 74 65 |automati|cally te|
|00002cd0| 72 6d 69 6e 61 74 65 64 | 20 6a 75 73 74 20 20 61 |rminated| just a|
|00002ce0| 73 0d 20 20 20 20 20 20 | 20 20 20 20 69 66 20 20 |s. | if |
|00002cf0| 61 72 72 61 79 20 20 64 | 6f 6e 65 73 65 61 72 63 |array d|onesearc|
|00002d00| 68 20 68 61 64 20 62 65 | 65 6e 20 69 6e 76 6f 6b |h had be|en invok|
|00002d10| 65 64 3b 20 74 68 69 73 | 20 77 69 6c 6c 20 63 61 |ed; this| will ca|
|00002d20| 75 73 65 0d 20 20 20 20 | 20 20 20 20 20 20 61 72 |use. | ar|
|00002d30| 72 61 79 20 20 6e 65 78 | 74 65 6c 65 6d 65 6e 74 |ray nex|telement|
|00002d40| 20 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 20 74 6f | operat|ions to|
|00002d50| 20 20 20 66 61 69 6c 20 | 20 20 66 6f 72 20 20 20 | fail | for |
|00002d60| 74 68 6f 73 65 0d 20 20 | 20 20 20 20 20 20 20 20 |those. | |
|00002d70| 73 65 61 72 63 68 65 73 | 2e 0d 0d 20 20 20 20 20 |searches|... |
|00002d80| 61 72 72 61 79 20 73 69 | 7a 65 20 61 72 72 61 79 |array si|ze array|
|00002d90| 4e 61 6d 65 0d 20 20 20 | 20 20 20 20 20 20 20 52 |Name. | R|
|00002da0| 65 74 75 72 6e 73 20 61 | 20 64 65 63 69 6d 61 6c |eturns a| decimal|
|00002db0| 20 73 74 72 69 6e 67 20 | 67 69 76 69 6e 67 20 74 | string |giving t|
|00002dc0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 20 65 6c |he numbe|r of el|
|00002dd0| 65 6d 65 6e 74 73 0d 20 | 20 20 20 20 20 20 20 20 |ements. | |
|00002de0| 20 69 6e 20 74 68 65 20 | 61 72 72 61 79 2e 0d 0d | in the |array...|
|00002df0| 20 20 20 20 20 61 72 72 | 61 79 20 73 74 61 72 74 | arr|ay start|
|00002e00| 73 65 61 72 63 68 20 61 | 72 72 61 79 4e 61 6d 65 |search a|rrayName|
|00002e10| 0d 20 20 20 20 20 20 20 | 20 20 20 54 68 69 73 20 |. | This |
|00002e20| 63 6f 6d 6d 61 6e 64 20 | 69 6e 69 74 69 61 6c 69 |command |initiali|
|00002e30| 7a 65 73 20 61 6e 20 20 | 65 6c 65 6d 65 6e 74 2d |zes an |element-|
|00002e40| 62 79 2d 65 6c 65 6d 65 | 6e 74 20 20 73 65 61 72 |by-eleme|nt sear|
|00002e50| 63 68 0d 20 20 20 20 20 | 20 20 20 20 20 74 68 72 |ch. | thr|
|00002e60| 6f 75 67 68 20 74 68 65 | 20 61 72 72 61 79 20 67 |ough the| array g|
|00002e70| 69 76 65 6e 20 62 79 20 | 61 72 72 61 79 4e 61 6d |iven by |arrayNam|
|00002e80| 65 2c 20 73 75 63 68 20 | 74 68 61 74 20 69 6e 76 |e, such |that inv|
|00002e90| 6f 63 61 2d 0d 20 20 20 | 20 20 20 20 20 20 20 74 |oca-. | t|
|00002ea0| 69 6f 6e 73 20 6f 66 20 | 74 68 65 20 61 72 72 61 |ions of |the arra|
|00002eb0| 79 20 6e 65 78 74 65 6c | 65 6d 65 6e 74 20 63 6f |y nextel|ement co|
|00002ec0| 6d 6d 61 6e 64 20 77 69 | 6c 6c 20 72 65 74 75 72 |mmand wi|ll retur|
|00002ed0| 6e 20 20 74 68 65 0d 20 | 20 20 20 20 20 20 20 20 |n the. | |
|00002ee0| 20 6e 61 6d 65 73 20 20 | 6f 66 20 20 74 68 65 20 | names |of the |
|00002ef0| 20 69 6e 64 69 76 69 64 | 75 61 6c 20 65 6c 65 6d | individ|ual elem|
|00002f00| 65 6e 74 73 20 69 6e 20 | 74 68 65 20 61 72 72 61 |ents in |the arra|
|00002f10| 79 2e 20 20 57 68 65 6e | 0d 20 20 20 20 20 20 20 |y. When|. |
|00002f20| 20 20 20 74 68 65 20 73 | 65 61 72 63 68 20 68 61 | the s|earch ha|
|00002f30| 73 20 62 65 65 6e 20 20 | 63 6f 6d 70 6c 65 74 65 |s been |complete|
|00002f40| 64 2c 20 20 74 68 65 20 | 20 61 72 72 61 79 20 20 |d, the | array |
|00002f50| 64 6f 6e 65 73 65 61 72 | 63 68 0d 20 20 20 20 20 |donesear|ch. |
|00002f60| 20 20 20 20 20 63 6f 6d | 6d 61 6e 64 20 20 73 68 | com|mand sh|
|00002f70| 6f 75 6c 64 20 20 62 65 | 20 20 69 6e 76 6f 6b 65 |ould be| invoke|
|00002f80| 64 2e 20 20 20 54 68 65 | 20 20 72 65 74 75 72 6e |d. The| return|
|00002f90| 20 20 76 61 6c 75 65 20 | 69 73 20 61 0d 20 20 20 | value |is a. |
|00002fa0| 20 20 20 20 20 20 20 73 | 65 61 72 63 68 20 69 64 | s|earch id|
|00002fb0| 65 6e 74 69 66 69 65 72 | 20 74 68 61 74 20 6d 75 |entifier| that mu|
|00002fc0| 73 74 20 62 65 20 75 73 | 65 64 20 69 6e 20 20 61 |st be us|ed in a|
|00002fd0| 72 72 61 79 20 20 6e 65 | 78 74 65 6c 65 2d 0d 20 |rray ne|xtele-. |
|00002fe0| 20 20 20 20 20 20 20 20 | 20 6d 65 6e 74 20 20 61 | | ment a|
|00002ff0| 6e 64 20 61 72 72 61 79 | 20 64 6f 6e 65 73 65 61 |nd array| donesea|
|00003000| 72 63 68 20 63 6f 6d 6d | 61 6e 64 73 3b 20 69 74 |rch comm|ands; it|
|00003010| 20 61 6c 6c 6f 77 73 20 | 6d 75 6c 74 69 70 6c 65 | allows |multiple|
|00003020| 0d 20 20 20 20 20 20 20 | 20 20 20 73 65 61 72 63 |. | searc|
|00003030| 68 65 73 20 74 6f 20 62 | 65 20 75 6e 64 65 72 77 |hes to b|e underw|
|00003040| 61 79 20 20 73 69 6d 75 | 6c 74 61 6e 65 6f 75 73 |ay simu|ltaneous|
|00003050| 6c 79 20 20 66 6f 72 20 | 20 74 68 65 20 20 73 61 |ly for | the sa|
|00003060| 6d 65 0d 20 20 20 20 20 | 20 20 20 20 20 61 72 72 |me. | arr|
|00003070| 61 79 2e 0d 0d 0d 4b 45 | 59 57 4f 52 44 53 0d 20 |ay....KE|YWORDS. |
|00003080| 20 20 20 20 61 72 72 61 | 79 2c 20 65 6c 65 6d 65 | arra|y, eleme|
|00003090| 6e 74 20 6e 61 6d 65 73 | 2c 20 73 65 61 72 63 68 |nt names|, search|
|000030a0| 0d 0d 0d 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..._____|________|
|000030b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000030c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000030d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000030e0| 5f 5f 5f 5f 0d 0d 4e 41 | 4d 45 0d 20 20 20 20 20 |____..NA|ME. |
|000030f0| 62 72 65 61 6b 20 2d 20 | 41 62 6f 72 74 20 6c 6f |break - |Abort lo|
|00003100| 6f 70 69 6e 67 20 63 6f | 6d 6d 61 6e 64 0d 0d 53 |oping co|mmand..S|
|00003110| 59 4e 4f 50 53 49 53 0d | 20 20 20 20 20 62 72 65 |YNOPSIS.| bre|
|00003120| 61 6b 0d 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |ak._____|________|
|00003130| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003140| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003150| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003160| 5f 5f 5f 5f 0d 0d 0d 44 | 45 53 43 52 49 50 54 49 |____...D|ESCRIPTI|
|00003170| 4f 4e 0d 20 20 20 20 20 | 54 68 69 73 20 63 6f 6d |ON. |This com|
|00003180| 6d 61 6e 64 20 6d 61 79 | 20 62 65 20 69 6e 76 6f |mand may| be invo|
|00003190| 6b 65 64 20 6f 6e 6c 79 | 20 69 6e 73 69 64 65 20 |ked only| inside |
|000031a0| 74 68 65 20 62 6f 64 79 | 20 6f 66 20 61 20 20 6c |the body| of a l|
|000031b0| 6f 6f 70 2d 0d 20 20 20 | 20 20 69 6e 67 20 20 63 |oop-. | ing c|
|000031c0| 6f 6d 6d 61 6e 64 20 20 | 73 75 63 68 20 61 73 20 |ommand |such as |
|000031d0| 66 6f 72 20 6f 72 20 66 | 6f 72 65 61 63 68 20 6f |for or f|oreach o|
|000031e0| 72 20 77 68 69 6c 65 2e | 20 20 49 74 20 72 65 74 |r while.| It ret|
|000031f0| 75 72 6e 73 20 61 0d 20 | 20 20 20 20 54 43 4c 5f |urns a. | TCL_|
|00003200| 42 52 45 41 4b 20 63 6f | 64 65 20 74 6f 20 73 69 |BREAK co|de to si|
|00003210| 67 6e 61 6c 20 74 68 65 | 20 69 6e 6e 65 72 6d 6f |gnal the| innermo|
|00003220| 73 74 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 6c 6f |st conta|ining lo|
|00003230| 6f 70 20 20 63 6f 6d 2d | 0d 20 20 20 20 20 6d 61 |op com-|. ma|
|00003240| 6e 64 20 74 6f 20 72 65 | 74 75 72 6e 20 69 6d 6d |nd to re|turn imm|
|00003250| 65 64 69 61 74 65 6c 79 | 2e 0d 0d 0d 4b 45 59 57 |ediately|....KEYW|
|00003260| 4f 52 44 53 0d 20 20 20 | 20 20 61 62 6f 72 74 2c |ORDS. | abort,|
|00003270| 20 62 72 65 61 6b 2c 20 | 6c 6f 6f 70 0d 0d 0d 5f | break, |loop..._|
|00003280| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003290| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000032a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000032b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000032c0| 0d 0d 4e 41 4d 45 0d 20 | 20 20 20 20 63 61 73 65 |..NAME. | case|
|000032d0| 20 2d 20 45 76 61 6c 75 | 61 74 65 20 6f 6e 65 20 | - Evalu|ate one |
|000032e0| 6f 66 20 73 65 76 65 72 | 61 6c 20 73 63 72 69 70 |of sever|al scrip|
|000032f0| 74 73 2c 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |ts, depe|nding on|
|00003300| 20 61 20 67 69 76 65 6e | 0d 20 20 20 20 20 76 61 | a given|. va|
|00003310| 6c 75 65 0d 0d 53 59 4e | 4f 50 53 49 53 0d 20 20 |lue..SYN|OPSIS. |
|00003320| 20 20 20 63 61 73 65 20 | 73 74 72 69 6e 67 20 3f | case |string ?|
|00003330| 69 6e 3f 20 70 61 74 4c | 69 73 74 20 62 6f 64 79 |in? patL|ist body|
|00003340| 20 3f 70 61 74 4c 69 73 | 74 20 62 6f 64 79 20 2e | ?patLis|t body .|
|00003350| 2e 2e 3f 0d 20 20 20 20 | 20 63 61 73 65 20 73 74 |..?. | case st|
|00003360| 72 69 6e 67 20 3f 69 6e | 3f 20 7b 70 61 74 4c 69 |ring ?in|? {patLi|
|00003370| 73 74 20 62 6f 64 79 20 | 3f 70 61 74 4c 69 73 74 |st body |?patList|
|00003380| 20 62 6f 64 79 20 2e 2e | 2e 3f 7d 0d 5f 5f 5f 5f | body ..|.?}.____|
|00003390| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000033a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000033b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000033c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0d 0d 0d |________|_____...|
|000033d0| 44 45 53 43 52 49 50 54 | 49 4f 4e 0d 20 20 20 20 |DESCRIPT|ION. |
|000033e0| 20 4e 6f 74 65 3a 20 74 | 68 65 20 63 61 73 65 20 | Note: t|he case |
|000033f0| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 6f 62 73 6f 6c |command |is obsol|
|00003400| 65 74 65 20 61 6e 64 20 | 69 73 20 73 75 70 70 6f |ete and |is suppo|
|00003410| 72 74 65 64 20 6f 6e 6c | 79 20 66 6f 72 0d 20 20 |rted onl|y for. |
|00003420| 20 20 20 62 61 63 6b 77 | 61 72 64 20 20 63 6f 6d | backw|ard com|
|00003430| 70 61 74 69 62 69 6c 69 | 74 79 2e 20 20 41 74 20 |patibili|ty. At |
|00003440| 73 6f 6d 65 20 70 6f 69 | 6e 74 20 69 6e 20 74 68 |some poi|nt in th|
|00003450| 65 20 66 75 74 75 72 65 | 20 69 74 20 6d 61 79 0d |e future| it may.|
|00003460| 20 20 20 20 20 62 65 20 | 72 65 6d 6f 76 65 64 20 | be |removed |
|00003470| 65 6e 74 69 72 65 6c 79 | 2e 20 20 59 6f 75 20 20 |entirely|. You |
|00003480| 73 68 6f 75 6c 64 20 20 | 75 73 65 20 20 74 68 65 |should |use the|
|00003490| 20 20 73 77 69 74 63 68 | 20 20 63 6f 6d 6d 61 6e | switch| comman|
|000034a0| 64 0d 20 20 20 20 20 69 | 6e 73 74 65 61 64 2e 0d |d. i|nstead..|
|000034b0| 0d 20 20 20 20 20 54 68 | 65 20 63 61 73 65 20 63 |. Th|e case c|
|000034c0| 6f 6d 6d 61 6e 64 20 6d | 61 74 63 68 65 73 20 73 |ommand m|atches s|
|000034d0| 74 72 69 6e 67 20 61 67 | 61 69 6e 73 74 20 65 61 |tring ag|ainst ea|
|000034e0| 63 68 20 6f 66 20 74 68 | 65 20 20 70 61 74 4c 69 |ch of th|e patLi|
|000034f0| 73 74 0d 20 20 20 20 20 | 61 72 67 75 6d 65 6e 74 |st. |argument|
|00003500| 73 20 20 69 6e 20 6f 72 | 64 65 72 2e 20 20 45 61 |s in or|der. Ea|
|00003510| 63 68 20 70 61 74 4c 69 | 73 74 20 61 72 67 75 6d |ch patLi|st argum|
|00003520| 65 6e 74 20 69 73 20 61 | 20 6c 69 73 74 20 6f 66 |ent is a| list of|
|00003530| 20 6f 6e 65 0d 20 20 20 | 20 20 6f 72 20 6d 6f 72 | one. | or mor|
|00003540| 65 20 70 61 74 74 65 72 | 6e 73 2e 20 20 49 66 20 |e patter|ns. If |
|00003550| 61 6e 79 20 6f 66 20 74 | 68 65 73 65 20 70 61 74 |any of t|hese pat|
|00003560| 74 65 72 6e 73 20 20 6d | 61 74 63 68 65 73 20 20 |terns m|atches |
|00003570| 73 74 72 69 6e 67 0d 20 | 20 20 20 20 74 68 65 6e |string. | then|
|00003580| 20 20 63 61 73 65 20 20 | 65 76 61 6c 75 61 74 65 | case |evaluate|
|00003590| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s the fo|llowing |
|000035a0| 62 6f 64 79 20 61 72 67 | 75 6d 65 6e 74 20 62 79 |body arg|ument by|
|000035b0| 20 70 61 73 73 69 6e 67 | 0d 20 20 20 20 20 69 74 | passing|. it|
|000035c0| 20 72 65 63 75 72 73 69 | 76 65 6c 79 20 74 6f 20 | recursi|vely to |
|000035d0| 74 68 65 20 54 63 6c 20 | 69 6e 74 65 72 70 72 65 |the Tcl |interpre|
|000035e0| 74 65 72 20 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |ter and |returns |
|000035f0| 74 68 65 20 72 65 73 75 | 6c 74 0d 20 20 20 20 20 |the resu|lt. |
|00003600| 6f 66 20 20 74 68 61 74 | 20 20 65 76 61 6c 75 61 |of that| evalua|
|00003610| 74 69 6f 6e 2e 20 20 20 | 45 61 63 68 20 20 70 61 |tion. |Each pa|
|00003620| 74 4c 69 73 74 20 61 72 | 67 75 6d 65 6e 74 20 63 |tList ar|gument c|
|00003630| 6f 6e 73 69 73 74 73 20 | 6f 66 20 61 0d 20 20 20 |onsists |of a. |
|00003640| 20 20 73 69 6e 67 6c 65 | 20 70 61 74 74 65 72 6e | single| pattern|
|00003650| 20 6f 72 20 6c 69 73 74 | 20 6f 66 20 70 61 74 74 | or list| of patt|
|00003660| 65 72 6e 73 2e 20 20 45 | 61 63 68 20 70 61 74 74 |erns. E|ach patt|
|00003670| 65 72 6e 20 20 6d 61 79 | 20 20 63 6f 6e 2d 0d 20 |ern may| con-. |
|00003680| 20 20 20 20 74 61 69 6e | 20 61 6e 79 20 6f 66 20 | tain| any of |
|00003690| 74 68 65 20 77 69 6c 64 | 2d 63 61 72 64 73 20 64 |the wild|-cards d|
|000036a0| 65 73 63 72 69 62 65 64 | 20 75 6e 64 65 72 20 73 |escribed| under s|
|000036b0| 74 72 69 6e 67 20 6d 61 | 74 63 68 2e 20 20 49 66 |tring ma|tch. If|
|000036c0| 0d 20 20 20 20 20 61 20 | 70 61 74 4c 69 73 74 20 |. a |patList |
|000036d0| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 64 65 66 61 |argument| is defa|
|000036e0| 75 6c 74 2c 20 74 68 65 | 20 63 6f 72 72 65 73 70 |ult, the| corresp|
|000036f0| 6f 6e 64 69 6e 67 20 20 | 62 6f 64 79 20 20 77 69 |onding |body wi|
|00003700| 6c 6c 0d 20 20 20 20 20 | 62 65 20 20 65 76 61 6c |ll. |be eval|
|00003710| 75 61 74 65 64 20 20 69 | 66 20 20 6e 6f 20 70 61 |uated i|f no pa|
|00003720| 74 4c 69 73 74 20 6d 61 | 74 63 68 65 73 20 73 74 |tList ma|tches st|
|00003730| 72 69 6e 67 2e 20 20 49 | 66 20 6e 6f 20 70 61 74 |ring. I|f no pat|
|00003740| 4c 69 73 74 0d 20 20 20 | 20 20 61 72 67 75 6d 65 |List. | argume|
|00003750| 6e 74 20 6d 61 74 63 68 | 65 73 20 73 74 72 69 6e |nt match|es strin|
|00003760| 67 20 61 6e 64 20 6e 6f | 20 64 65 66 61 75 6c 74 |g and no| default|
|00003770| 20 69 73 20 20 67 69 76 | 65 6e 2c 20 20 74 68 65 | is giv|en, the|
|00003780| 6e 20 20 74 68 65 0d 20 | 20 20 20 20 63 61 73 65 |n the. | case|
|00003790| 20 63 6f 6d 6d 61 6e 64 | 20 72 65 74 75 72 6e 73 | command| returns|
|000037a0| 20 61 6e 20 65 6d 70 74 | 79 20 73 74 72 69 6e 67 | an empt|y string|
|000037b0| 2e 0d 0d 20 20 20 20 20 | 54 77 6f 20 73 79 6e 74 |... |Two synt|
|000037c0| 61 78 65 73 20 61 72 65 | 20 70 72 6f 76 69 64 65 |axes are| provide|
|000037d0| 64 20 66 6f 72 20 74 68 | 65 20 20 70 61 74 4c 69 |d for th|e patLi|
|000037e0| 73 74 20 20 61 6e 64 20 | 20 62 6f 64 79 20 20 61 |st and | body a|
|000037f0| 72 67 75 2d 0d 20 20 20 | 20 20 6d 65 6e 74 73 2e |rgu-. | ments.|
|00003800| 20 20 20 54 68 65 20 20 | 66 69 72 73 74 20 75 73 | The |first us|
|00003810| 65 73 20 61 20 73 65 70 | 61 72 61 74 65 20 61 72 |es a sep|arate ar|
|00003820| 67 75 6d 65 6e 74 20 66 | 6f 72 20 65 61 63 68 20 |gument f|or each |
|00003830| 6f 66 20 74 68 65 0d 20 | 20 20 20 20 70 61 74 74 |of the. | patt|
|00003840| 65 72 6e 73 20 61 6e 64 | 20 63 6f 6d 6d 61 6e 64 |erns and| command|
|00003850| 73 3b 20 74 68 69 73 20 | 66 6f 72 6d 20 69 73 20 |s; this |form is |
|00003860| 63 6f 6e 76 65 6e 69 65 | 6e 74 20 69 66 20 20 73 |convenie|nt if s|
|00003870| 75 62 73 74 69 74 75 2d | 0d 20 20 20 20 20 74 69 |ubstitu-|. ti|
|00003880| 6f 6e 73 20 20 61 72 65 | 20 64 65 73 69 72 65 64 |ons are| desired|
|00003890| 20 6f 6e 20 73 6f 6d 65 | 20 6f 66 20 74 68 65 20 | on some| of the |
|000038a0| 70 61 74 74 65 72 6e 73 | 20 6f 72 20 63 6f 6d 6d |patterns| or comm|
|000038b0| 61 6e 64 73 2e 20 20 54 | 68 65 0d 20 20 20 20 20 |ands. T|he. |
|000038c0| 73 65 63 6f 6e 64 20 66 | 6f 72 6d 20 70 6c 61 63 |second f|orm plac|
|000038d0| 65 73 20 61 6c 6c 20 6f | 66 20 74 68 65 20 70 61 |es all o|f the pa|
|000038e0| 74 74 65 72 6e 73 20 61 | 6e 64 20 63 6f 6d 6d 61 |tterns a|nd comma|
|000038f0| 6e 64 73 20 74 6f 67 65 | 74 68 65 72 0d 20 20 20 |nds toge|ther. |
|00003900| 20 20 69 6e 74 6f 20 20 | 61 20 20 73 69 6e 67 6c | into |a singl|
|00003910| 65 20 61 72 67 75 6d 65 | 6e 74 3b 20 74 68 65 20 |e argume|nt; the |
|00003920| 61 72 67 75 6d 65 6e 74 | 20 6d 75 73 74 20 68 61 |argument| must ha|
|00003930| 76 65 20 70 72 6f 70 65 | 72 20 6c 69 73 74 0d 20 |ve prope|r list. |
|00003940| 20 20 20 20 73 74 72 75 | 63 74 75 72 65 2c 20 77 | stru|cture, w|
|00003950| 69 74 68 20 74 68 65 20 | 65 6c 65 6d 65 6e 74 73 |ith the |elements|
|00003960| 20 6f 66 20 74 68 65 20 | 6c 69 73 74 20 62 65 69 | of the |list bei|
|00003970| 6e 67 20 74 68 65 20 20 | 70 61 74 74 65 72 6e 73 |ng the |patterns|
|00003980| 0d 20 20 20 20 20 61 6e | 64 20 20 63 6f 6d 6d 61 |. an|d comma|
|00003990| 6e 64 73 2e 20 20 20 54 | 68 65 20 20 73 65 63 6f |nds. T|he seco|
|000039a0| 6e 64 20 66 6f 72 6d 20 | 6d 61 6b 65 73 20 69 74 |nd form |makes it|
|000039b0| 20 65 61 73 79 20 74 6f | 20 63 6f 6e 73 74 72 75 | easy to| constru|
|000039c0| 63 74 0d 20 20 20 20 20 | 6d 75 6c 74 69 2d 6c 69 |ct. |multi-li|
|000039d0| 6e 65 20 63 61 73 65 20 | 63 6f 6d 6d 61 6e 64 73 |ne case |commands|
|000039e0| 2c 20 73 69 6e 63 65 20 | 74 68 65 20 62 72 61 63 |, since |the brac|
|000039f0| 65 73 20 61 72 6f 75 6e | 64 20 74 68 65 20 20 77 |es aroun|d the w|
|00003a00| 68 6f 6c 65 0d 20 20 20 | 20 20 6c 69 73 74 20 20 |hole. | list |
|00003a10| 6d 61 6b 65 20 20 69 74 | 20 75 6e 6e 65 63 65 73 |make it| unneces|
|00003a20| 73 61 72 79 20 74 6f 20 | 69 6e 63 6c 75 64 65 20 |sary to |include |
|00003a30| 61 20 62 61 63 6b 73 6c | 61 73 68 20 61 74 20 74 |a backsl|ash at t|
|00003a40| 68 65 20 65 6e 64 0d 20 | 20 20 20 20 6f 66 20 65 |he end. | of e|
|00003a50| 61 63 68 20 6c 69 6e 65 | 2e 20 20 53 69 6e 63 65 |ach line|. Since|
|00003a60| 20 74 68 65 20 70 61 74 | 4c 69 73 74 20 61 72 67 | the pat|List arg|
|00003a70| 75 6d 65 6e 74 73 20 61 | 72 65 20 69 6e 20 62 72 |uments a|re in br|
|00003a80| 61 63 65 73 20 20 69 6e | 0d 20 20 20 20 20 74 68 |aces in|. th|
|00003a90| 65 20 20 73 65 63 6f 6e | 64 20 20 66 6f 72 6d 2c |e secon|d form,|
|00003aa0| 20 20 6e 6f 20 63 6f 6d | 6d 61 6e 64 20 6f 72 20 | no com|mand or |
|00003ab0| 76 61 72 69 61 62 6c 65 | 20 73 75 62 73 74 69 74 |variable| substit|
|00003ac0| 75 74 69 6f 6e 73 20 61 | 72 65 0d 20 20 20 20 20 |utions a|re. |
|00003ad0| 70 65 72 66 6f 72 6d 65 | 64 20 6f 6e 20 74 68 65 |performe|d on the|
|00003ae0| 6d 3b 20 20 74 68 69 73 | 20 6d 61 6b 65 73 20 74 |m; this| makes t|
|00003af0| 68 65 20 62 65 68 61 76 | 69 6f 72 20 20 6f 66 20 |he behav|ior of |
|00003b00| 20 74 68 65 20 20 73 65 | 63 6f 6e 64 0d 20 20 20 | the se|cond. |
|00003b10| 20 20 66 6f 72 6d 20 64 | 69 66 66 65 72 65 6e 74 | form d|ifferent|
|00003b20| 20 74 68 61 6e 20 74 68 | 65 20 66 69 72 73 74 20 | than th|e first |
|00003b30| 66 6f 72 6d 20 69 6e 20 | 73 6f 6d 65 20 63 61 73 |form in |some cas|
|00003b40| 65 73 2e 0d 0d 0d 4b 45 | 59 57 4f 52 44 53 0d 20 |es....KE|YWORDS. |
|00003b50| 20 20 20 20 63 61 73 65 | 2c 20 6d 61 74 63 68 2c | case|, match,|
|00003b60| 20 72 65 67 75 6c 61 72 | 20 65 78 70 72 65 73 73 | regular| express|
|00003b70| 69 6f 6e 0d 0d 0d 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |ion...__|________|
|00003b80| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003b90| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003ba0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003bb0| 5f 5f 5f 5f 5f 5f 5f 0d | 0d 4e 41 4d 45 0d 20 20 |_______.|.NAME. |
|00003bc0| 20 20 20 63 61 74 63 68 | 20 2d 20 45 76 61 6c 75 | catch| - Evalu|
|00003bd0| 61 74 65 20 73 63 72 69 | 70 74 20 61 6e 64 20 74 |ate scri|pt and t|
|00003be0| 72 61 70 20 65 78 63 65 | 70 74 69 6f 6e 61 6c 20 |rap exce|ptional |
|00003bf0| 72 65 74 75 72 6e 73 0d | 0d 53 59 4e 4f 50 53 49 |returns.|.SYNOPSI|
|00003c00| 53 0d 20 20 20 20 20 63 | 61 74 63 68 20 73 63 72 |S. c|atch scr|
|00003c10| 69 70 74 20 3f 76 61 72 | 4e 61 6d 65 3f 0d 5f 5f |ipt ?var|Name?.__|
|00003c20| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003c30| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003c40| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003c50| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 0d |________|_______.|
|00003c60| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 20 20 |..DESCRI|PTION. |
|00003c70| 20 20 20 54 68 65 20 63 | 61 74 63 68 20 63 6f 6d | The c|atch com|
|00003c80| 6d 61 6e 64 20 6d 61 79 | 20 62 65 20 75 73 65 64 |mand may| be used|
|00003c90| 20 74 6f 20 70 72 65 76 | 65 6e 74 20 65 72 72 6f | to prev|ent erro|
|00003ca0| 72 73 20 66 72 6f 6d 20 | 20 61 62 6f 72 74 2d 0d |rs from | abort-.|
|00003cb0| 20 20 20 20 20 69 6e 67 | 20 63 6f 6d 6d 61 6e 64 | ing| command|
|00003cc0| 20 69 6e 74 65 72 70 72 | 65 74 61 74 69 6f 6e 2e | interpr|etation.|
|00003cd0| 20 20 43 61 74 63 68 20 | 63 61 6c 6c 73 20 74 68 | Catch |calls th|
|00003ce0| 65 20 54 63 6c 20 69 6e | 74 65 72 70 72 65 74 65 |e Tcl in|terprete|
|00003cf0| 72 0d 20 20 20 20 20 72 | 65 63 75 72 73 69 76 65 |r. r|ecursive|
|00003d00| 6c 79 20 74 6f 20 65 78 | 65 63 75 74 65 20 73 63 |ly to ex|ecute sc|
|00003d10| 72 69 70 74 2c 20 61 6e | 64 20 61 6c 77 61 79 73 |ript, an|d always|
|00003d20| 20 72 65 74 75 72 6e 73 | 20 20 61 20 20 54 43 4c | returns| a TCL|
|00003d30| 5f 4f 4b 0d 20 20 20 20 | 20 63 6f 64 65 2c 20 20 |_OK. | code, |
|00003d40| 72 65 67 61 72 64 6c 65 | 73 73 20 20 6f 66 20 61 |regardle|ss of a|
|00003d50| 6e 79 20 65 72 72 6f 72 | 73 20 74 68 61 74 20 6d |ny error|s that m|
|00003d60| 69 67 68 74 20 6f 63 63 | 75 72 20 77 68 69 6c 65 |ight occ|ur while|
|00003d70| 20 65 78 65 2d 0d 20 20 | 20 20 20 63 75 74 69 6e | exe-. | cutin|
|00003d80| 67 20 73 63 72 69 70 74 | 2e 20 20 54 68 65 20 72 |g script|. The r|
|00003d90| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 66 72 6f 6d |eturn va|lue from|
|00003da0| 20 20 63 61 74 63 68 20 | 20 69 73 20 20 61 20 20 | catch | is a |
|00003db0| 64 65 63 69 6d 61 6c 0d | 20 20 20 20 20 73 74 72 |decimal.| str|
|00003dc0| 69 6e 67 20 67 69 76 69 | 6e 67 20 74 68 65 20 63 |ing givi|ng the c|
|00003dd0| 6f 64 65 20 72 65 74 75 | 72 6e 65 64 20 62 79 20 |ode retu|rned by |
|00003de0| 74 68 65 20 54 63 6c 20 | 69 6e 74 65 72 70 72 65 |the Tcl |interpre|
|00003df0| 74 65 72 20 61 66 74 65 | 72 0d 20 20 20 20 20 65 |ter afte|r. e|
|00003e00| 78 65 63 75 74 69 6e 67 | 20 73 63 72 69 70 74 2e |xecuting| script.|
|00003e10| 20 20 54 68 69 73 20 77 | 69 6c 6c 20 62 65 20 30 | This w|ill be 0|
|00003e20| 20 28 54 43 4c 5f 4f 4b | 29 20 69 66 20 74 68 65 | (TCL_OK|) if the|
|00003e30| 72 65 20 77 65 72 65 20 | 20 6e 6f 0d 20 20 20 20 |re were | no. |
|00003e40| 20 65 72 72 6f 72 73 20 | 20 69 6e 20 20 73 63 72 | errors | in scr|
|00003e50| 69 70 74 3b 20 20 6f 74 | 68 65 72 77 69 73 65 20 |ipt; ot|herwise |
|00003e60| 69 74 20 77 69 6c 6c 20 | 68 61 76 65 20 61 20 6e |it will |have a n|
|00003e70| 6f 6e 2d 7a 65 72 6f 20 | 76 61 6c 75 65 0d 20 20 |on-zero |value. |
|00003e80| 20 20 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 | corre|sponding|
|00003e90| 20 74 6f 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 65 | to one |of the e|
|00003ea0| 78 63 65 70 74 69 6f 6e | 61 6c 20 20 72 65 74 75 |xception|al retu|
|00003eb0| 72 6e 20 20 63 6f 64 65 | 73 20 20 28 73 65 65 0d |rn code|s (see.|
|00003ec0| 20 20 20 20 20 74 63 6c | 2e 68 20 20 66 6f 72 20 | tcl|.h for |
|00003ed0| 20 74 68 65 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 | the def|initions|
|00003ee0| 20 6f 66 20 63 6f 64 65 | 20 76 61 6c 75 65 73 29 | of code| values)|
|00003ef0| 2e 20 20 49 66 20 74 68 | 65 20 76 61 72 4e 61 6d |. If th|e varNam|
|00003f00| 65 0d 20 20 20 20 20 61 | 72 67 75 6d 65 6e 74 20 |e. a|rgument |
|00003f10| 69 73 20 67 69 76 65 6e | 2c 20 74 68 65 6e 20 69 |is given|, then i|
|00003f20| 74 20 67 69 76 65 73 20 | 74 68 65 20 20 6e 61 6d |t gives |the nam|
|00003f30| 65 20 20 6f 66 20 20 61 | 20 20 76 61 72 69 61 62 |e of a| variab|
|00003f40| 6c 65 3b 0d 20 20 20 20 | 20 63 61 74 63 68 20 20 |le;. | catch |
|00003f50| 77 69 6c 6c 20 20 73 65 | 74 20 20 74 68 65 20 20 |will se|t the |
|00003f60| 76 61 72 69 61 62 6c 65 | 20 20 74 6f 20 74 68 65 |variable| to the|
|00003f70| 20 73 74 72 69 6e 67 20 | 72 65 74 75 72 6e 65 64 | string |returned|
|00003f80| 20 66 72 6f 6d 0d 20 20 | 20 20 20 73 63 72 69 70 | from. | scrip|
|00003f90| 74 20 28 65 69 74 68 65 | 72 20 61 20 72 65 73 75 |t (eithe|r a resu|
|00003fa0| 6c 74 20 6f 72 20 61 6e | 20 65 72 72 6f 72 20 6d |lt or an| error m|
|00003fb0| 65 73 73 61 67 65 29 2e | 0d 0d 0d 4b 45 59 57 4f |essage).|...KEYWO|
|00003fc0| 52 44 53 0d 20 20 20 20 | 20 63 61 74 63 68 2c 20 |RDS. | catch, |
|00003fd0| 65 72 72 6f 72 0d 0d 0d | 5f 5f 5f 5f 5f 5f 5f 5f |error...|________|
|00003fe0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003ff0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004000| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004010| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 0d 4e 41 4d 45 0d |________|_..NAME.|
|00004020| 20 20 20 20 20 63 64 20 | 2d 20 43 68 61 6e 67 65 | cd |- Change|
|00004030| 20 77 6f 72 6b 69 6e 67 | 20 64 69 72 65 63 74 6f | working| directo|
|00004040| 72 79 0d 0d 53 59 4e 4f | 50 53 49 53 0d 20 20 20 |ry..SYNO|PSIS. |
|00004050| 20 20 63 64 20 3f 64 69 | 72 4e 61 6d 65 3f 0d 5f | cd ?di|rName?._|
|00004060| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004070| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004080| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004090| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000040a0| 0d 0d 0d 44 45 53 43 52 | 49 50 54 49 4f 4e 0d 20 |...DESCR|IPTION. |
|000040b0| 20 20 20 20 43 68 61 6e | 67 65 20 74 68 65 20 63 | Chan|ge the c|
|000040c0| 75 72 72 65 6e 74 20 77 | 6f 72 6b 69 6e 67 20 64 |urrent w|orking d|
|000040d0| 69 72 65 63 74 6f 72 79 | 20 74 6f 20 64 69 72 4e |irectory| to dirN|
|000040e0| 61 6d 65 2c 20 6f 72 20 | 20 74 6f 20 20 74 68 65 |ame, or | to the|
|000040f0| 0d 20 20 20 20 20 68 6f | 6d 65 20 20 64 69 72 65 |. ho|me dire|
|00004100| 63 74 6f 72 79 20 20 28 | 61 73 20 73 70 65 63 69 |ctory (|as speci|
|00004110| 66 69 65 64 20 69 6e 20 | 74 68 65 20 48 4f 4d 45 |fied in |the HOME|
|00004120| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 76 61 72 | environ|ment var|
|00004130| 69 2d 0d 20 20 20 20 20 | 61 62 6c 65 29 20 69 66 |i-. |able) if|
|00004140| 20 64 69 72 4e 61 6d 65 | 20 69 73 20 6e 6f 74 20 | dirName| is not |
|00004150| 67 69 76 65 6e 2e 20 20 | 49 66 20 20 64 69 72 4e |given. |If dirN|
|00004160| 61 6d 65 20 20 73 74 61 | 72 74 73 20 20 77 69 74 |ame sta|rts wit|
|00004170| 68 20 20 61 0d 20 20 20 | 20 20 74 69 6c 64 65 2c |h a. | tilde,|
|00004180| 20 20 20 74 68 65 6e 20 | 20 74 69 6c 64 65 2d 65 | then | tilde-e|
|00004190| 78 70 61 6e 73 69 6f 6e | 20 20 69 73 20 20 64 6f |xpansion| is do|
|000041a0| 6e 65 20 20 61 73 20 20 | 64 65 73 63 72 69 62 65 |ne as |describe|
|000041b0| 64 20 20 66 6f 72 0d 20 | 20 20 20 20 54 63 6c 5f |d for. | Tcl_|
|000041c0| 54 69 6c 64 65 53 75 62 | 73 74 2e 20 20 52 65 74 |TildeSub|st. Ret|
|000041d0| 75 72 6e 73 20 61 6e 20 | 65 6d 70 74 79 20 73 74 |urns an |empty st|
|000041e0| 72 69 6e 67 2e 0d 0d 0d | 4b 45 59 57 4f 52 44 53 |ring....|KEYWORDS|
|000041f0| 0d 20 20 20 20 20 77 6f | 72 6b 69 6e 67 20 64 69 |. wo|rking di|
|00004200| 72 65 63 74 6f 72 79 0d | 0d 0d 5f 5f 5f 5f 5f 5f |rectory.|..______|
|00004210| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004220| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004230| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004240| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 0d 4e 41 4d |________|___..NAM|
|00004250| 45 0d 20 20 20 20 20 63 | 6c 6f 73 65 20 2d 20 43 |E. c|lose - C|
|00004260| 6c 6f 73 65 20 61 6e 20 | 6f 70 65 6e 20 66 69 6c |lose an |open fil|
|00004270| 65 0d 0d 53 59 4e 4f 50 | 53 49 53 0d 20 20 20 20 |e..SYNOP|SIS. |
|00004280| 20 63 6c 6f 73 65 20 66 | 69 6c 65 49 64 0d 5f 5f | close f|ileId.__|
|00004290| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000042a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000042b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000042c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 0d |________|_______.|
|000042d0| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 20 20 |..DESCRI|PTION. |
|000042e0| 20 20 20 43 6c 6f 73 65 | 73 20 74 68 65 20 66 69 | Close|s the fi|
|000042f0| 6c 65 20 67 69 76 65 6e | 20 62 79 20 66 69 6c 65 |le given| by file|
|00004300| 49 64 2e 20 20 46 69 6c | 65 49 64 20 6d 75 73 74 |Id. Fil|eId must|
|00004310| 20 62 65 20 74 68 65 20 | 20 72 65 74 75 72 6e 0d | be the | return.|
|00004320| 20 20 20 20 20 76 61 6c | 75 65 20 20 66 72 6f 6d | val|ue from|
|00004330| 20 61 20 70 72 65 76 69 | 6f 75 73 20 69 6e 76 6f | a previ|ous invo|
|00004340| 63 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 6f 70 |cation o|f the op|
|00004350| 65 6e 20 63 6f 6d 6d 61 | 6e 64 3b 20 61 66 74 65 |en comma|nd; afte|
|00004360| 72 0d 20 20 20 20 20 74 | 68 69 73 20 63 6f 6d 6d |r. t|his comm|
|00004370| 61 6e 64 2c 20 69 74 20 | 73 68 6f 75 6c 64 20 6e |and, it |should n|
|00004380| 6f 74 20 20 62 65 20 20 | 75 73 65 64 20 20 61 6e |ot be |used an|
|00004390| 79 6d 6f 72 65 2e 20 20 | 20 49 66 20 20 66 69 6c |ymore. | If fil|
|000043a0| 65 49 64 0d 20 20 20 20 | 20 72 65 66 65 72 73 20 |eId. | refers |
|000043b0| 20 74 6f 20 20 61 20 63 | 6f 6d 6d 61 6e 64 20 70 | to a c|ommand p|
|000043c0| 69 70 65 6c 69 6e 65 20 | 69 6e 73 74 65 61 64 20 |ipeline |instead |
|000043d0| 6f 66 20 61 20 66 69 6c | 65 2c 20 74 68 65 6e 20 |of a fil|e, then |
|000043e0| 63 6c 6f 73 65 0d 20 20 | 20 20 20 77 61 69 74 73 |close. | waits|
|000043f0| 20 66 6f 72 20 74 68 65 | 20 63 68 69 6c 64 72 65 | for the| childre|
|00004400| 6e 20 74 6f 20 63 6f 6d | 70 6c 65 74 65 2e 20 20 |n to com|plete. |
|00004410| 54 68 65 20 20 6e 6f 72 | 6d 61 6c 20 20 72 65 73 |The nor|mal res|
|00004420| 75 6c 74 20 20 6f 66 0d | 20 20 20 20 20 74 68 69 |ult of.| thi|
|00004430| 73 20 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 61 6e |s comma|nd is an|
|00004440| 20 65 6d 70 74 79 20 73 | 74 72 69 6e 67 2c 20 62 | empty s|tring, b|
|00004450| 75 74 20 65 72 72 6f 72 | 73 20 61 72 65 20 72 65 |ut error|s are re|
|00004460| 74 75 72 6e 65 64 20 69 | 66 0d 20 20 20 20 20 74 |turned i|f. t|
|00004470| 68 65 72 65 20 61 72 65 | 20 70 72 6f 62 6c 65 6d |here are| problem|
|00004480| 73 20 69 6e 20 63 6c 6f | 73 69 6e 67 20 74 68 65 |s in clo|sing the|
|00004490| 20 66 69 6c 65 20 6f 72 | 20 77 61 69 74 69 6e 67 | file or| waiting|
|000044a0| 20 66 6f 72 20 20 63 68 | 69 6c 2d 0d 20 20 20 20 | for ch|il-. |
|000044b0| 20 64 72 65 6e 20 74 6f | 20 63 6f 6d 70 6c 65 74 | dren to| complet|
|000044c0| 65 2e 0d 0d 0d 4b 45 59 | 57 4f 52 44 53 0d 20 20 |e....KEY|WORDS. |
|000044d0| 20 20 20 63 6c 6f 73 65 | 2c 20 66 69 6c 65 0d 0d | close|, file..|
|000044e0| 0d 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |._______|________|
|000044f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004500| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004510| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004520| 5f 5f 0d 0d 4e 41 4d 45 | 0d 20 20 20 20 20 63 6f |__..NAME|. co|
|00004530| 6e 63 61 74 20 2d 20 4a | 6f 69 6e 20 6c 69 73 74 |ncat - J|oin list|
|00004540| 73 20 74 6f 67 65 74 68 | 65 72 0d 0d 53 59 4e 4f |s togeth|er..SYNO|
|00004550| 50 53 49 53 0d 20 20 20 | 20 20 63 6f 6e 63 61 74 |PSIS. | concat|
|00004560| 20 3f 61 72 67 20 61 72 | 67 20 2e 2e 2e 3f 20 20 | ?arg ar|g ...? |
|00004570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004590| 20 20 20 20 20 20 20 20 | 7c 0d 5f 5f 5f 5f 5f 5f | ||.______|
|000045a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000045b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000045c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000045d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 0d 0d 44 45 |________|___...DE|
|000045e0| 53 43 52 49 50 54 49 4f | 4e 0d 20 20 20 20 20 54 |SCRIPTIO|N. T|
|000045f0| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 74 72 65 61 |his comm|and trea|
|00004600| 74 73 20 65 61 63 68 20 | 61 72 67 75 6d 65 6e 74 |ts each |argument|
|00004610| 20 61 73 20 61 20 6c 69 | 73 74 20 61 6e 64 20 63 | as a li|st and c|
|00004620| 6f 6e 63 61 74 65 6e 61 | 74 65 73 0d 20 20 20 20 |oncatena|tes. |
|00004630| 20 74 68 65 6d 20 20 69 | 6e 74 6f 20 20 61 20 20 | them i|nto a |
|00004640| 73 69 6e 67 6c 65 20 20 | 6c 69 73 74 2e 20 20 49 |single |list. I|
|00004650| 74 20 61 6c 73 6f 20 65 | 6c 69 6d 69 6e 61 74 65 |t also e|liminate|
|00004660| 73 20 6c 65 61 64 69 6e | 67 20 61 6e 64 0d 20 20 |s leadin|g and. |
|00004670| 20 20 20 74 72 61 69 6c | 69 6e 67 20 73 70 61 63 | trail|ing spac|
|00004680| 65 73 20 69 6e 20 74 68 | 65 20 61 72 67 27 73 20 |es in th|e arg's |
|00004690| 61 6e 64 20 20 61 64 64 | 73 20 20 61 20 20 73 69 |and add|s a si|
|000046a0| 6e 67 6c 65 20 20 73 65 | 70 61 72 61 74 6f 72 0d |ngle se|parator.|
|000046b0| 20 20 20 20 20 73 70 61 | 63 65 20 20 62 65 74 77 | spa|ce betw|
|000046c0| 65 65 6e 20 20 61 72 67 | 27 73 2e 20 20 20 49 74 |een arg|'s. It|
|000046d0| 20 70 65 72 6d 69 74 73 | 20 61 6e 79 20 6e 75 6d | permits| any num|
|000046e0| 62 65 72 20 6f 66 20 61 | 72 67 75 6d 65 6e 74 73 |ber of a|rguments|
|000046f0| 2e 0d 20 20 20 20 20 46 | 6f 72 20 65 78 61 6d 70 |.. F|or examp|
|00004700| 6c 65 2c 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 0d |le, the |command.|
|00004710| 0d 20 20 20 20 20 20 20 | 20 20 20 63 6f 6e 63 61 |. | conca|
|00004720| 74 20 61 20 62 20 7b 63 | 20 64 20 65 7d 20 7b 66 |t a b {c| d e} {f|
|00004730| 20 7b 67 20 68 7d 7d 0d | 20 20 20 20 20 77 69 6c | {g h}}.| wil|
|00004740| 6c 20 72 65 74 75 72 6e | 0d 0d 20 20 20 20 20 20 |l return|.. |
|00004750| 20 20 20 20 61 20 62 20 | 63 20 64 20 65 20 66 20 | a b |c d e f |
|00004760| 7b 67 20 68 7d 0d 20 20 | 20 20 20 61 73 20 69 74 |{g h}. | as it|
|00004770| 73 20 72 65 73 75 6c 74 | 2e 0d 0d 20 20 20 20 20 |s result|... |
|00004780| 49 66 20 6e 6f 20 61 72 | 67 73 20 61 72 65 20 73 |If no ar|gs are s|
|00004790| 75 70 70 6c 69 65 64 2c | 20 74 68 65 20 72 65 73 |upplied,| the res|
|000047a0| 75 6c 74 20 69 73 20 61 | 6e 20 65 6d 70 74 79 20 |ult is a|n empty |
|000047b0| 73 74 72 69 6e 67 2e 20 | 20 20 20 20 20 20 7c 0d |string. | |.|
|000047c0| 0d 0d 4b 45 59 57 4f 52 | 44 53 0d 20 20 20 20 20 |..KEYWOR|DS. |
|000047d0| 63 6f 6e 63 61 74 65 6e | 61 74 65 2c 20 6a 6f 69 |concaten|ate, joi|
|000047e0| 6e 2c 20 6c 69 73 74 73 | 0d 0d 0d 5f 5f 5f 5f 5f |n, lists|..._____|
|000047f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004800| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004810| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004820| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 0d 0d 4e 41 |________|____..NA|
|00004830| 4d 45 0d 20 20 20 20 20 | 63 6f 6e 74 69 6e 75 65 |ME. |continue|
|00004840| 20 2d 20 53 6b 69 70 20 | 74 6f 20 74 68 65 20 6e | - Skip |to the n|
|00004850| 65 78 74 20 69 74 65 72 | 61 74 69 6f 6e 20 6f 66 |ext iter|ation of|
|00004860| 20 61 20 6c 6f 6f 70 0d | 0d 53 59 4e 4f 50 53 49 | a loop.|.SYNOPSI|
|00004870| 53 0d 20 20 20 20 20 63 | 6f 6e 74 69 6e 75 65 0d |S. c|ontinue.|
|00004880| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004890| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000048a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000048b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000048c0| 5f 0d 0d 0d 44 45 53 43 | 52 49 50 54 49 4f 4e 0d |_...DESC|RIPTION.|
|000048d0| 20 20 20 20 20 54 68 69 | 73 20 63 6f 6d 6d 61 6e | Thi|s comman|
|000048e0| 64 20 6d 61 79 20 62 65 | 20 69 6e 76 6f 6b 65 64 |d may be| invoked|
|000048f0| 20 6f 6e 6c 79 20 69 6e | 73 69 64 65 20 74 68 65 | only in|side the|
|00004900| 20 62 6f 64 79 20 6f 66 | 20 61 20 20 6c 6f 6f 70 | body of| a loop|
|00004910| 2d 0d 20 20 20 20 20 69 | 6e 67 20 20 63 6f 6d 6d |-. i|ng comm|
|00004920| 61 6e 64 20 20 73 75 63 | 68 20 61 73 20 66 6f 72 |and suc|h as for|
|00004930| 20 6f 72 20 66 6f 72 65 | 61 63 68 20 6f 72 20 77 | or fore|ach or w|
|00004940| 68 69 6c 65 2e 20 20 49 | 74 20 72 65 74 75 72 6e |hile. I|t return|
|00004950| 73 20 61 0d 20 20 20 20 | 20 54 43 4c 5f 43 4f 4e |s a. | TCL_CON|
|00004960| 54 49 4e 55 45 20 63 6f | 64 65 20 74 6f 20 73 69 |TINUE co|de to si|
|00004970| 67 6e 61 6c 20 74 68 65 | 20 20 69 6e 6e 65 72 6d |gnal the| innerm|
|00004980| 6f 73 74 20 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |ost con|taining |
|00004990| 20 6c 6f 6f 70 0d 20 20 | 20 20 20 63 6f 6d 6d 61 | loop. | comma|
|000049a0| 6e 64 20 20 74 6f 20 20 | 73 6b 69 70 20 20 74 68 |nd to |skip th|
|000049b0| 65 20 72 65 6d 61 69 6e | 64 65 72 20 6f 66 20 74 |e remain|der of t|
|000049c0| 68 65 20 6c 6f 6f 70 27 | 73 20 62 6f 64 79 20 62 |he loop'|s body b|
|000049d0| 75 74 20 63 6f 6e 2d 0d | 20 20 20 20 20 74 69 6e |ut con-.| tin|
|000049e0| 75 65 20 77 69 74 68 20 | 74 68 65 20 6e 65 78 74 |ue with |the next|
|000049f0| 20 69 74 65 72 61 74 69 | 6f 6e 20 6f 66 20 74 68 | iterati|on of th|
|00004a00| 65 20 6c 6f 6f 70 2e 0d | 0d 0d 4b 45 59 57 4f 52 |e loop..|..KEYWOR|
|00004a10| 44 53 0d 20 20 20 20 20 | 63 6f 6e 74 69 6e 75 65 |DS. |continue|
|00004a20| 2c 20 69 74 65 72 61 74 | 69 6f 6e 2c 20 6c 6f 6f |, iterat|ion, loo|
|00004a30| 70 0d 0d 0d 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |p...____|________|
|00004a40| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004a50| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004a60| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004a70| 5f 5f 5f 5f 5f 0d 0d 4e | 41 4d 45 0d 20 20 20 20 |_____..N|AME. |
|00004a80| 20 65 6f 66 20 2d 20 43 | 68 65 63 6b 20 66 6f 72 | eof - C|heck for|
|00004a90| 20 65 6e 64 2d 6f 66 2d | 66 69 6c 65 20 63 6f 6e | end-of-|file con|
|00004aa0| 64 69 74 69 6f 6e 20 6f | 6e 20 6f 70 65 6e 20 66 |dition o|n open f|
|00004ab0| 69 6c 65 0d 0d 53 59 4e | 4f 50 53 49 53 0d 20 20 |ile..SYN|OPSIS. |
|00004ac0| 20 20 20 65 6f 66 20 66 | 69 6c 65 49 64 0d 5f 5f | eof f|ileId.__|
|00004ad0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004ae0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004af0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004b00| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 0d |________|_______.|
|00004b10| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 20 20 |..DESCRI|PTION. |
|00004b20| 20 20 20 52 65 74 75 72 | 6e 73 20 31 20 20 69 66 | Retur|ns 1 if|
|00004b30| 20 20 61 6e 20 20 65 6e | 64 2d 6f 66 2d 66 69 6c | an en|d-of-fil|
|00004b40| 65 20 20 63 6f 6e 64 69 | 74 69 6f 6e 20 20 68 61 |e condi|tion ha|
|00004b50| 73 20 20 6f 63 63 75 72 | 72 65 64 20 20 6f 6e 0d |s occur|red on.|
|00004b60| 20 20 20 20 20 66 69 6c | 65 49 64 2c 20 30 20 6f | fil|eId, 0 o|
|00004b70| 74 68 65 72 77 69 73 65 | 2e 20 20 46 69 6c 65 49 |therwise|. FileI|
|00004b80| 64 20 6d 75 73 74 20 68 | 61 76 65 20 62 65 65 6e |d must h|ave been|
|00004b90| 20 74 68 65 20 72 65 74 | 75 72 6e 20 76 61 6c 75 | the ret|urn valu|
|00004ba0| 65 0d 20 20 20 20 20 66 | 72 6f 6d 20 61 20 70 72 |e. f|rom a pr|
|00004bb0| 65 76 69 6f 75 73 20 63 | 61 6c 6c 20 74 6f 20 6f |evious c|all to o|
|00004bc0| 70 65 6e 2c 20 6f 72 20 | 69 74 20 6d 61 79 20 62 |pen, or |it may b|
|00004bd0| 65 20 73 74 64 69 6e 2c | 20 73 74 64 6f 75 74 2c |e stdin,| stdout,|
|00004be0| 20 6f 72 0d 20 20 20 20 | 20 73 74 64 65 72 72 20 | or. | stderr |
|00004bf0| 74 6f 20 72 65 66 65 72 | 20 74 6f 20 6f 6e 65 20 |to refer| to one |
|00004c00| 6f 66 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |of the s|tandard |
|00004c10| 49 2f 4f 20 63 68 61 6e | 6e 65 6c 73 2e 0d 0d 0d |I/O chan|nels....|
|00004c20| 4b 45 59 57 4f 52 44 53 | 0d 20 20 20 20 20 65 6e |KEYWORDS|. en|
|00004c30| 64 2c 20 66 69 6c 65 0d | 0d 0d 5f 5f 5f 5f 5f 5f |d, file.|..______|
|00004c40| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004c50| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004c60| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004c70| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 0d 4e 41 4d |________|___..NAM|
|00004c80| 45 0d 20 20 20 20 20 65 | 72 72 6f 72 20 2d 20 47 |E. e|rror - G|
|00004c90| 65 6e 65 72 61 74 65 20 | 61 6e 20 65 72 72 6f 72 |enerate |an error|
|00004ca0| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 20 20 20 20 20 |..SYNOPS|IS. |
|00004cb0| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 20 3f 69 |error me|ssage ?i|
|00004cc0| 6e 66 6f 3f 20 3f 63 6f | 64 65 3f 0d 5f 5f 5f 5f |nfo? ?co|de?.____|
|00004cd0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004ce0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004cf0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004d00| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0d 0d 0d |________|_____...|
|00004d10| 44 45 53 43 52 49 50 54 | 49 4f 4e 0d 20 20 20 20 |DESCRIPT|ION. |
|00004d20| 20 52 65 74 75 72 6e 73 | 20 61 20 54 43 4c 5f 45 | Returns| a TCL_E|
|00004d30| 52 52 4f 52 20 63 6f 64 | 65 2c 20 77 68 69 63 68 |RROR cod|e, which|
|00004d40| 20 63 61 75 73 65 73 20 | 20 63 6f 6d 6d 61 6e 64 | causes | command|
|00004d50| 20 20 69 6e 74 65 72 70 | 72 65 74 61 2d 0d 20 20 | interp|reta-. |
|00004d60| 20 20 20 74 69 6f 6e 20 | 74 6f 20 62 65 20 75 6e | tion |to be un|
|00004d70| 77 6f 75 6e 64 2e 20 20 | 4d 65 73 73 61 67 65 20 |wound. |Message |
|00004d80| 69 73 20 61 20 73 74 72 | 69 6e 67 20 74 68 61 74 |is a str|ing that|
|00004d90| 20 69 73 20 72 65 74 75 | 72 6e 65 64 20 74 6f 0d | is retu|rned to.|
|00004da0| 20 20 20 20 20 74 68 65 | 20 61 70 70 6c 69 63 61 | the| applica|
|00004db0| 74 69 6f 6e 20 74 6f 20 | 69 6e 64 69 63 61 74 65 |tion to |indicate|
|00004dc0| 20 77 68 61 74 20 77 65 | 6e 74 20 77 72 6f 6e 67 | what we|nt wrong|
|00004dd0| 2e 0d 0d 20 20 20 20 20 | 49 66 20 74 68 65 20 69 |... |If the i|
|00004de0| 6e 66 6f 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |nfo argu|ment is |
|00004df0| 70 72 6f 76 69 64 65 64 | 20 61 6e 64 20 20 69 73 |provided| and is|
|00004e00| 20 20 6e 6f 6e 2d 65 6d | 70 74 79 2c 20 20 69 74 | non-em|pty, it|
|00004e10| 20 20 69 73 0d 20 20 20 | 20 20 75 73 65 64 20 74 | is. | used t|
|00004e20| 6f 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 74 68 65 |o initia|lize the|
|00004e30| 20 67 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | global |variable|
|00004e40| 20 65 72 72 6f 72 49 6e | 66 6f 2e 20 20 65 72 72 | errorIn|fo. err|
|00004e50| 6f 72 49 6e 66 6f 0d 20 | 20 20 20 20 69 73 20 75 |orInfo. | is u|
|00004e60| 73 65 64 20 74 6f 20 61 | 63 63 75 6d 75 6c 61 74 |sed to a|ccumulat|
|00004e70| 65 20 61 20 73 74 61 63 | 6b 20 74 72 61 63 65 20 |e a stac|k trace |
|00004e80| 6f 66 20 77 68 61 74 20 | 77 61 73 20 69 6e 20 20 |of what |was in |
|00004e90| 70 72 6f 67 72 65 73 73 | 0d 20 20 20 20 20 77 68 |progress|. wh|
|00004ea0| 65 6e 20 20 61 6e 20 20 | 65 72 72 6f 72 20 6f 63 |en an |error oc|
|00004eb0| 63 75 72 72 65 64 3b 20 | 61 73 20 6e 65 73 74 65 |curred; |as neste|
|00004ec0| 64 20 63 6f 6d 6d 61 6e | 64 73 20 75 6e 77 69 6e |d comman|ds unwin|
|00004ed0| 64 2c 20 74 68 65 20 54 | 63 6c 0d 20 20 20 20 20 |d, the T|cl. |
|00004ee0| 69 6e 74 65 72 70 72 65 | 74 65 72 20 61 64 64 73 |interpre|ter adds|
|00004ef0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 20 74 6f | informa|tion to|
|00004f00| 20 20 65 72 72 6f 72 49 | 6e 66 6f 2e 20 20 20 49 | errorI|nfo. I|
|00004f10| 66 20 20 74 68 65 20 20 | 69 6e 66 6f 0d 20 20 20 |f the |info. |
|00004f20| 20 20 61 72 67 75 6d 65 | 6e 74 20 20 69 73 20 70 | argume|nt is p|
|00004f30| 72 65 73 65 6e 74 2c 20 | 69 74 20 69 73 20 75 73 |resent, |it is us|
|00004f40| 65 64 20 74 6f 20 69 6e | 69 74 69 61 6c 69 7a 65 |ed to in|itialize|
|00004f50| 20 65 72 72 6f 72 49 6e | 66 6f 20 61 6e 64 0d 20 | errorIn|fo and. |
|00004f60| 20 20 20 20 74 68 65 20 | 66 69 72 73 74 20 69 6e | the |first in|
|00004f70| 63 72 65 6d 65 6e 74 20 | 6f 66 20 75 6e 77 69 6e |crement |of unwin|
|00004f80| 64 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 77 69 |d inform|ation wi|
|00004f90| 6c 6c 20 6e 6f 74 20 62 | 65 20 20 61 64 64 65 64 |ll not b|e added|
|00004fa0| 0d 20 20 20 20 20 62 79 | 20 20 74 68 65 20 20 54 |. by| the T|
|00004fb0| 63 6c 20 20 69 6e 74 65 | 72 70 72 65 74 65 72 2e |cl inte|rpreter.|
|00004fc0| 20 20 49 6e 20 6f 74 68 | 65 72 20 77 6f 72 64 73 | In oth|er words|
|00004fd0| 2c 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 63 6f |, the co|mmand co|
|00004fe0| 6e 2d 0d 20 20 20 20 20 | 74 61 69 6e 69 6e 67 20 |n-. |taining |
|00004ff0| 74 68 65 20 65 72 72 6f | 72 20 63 6f 6d 6d 61 6e |the erro|r comman|
|00005000| 64 20 77 69 6c 6c 20 6e | 6f 74 20 61 70 70 65 61 |d will n|ot appea|
|00005010| 72 20 69 6e 20 20 65 72 | 72 6f 72 49 6e 66 6f 3b |r in er|rorInfo;|
|00005020| 20 20 69 6e 0d 20 20 20 | 20 20 69 74 73 20 70 6c | in. | its pl|
|00005030| 61 63 65 20 77 69 6c 6c | 20 62 65 20 69 6e 66 6f |ace will| be info|
|00005040| 2e 20 20 54 68 69 73 20 | 66 65 61 74 75 72 65 20 |. This |feature |
|00005050| 69 73 20 6d 6f 73 74 20 | 75 73 65 66 75 6c 20 69 |is most |useful i|
|00005060| 6e 20 63 6f 6e 2d 0d 20 | 20 20 20 20 6a 75 6e 63 |n con-. | junc|
|00005070| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 63 61 |tion wit|h the ca|
|00005080| 74 63 68 20 63 6f 6d 6d | 61 6e 64 3a 20 69 66 20 |tch comm|and: if |
|00005090| 61 20 63 61 75 67 68 74 | 20 65 72 72 6f 72 20 63 |a caught| error c|
|000050a0| 61 6e 6e 6f 74 20 62 65 | 0d 20 20 20 20 20 68 61 |annot be|. ha|
|000050b0| 6e 64 6c 65 64 20 20 73 | 75 63 63 65 73 73 66 75 |ndled s|uccessfu|
|000050c0| 6c 6c 79 2c 20 20 69 6e | 66 6f 20 20 63 61 6e 20 |lly, in|fo can |
|000050d0| 20 62 65 20 75 73 65 64 | 20 74 6f 20 72 65 74 75 | be used| to retu|
|000050e0| 72 6e 20 61 20 73 74 61 | 63 6b 0d 20 20 20 20 20 |rn a sta|ck. |
|000050f0| 74 72 61 63 65 20 72 65 | 66 6c 65 63 74 69 6e 67 |trace re|flecting|
|00005100| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 70 6f | the ori|ginal po|
|00005110| 69 6e 74 20 20 6f 66 20 | 20 6f 63 63 75 72 72 65 |int of | occurre|
|00005120| 6e 63 65 20 20 6f 66 20 | 20 74 68 65 0d 20 20 20 |nce of | the. |
|00005130| 20 20 65 72 72 6f 72 3a | 0d 0d 20 20 20 20 20 20 | error:|.. |
|00005140| 20 20 20 20 63 61 74 63 | 68 20 7b 2e 2e 2e 7d 20 | catc|h {...} |
|00005150| 65 72 72 4d 73 67 0d 20 | 20 20 20 20 20 20 20 20 |errMsg. | |
|00005160| 20 73 65 74 20 73 61 76 | 65 64 49 6e 66 6f 20 24 | set sav|edInfo $|
|00005170| 65 72 72 6f 72 49 6e 66 | 6f 0d 20 20 20 20 20 20 |errorInf|o. |
|00005180| 20 20 20 20 2e 2e 2e 0d | 20 20 20 20 20 20 20 20 | ....| |
|00005190| 20 20 65 72 72 6f 72 20 | 24 65 72 72 4d 73 67 20 | error |$errMsg |
|000051a0| 24 73 61 76 65 64 49 6e | 66 6f 0d 0d 20 20 20 20 |$savedIn|fo.. |
|000051b0| 20 49 66 20 74 68 65 20 | 63 6f 64 65 20 61 72 67 | If the |code arg|
|000051c0| 75 6d 65 6e 74 20 69 73 | 20 70 72 65 73 65 6e 74 |ument is| present|
|000051d0| 2c 20 74 68 65 6e 20 69 | 74 73 20 76 61 6c 75 65 |, then i|ts value|
|000051e0| 20 69 73 20 73 74 6f 72 | 65 64 20 69 6e 0d 20 20 | is stor|ed in. |
|000051f0| 20 20 20 74 68 65 20 65 | 72 72 6f 72 43 6f 64 65 | the e|rrorCode|
|00005200| 20 67 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | global |variable|
|00005210| 2e 20 20 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |. This |variable|
|00005220| 20 69 73 20 69 6e 74 65 | 6e 64 65 64 20 74 6f 0d | is inte|nded to.|
|00005230| 20 20 20 20 20 68 6f 6c | 64 20 61 20 6d 61 63 68 | hol|d a mach|
|00005240| 69 6e 65 2d 72 65 61 64 | 61 62 6c 65 20 64 65 73 |ine-read|able des|
|00005250| 63 72 69 70 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |cription| of the |
|00005260| 20 65 72 72 6f 72 20 20 | 69 6e 20 20 63 61 73 65 | error |in case|
|00005270| 73 0d 20 20 20 20 20 77 | 68 65 72 65 20 20 73 75 |s. w|here su|
|00005280| 63 68 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |ch infor|mation i|
|00005290| 73 20 61 76 61 69 6c 61 | 62 6c 65 3b 20 73 65 65 |s availa|ble; see|
|000052a0| 20 74 68 65 20 73 65 63 | 74 69 6f 6e 20 42 55 49 | the sec|tion BUI|
|000052b0| 4c 54 2d 0d 20 20 20 20 | 20 49 4e 20 56 41 52 49 |LT-. | IN VARI|
|000052c0| 41 42 4c 45 53 20 62 65 | 6c 6f 77 20 66 6f 72 20 |ABLES be|low for |
|000052d0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 6e 20 74 |informat|ion on t|
|000052e0| 68 65 20 70 72 6f 70 65 | 72 20 66 6f 72 6d 61 74 |he prope|r format|
|000052f0| 20 20 66 6f 72 0d 20 20 | 20 20 20 74 68 65 20 20 | for. | the |
|00005300| 76 61 72 69 61 62 6c 65 | 2e 20 20 20 49 66 20 20 |variable|. If |
|00005310| 74 68 65 20 20 63 6f 64 | 65 20 61 72 67 75 6d 65 |the cod|e argume|
|00005320| 6e 74 20 69 73 20 6e 6f | 74 20 70 72 65 73 65 6e |nt is no|t presen|
|00005330| 74 2c 20 74 68 65 6e 0d | 20 20 20 20 20 65 72 72 |t, then.| err|
|00005340| 6f 72 43 6f 64 65 20 69 | 73 20 61 75 74 6f 6d 61 |orCode i|s automa|
|00005350| 74 69 63 61 6c 6c 79 20 | 72 65 73 65 74 20 20 74 |tically |reset t|
|00005360| 6f 20 20 60 60 4e 4f 4e | 45 27 27 20 20 62 79 20 |o ``NON|E'' by |
|00005370| 20 74 68 65 20 20 54 63 | 6c 0d 20 20 20 20 20 69 | the Tc|l. i|
|00005380| 6e 74 65 72 70 72 65 74 | 65 72 20 61 73 20 70 61 |nterpret|er as pa|
|00005390| 72 74 20 6f 66 20 70 72 | 6f 63 65 73 73 69 6e 67 |rt of pr|ocessing|
|000053a0| 20 74 68 65 20 65 72 72 | 6f 72 20 67 65 6e 65 72 | the err|or gener|
|000053b0| 61 74 65 64 20 62 79 20 | 74 68 65 0d 20 20 20 20 |ated by |the. |
|000053c0| 20 63 6f 6d 6d 61 6e 64 | 2e 0d 0d 0d 4b 45 59 57 | command|....KEYW|
|000053d0| 4f 52 44 53 0d 20 20 20 | 20 20 65 72 72 6f 72 2c |ORDS. | error,|
|000053e0| 20 65 72 72 6f 72 43 6f | 64 65 2c 20 65 72 72 6f | errorCo|de, erro|
|000053f0| 72 49 6e 66 6f 0d 0d 0d | 5f 5f 5f 5f 5f 5f 5f 5f |rInfo...|________|
|00005400| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005410| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005420| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005430| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 0d 4e 41 4d 45 0d |________|_..NAME.|
|00005440| 20 20 20 20 20 65 76 61 | 6c 20 2d 20 45 76 61 6c | eva|l - Eval|
|00005450| 75 61 74 65 20 61 20 54 | 63 6c 20 73 63 72 69 70 |uate a T|cl scrip|
|00005460| 74 0d 0d 53 59 4e 4f 50 | 53 49 53 0d 20 20 20 20 |t..SYNOP|SIS. |
|00005470| 20 65 76 61 6c 20 61 72 | 67 20 3f 61 72 67 20 2e | eval ar|g ?arg .|
|00005480| 2e 2e 3f 0d 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..?.____|________|
|00005490| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000054a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000054b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000054c0| 5f 5f 5f 5f 5f 0d 0d 0d | 44 45 53 43 52 49 50 54 |_____...|DESCRIPT|
|000054d0| 49 4f 4e 0d 20 20 20 20 | 20 45 76 61 6c 20 74 61 |ION. | Eval ta|
|000054e0| 6b 65 73 20 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 |kes one |or more |
|000054f0| 61 72 67 75 6d 65 6e 74 | 73 2c 20 77 68 69 63 68 |argument|s, which|
|00005500| 20 74 6f 67 65 74 68 65 | 72 20 63 6f 6d 70 72 69 | togethe|r compri|
|00005510| 73 65 20 20 61 0d 20 20 | 20 20 20 54 63 6c 20 20 |se a. | Tcl |
|00005520| 73 63 72 69 70 74 20 63 | 6f 6e 74 61 69 6e 69 6e |script c|ontainin|
|00005530| 67 20 6f 6e 65 20 6f 72 | 20 6d 6f 72 65 20 63 6f |g one or| more co|
|00005540| 6d 6d 61 6e 64 73 2e 20 | 20 45 76 61 6c 20 63 6f |mmands. | Eval co|
|00005550| 6e 63 61 74 65 6e 2d 0d | 20 20 20 20 20 61 74 65 |ncaten-.| ate|
|00005560| 73 20 61 6c 6c 20 69 74 | 73 20 61 72 67 75 6d 65 |s all it|s argume|
|00005570| 6e 74 73 20 69 6e 20 74 | 68 65 20 73 61 6d 65 20 |nts in t|he same |
|00005580| 20 66 61 73 68 69 6f 6e | 20 20 61 73 20 20 74 68 | fashion| as th|
|00005590| 65 20 20 63 6f 6e 63 61 | 74 0d 20 20 20 20 20 63 |e conca|t. c|
|000055a0| 6f 6d 6d 61 6e 64 2c 20 | 20 70 61 73 73 65 73 20 |ommand, | passes |
|000055b0| 20 74 68 65 20 20 63 6f | 6e 63 61 74 65 6e 61 74 | the co|ncatenat|
|000055c0| 65 64 20 73 74 72 69 6e | 67 20 74 6f 20 74 68 65 |ed strin|g to the|
|000055d0| 20 54 63 6c 20 69 6e 74 | 65 72 2d 0d 20 20 20 20 | Tcl int|er-. |
|000055e0| 20 70 72 65 74 65 72 20 | 72 65 63 75 72 73 69 76 | preter |recursiv|
|000055f0| 65 6c 79 2c 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |ely, and| returns|
|00005600| 20 74 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 20 | the res|ult of |
|00005610| 74 68 61 74 20 20 65 76 | 61 6c 75 61 2d 0d 20 20 |that ev|alua-. |
|00005620| 20 20 20 74 69 6f 6e 20 | 28 6f 72 20 61 6e 79 20 | tion |(or any |
|00005630| 65 72 72 6f 72 20 67 65 | 6e 65 72 61 74 65 64 20 |error ge|nerated |
|00005640| 62 79 20 69 74 29 2e 0d | 0d 0d 4b 45 59 57 4f 52 |by it)..|..KEYWOR|
|00005650| 44 53 0d 20 20 20 20 20 | 63 6f 6e 63 61 74 65 6e |DS. |concaten|
|00005660| 61 74 65 2c 20 65 76 61 | 6c 75 61 74 65 2c 20 73 |ate, eva|luate, s|
|00005670| 63 72 69 70 74 0d 0d 0d | 5f 5f 5f 5f 5f 5f 5f 5f |cript...|________|
|00005680| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005690| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000056a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000056b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 0d 4e 41 4d 45 0d |________|_..NAME.|
|000056c0| 20 20 20 20 20 65 78 65 | 63 20 2d 20 49 6e 76 6f | exe|c - Invo|
|000056d0| 6b 65 20 73 75 62 70 72 | 6f 63 65 73 73 28 65 73 |ke subpr|ocess(es|
|000056e0| 29 0d 0d 53 59 4e 4f 50 | 53 49 53 0d 20 20 20 20 |)..SYNOP|SIS. |
|000056f0| 20 65 78 65 63 20 3f 73 | 77 69 74 63 68 65 73 3f | exec ?s|witches?|
|00005700| 20 61 72 67 20 3f 61 72 | 67 20 2e 2e 2e 3f 0d 5f | arg ?ar|g ...?._|
|00005710| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005720| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005730| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005740| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005750| 0d 0d 0d 44 45 53 43 52 | 49 50 54 49 4f 4e 0d 20 |...DESCR|IPTION. |
|00005760| 20 20 20 20 54 68 69 73 | 20 63 6f 6d 6d 61 6e 64 | This| command|
|00005770| 20 74 72 65 61 74 73 20 | 69 74 73 20 61 72 67 75 | treats |its argu|
|00005780| 6d 65 6e 74 73 20 61 73 | 20 20 74 68 65 20 20 73 |ments as| the s|
|00005790| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 20 6f 66 |pecifica|tion of|
|000057a0| 0d 20 20 20 20 20 6f 6e | 65 20 6f 72 20 6d 6f 72 |. on|e or mor|
|000057b0| 65 20 73 75 62 70 72 6f | 63 65 73 73 65 73 20 74 |e subpro|cesses t|
|000057c0| 6f 20 65 78 65 63 75 74 | 65 2e 20 20 54 68 65 20 |o execut|e. The |
|000057d0| 61 72 67 75 6d 65 6e 74 | 73 20 74 61 6b 65 20 74 |argument|s take t|
|000057e0| 68 65 0d 20 20 20 20 20 | 66 6f 72 6d 20 6f 66 20 |he. |form of |
|000057f0| 61 20 73 74 61 6e 64 61 | 72 64 20 73 68 65 6c 6c |a standa|rd shell|
|00005800| 20 70 69 70 65 6c 69 6e | 65 20 77 68 65 72 65 20 | pipelin|e where |
|00005810| 65 61 63 68 20 61 72 67 | 20 62 65 63 6f 6d 65 73 |each arg| becomes|
|00005820| 20 6f 6e 65 0d 20 20 20 | 20 20 77 6f 72 64 20 20 | one. | word |
|00005830| 6f 66 20 61 20 63 6f 6d | 6d 61 6e 64 2c 20 61 6e |of a com|mand, an|
|00005840| 64 20 65 61 63 68 20 64 | 69 73 74 69 6e 63 74 20 |d each d|istinct |
|00005850| 63 6f 6d 6d 61 6e 64 20 | 62 65 63 6f 6d 65 73 20 |command |becomes |
|00005860| 61 20 73 75 62 2d 0d 20 | 20 20 20 20 70 72 6f 63 |a sub-. | proc|
|00005870| 65 73 73 2e 0d 0d 20 20 | 20 20 20 49 66 20 74 68 |ess... | If th|
|00005880| 65 20 69 6e 69 74 69 61 | 6c 20 61 72 67 75 6d 65 |e initia|l argume|
|00005890| 6e 74 73 20 74 6f 20 65 | 78 65 63 20 73 74 61 72 |nts to e|xec star|
|000058a0| 74 20 77 69 74 68 20 2d | 20 74 68 65 6e 20 74 68 |t with -| then th|
|000058b0| 65 79 20 20 61 72 65 20 | 20 7c 0d 20 20 20 20 20 |ey are | |. |
|000058c0| 74 72 65 61 74 65 64 20 | 20 61 73 20 20 63 6f 6d |treated | as com|
|000058d0| 6d 61 6e 64 2d 6c 69 6e | 65 20 20 73 77 69 74 63 |mand-lin|e switc|
|000058e0| 68 65 73 20 20 61 6e 64 | 20 61 72 65 20 6e 6f 74 |hes and| are not|
|000058f0| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 20 7c 0d | part of| the |.|
|00005900| 20 20 20 20 20 70 69 70 | 65 6c 69 6e 65 20 20 73 | pip|eline s|
|00005910| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 2e 20 20 20 |pecifica|tion. |
|00005920| 20 54 68 65 20 20 20 66 | 6f 6c 6c 6f 77 69 6e 67 | The f|ollowing|
|00005930| 20 20 20 73 77 69 74 63 | 68 65 73 20 20 20 61 72 | switc|hes ar|
|00005940| 65 20 20 7c 0d 20 20 20 | 20 20 63 75 72 72 65 6e |e |. | curren|
|00005950| 74 6c 79 20 73 75 70 70 | 6f 72 74 65 64 3a 20 20 |tly supp|orted: |
|00005960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005980| 20 20 20 20 20 20 20 20 | 7c 0d 0d 20 20 20 20 20 | ||.. |
|00005990| 2d 6b 65 65 70 6e 65 77 | 2d 20 20 7c 0d 20 20 20 |-keepnew|- |. |
|000059a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|000059b0| 69 6e 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ine | |
|000059c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000059d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000059e0| 20 20 20 20 20 20 20 20 | 20 20 7c 7c 0d 20 20 20 | | ||. |
|000059f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 52 | | R|
|00005a00| 65 74 61 69 6e 73 20 61 | 20 74 72 61 69 6c 69 6e |etains a| trailin|
|00005a10| 67 20 6e 65 77 6c 69 6e | 65 20 20 69 6e 20 20 74 |g newlin|e in t|
|00005a20| 68 65 20 20 70 69 70 65 | 6c 69 6e 65 27 73 20 20 |he pipe|line's |
|00005a30| 7c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 ||. | |
|00005a40| 20 20 20 20 6f 75 74 70 | 75 74 2e 20 20 20 4e 6f | outp|ut. No|
|00005a50| 72 6d 61 6c 6c 79 20 20 | 61 20 20 74 72 61 69 6c |rmally |a trail|
|00005a60| 69 6e 67 20 6e 65 77 6c | 69 6e 65 20 77 69 6c 6c |ing newl|ine will|
|00005a70| 20 62 65 20 20 7c 0d 20 | 20 20 20 20 20 20 20 20 | be |. | |
|00005a80| 20 20 20 20 20 20 20 20 | 20 64 65 6c 65 74 65 64 | | deleted|
|00005a90| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ab0| 20 20 20 20 20 20 20 20 | 20 20 7c 0d 0d 20 20 20 | | |.. |
|00005ac0| 20 20 2d 2d 20 20 20 20 | 20 20 20 20 20 20 20 20 | -- | |
|00005ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b00| 20 20 20 20 20 7c 7c 0d | 20 20 20 20 20 20 20 20 | ||.| |
|00005b10| 20 20 20 20 20 20 20 20 | 20 20 4d 61 72 6b 73 20 | | Marks |
|00005b20| 20 74 68 65 20 20 65 6e | 64 20 6f 66 20 73 77 69 | the en|d of swi|
|00005b30| 74 63 68 65 73 2e 20 20 | 54 68 65 20 61 72 67 75 |tches. |The argu|
|00005b40| 6d 65 6e 74 20 66 6f 6c | 2d 20 20 7c 0d 20 20 20 |ment fol|- |. |
|00005b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|00005b60| 6f 77 69 6e 67 20 74 68 | 69 73 20 6f 6e 65 20 77 |owing th|is one w|
|00005b70| 69 6c 6c 20 62 65 20 74 | 72 65 61 74 65 64 20 20 |ill be t|reated |
|00005b80| 61 73 20 20 74 68 65 20 | 20 66 69 72 73 74 20 20 |as the | first |
|00005b90| 7c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 ||. | |
|00005ba0| 20 20 20 20 61 72 67 20 | 65 76 65 6e 20 69 66 20 | arg |even if |
|00005bb0| 69 74 20 73 74 61 72 74 | 73 20 77 69 74 68 20 61 |it start|s with a|
|00005bc0| 20 2d 2e 0d 0d 20 20 20 | 20 20 49 66 20 61 6e 20 | -... | If an |
|00005bd0| 61 72 67 20 28 6f 72 20 | 70 61 69 72 20 6f 66 20 |arg (or |pair of |
|00005be0| 61 72 67 27 73 29 20 68 | 61 73 20 6f 6e 65 20 6f |arg's) h|as one o|
|00005bf0| 66 20 74 68 65 20 66 6f | 72 6d 73 20 20 64 65 73 |f the fo|rms des|
|00005c00| 63 72 69 62 65 64 0d 20 | 20 20 20 20 62 65 6c 6f |cribed. | belo|
|00005c10| 77 20 20 74 68 65 6e 20 | 20 69 74 20 69 73 20 75 |w then | it is u|
|00005c20| 73 65 64 20 62 79 20 65 | 78 65 63 20 74 6f 20 63 |sed by e|xec to c|
|00005c30| 6f 6e 74 72 6f 6c 20 74 | 68 65 20 66 6c 6f 77 20 |ontrol t|he flow |
|00005c40| 6f 66 20 69 6e 70 75 74 | 0d 20 20 20 20 20 61 6e |of input|. an|
|00005c50| 64 20 6f 75 74 70 75 74 | 20 61 6d 6f 6e 67 20 74 |d output| among t|
|00005c60| 68 65 20 73 75 62 70 72 | 6f 63 65 73 73 28 65 73 |he subpr|ocess(es|
|00005c70| 29 2e 20 20 20 53 75 63 | 68 20 20 61 72 67 75 6d |). Suc|h argum|
|00005c80| 65 6e 74 73 20 20 77 69 | 6c 6c 0d 20 20 20 20 20 |ents wi|ll. |
|00005c90| 6e 6f 74 20 20 62 65 20 | 20 70 61 73 73 65 64 20 |not be | passed |
|00005ca0| 74 6f 20 74 68 65 20 73 | 75 62 70 72 6f 63 65 73 |to the s|ubproces|
|00005cb0| 73 28 65 73 29 2e 20 20 | 49 6e 20 66 6f 72 6d 73 |s(es). |In forms|
|00005cc0| 20 73 75 63 68 20 61 73 | 20 60 60 3c 20 20 7c 0d | such as| ``< |.|
|00005cd0| 20 20 20 20 20 66 69 6c | 65 4e 61 6d 65 27 27 20 | fil|eName'' |
|00005ce0| 66 69 6c 65 4e 61 6d 65 | 20 6d 61 79 20 65 69 74 |fileName| may eit|
|00005cf0| 68 65 72 20 62 65 20 20 | 69 6e 20 20 61 20 20 73 |her be |in a s|
|00005d00| 65 70 61 72 61 74 65 20 | 20 61 72 67 75 6d 65 6e |eparate | argumen|
|00005d10| 74 20 20 7c 0d 20 20 20 | 20 20 66 72 6f 6d 20 60 |t |. | from `|
|00005d20| 60 3c 27 27 20 6f 72 20 | 69 6e 20 74 68 65 20 73 |`<'' or |in the s|
|00005d30| 61 6d 65 20 61 72 67 75 | 6d 65 6e 74 20 77 69 74 |ame argu|ment wit|
|00005d40| 68 20 6e 6f 20 69 6e 74 | 65 72 76 65 6e 69 6e 67 |h no int|ervening|
|00005d50| 20 73 70 61 63 65 20 20 | 7c 0d 20 20 20 20 20 28 | space ||. (|
|00005d60| 69 2e 65 2e 20 60 60 3c | 66 69 6c 65 4e 61 6d 65 |i.e. ``<|fileName|
|00005d70| 27 27 29 2e 0d 0d 20 20 | 20 20 20 7c 20 20 20 20 |'')... | | |
|00005d80| 20 20 20 20 20 20 20 20 | 20 20 53 65 70 61 72 61 | | Separa|
|00005d90| 74 65 73 20 64 69 73 74 | 69 6e 63 74 20 63 6f 6d |tes dist|inct com|
|00005da0| 6d 61 6e 64 73 20 69 6e | 20 74 68 65 20 20 70 69 |mands in| the pi|
|00005db0| 70 65 6c 69 6e 65 2e 0d | 20 20 20 20 20 20 20 20 |peline..| |
|00005dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 68 65 20 | | The |
|00005dd0| 20 73 74 61 6e 64 61 72 | 64 20 6f 75 74 70 75 74 | standar|d output|
|00005de0| 20 6f 66 20 74 68 65 20 | 70 72 65 63 65 64 69 6e | of the |precedin|
|00005df0| 67 20 63 6f 6d 6d 61 6e | 64 0d 20 20 20 20 20 20 |g comman|d. |
|00005e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 77 69 | | wi|
|00005e10| 6c 6c 20 62 65 20 70 69 | 70 65 64 20 69 6e 74 6f |ll be pi|ped into|
|00005e20| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 69 6e | the sta|ndard in|
|00005e30| 70 75 74 20 6f 66 20 20 | 74 68 65 0d 20 20 20 20 |put of |the. |
|00005e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e50| 6e 65 78 74 20 63 6f 6d | 6d 61 6e 64 2e 0d 0d 20 |next com|mand... |
|00005e60| 20 20 20 20 7c 26 20 20 | 20 20 20 20 20 20 20 20 | |& | |
|00005e70| 20 20 20 53 65 70 61 72 | 61 74 65 73 20 64 69 73 | Separ|ates dis|
|00005e80| 74 69 6e 63 74 20 63 6f | 6d 6d 61 6e 64 73 20 69 |tinct co|mmands i|
|00005e90| 6e 20 74 68 65 20 20 70 | 69 70 65 6c 69 6e 65 2e |n the p|ipeline.|
|00005ea0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005eb0| 20 20 20 20 20 42 6f 74 | 68 20 20 73 74 61 6e 64 | Bot|h stand|
|00005ec0| 61 72 64 20 20 6f 75 74 | 70 75 74 20 20 61 6e 64 |ard out|put and|
|00005ed0| 20 73 74 61 6e 64 61 72 | 64 20 65 72 72 6f 72 20 | standar|d error |
|00005ee0| 6f 66 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |of. | |
|00005ef0| 20 20 20 20 20 20 20 74 | 68 65 20 70 72 65 63 65 | t|he prece|
|00005f00| 64 69 6e 67 20 63 6f 6d | 6d 61 6e 64 20 77 69 6c |ding com|mand wil|
|00005f10| 6c 20 62 65 20 70 69 70 | 65 64 20 69 6e 74 6f 20 |l be pip|ed into |
|00005f20| 20 74 68 65 0d 20 20 20 | 20 20 20 20 20 20 20 20 | the. | |
|00005f30| 20 20 20 20 20 20 20 20 | 20 73 74 61 6e 64 61 72 | | standar|
|00005f40| 64 20 20 69 6e 70 75 74 | 20 20 6f 66 20 20 74 68 |d input| of th|
|00005f50| 65 20 20 6e 65 78 74 20 | 63 6f 6d 6d 61 6e 64 2e |e next |command.|
|00005f60| 20 20 54 68 69 73 0d 20 | 20 20 20 20 20 20 20 20 | This. | |
|00005f70| 20 20 20 20 20 20 20 20 | 20 20 20 66 6f 72 6d 20 | | form |
|00005f80| 6f 66 20 72 65 64 69 72 | 65 63 74 69 6f 6e 20 6f |of redir|ection o|
|00005f90| 76 65 72 72 69 64 65 73 | 20 66 6f 72 6d 73 20 20 |verrides| forms |
|00005fa0| 73 75 63 68 20 20 61 73 | 0d 20 20 20 20 20 20 20 |such as|. |
|00005fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 32 3e 20 | | 2> |
|00005fc0| 61 6e 64 20 3e 26 2e 0d | 0d 20 20 20 20 20 3c 20 |and >&..|. < |
|00005fd0| 66 69 6c 65 4e 61 6d 65 | 20 20 20 20 20 54 68 65 |fileName| The|
|00005fe0| 20 66 69 6c 65 20 6e 61 | 6d 65 64 20 62 79 20 66 | file na|med by f|
|00005ff0| 69 6c 65 4e 61 6d 65 20 | 69 73 20 6f 70 65 6e 65 |ileName |is opene|
|00006000| 64 20 61 6e 64 20 75 73 | 65 64 0d 20 20 20 20 20 |d and us|ed. |
|00006010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 | | a|
|00006020| 73 20 20 74 68 65 20 20 | 73 74 61 6e 64 61 72 64 |s the |standard|
|00006030| 20 69 6e 70 75 74 20 66 | 6f 72 20 74 68 65 20 66 | input f|or the f|
|00006040| 69 72 73 74 20 63 6f 6d | 6d 61 6e 64 0d 20 20 20 |irst com|mand. |
|00006050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006060| 20 69 6e 20 74 68 65 20 | 70 69 70 65 6c 69 6e 65 | in the |pipeline|
|00006070| 2e 0d 0d 20 20 20 20 20 | 3c 40 20 66 69 6c 65 49 |... |<@ fileI|
|00006080| 64 20 20 20 20 20 20 46 | 69 6c 65 49 64 20 6d 75 |d F|ileId mu|
|00006090| 73 74 20 62 65 20 74 68 | 65 20 20 69 64 65 6e 74 |st be th|e ident|
|000060a0| 69 66 69 65 72 20 20 66 | 6f 72 20 20 61 6e 20 20 |ifier f|or an |
|000060b0| 6f 70 65 6e 20 20 7c 0d | 20 20 20 20 20 20 20 20 |open |.| |
|000060c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 69 6c 65 | | file|
|000060d0| 2c 20 20 73 75 63 68 20 | 61 73 20 74 68 65 20 72 |, such |as the r|
|000060e0| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 66 72 6f 6d |eturn va|lue from|
|000060f0| 20 61 20 70 72 65 76 69 | 2d 20 20 7c 0d 20 20 20 | a previ|- |. |
|00006100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006110| 20 6f 75 73 20 63 61 6c | 6c 20 74 6f 20 6f 70 65 | ous cal|l to ope|
|00006120| 6e 2e 20 20 49 74 20 69 | 73 20 75 73 65 64 20 61 |n. It i|s used a|
|00006130| 73 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 20 |s the st|andard |
|00006140| 7c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 ||. | |
|00006150| 20 20 20 20 20 20 69 6e | 70 75 74 20 20 66 6f 72 | in|put for|
|00006160| 20 74 68 65 20 66 69 72 | 73 74 20 63 6f 6d 6d 61 | the fir|st comma|
|00006170| 6e 64 20 69 6e 20 74 68 | 65 20 70 69 70 65 6c 69 |nd in th|e pipeli|
|00006180| 6e 65 2e 20 20 7c 0d 20 | 20 20 20 20 20 20 20 20 |ne. |. | |
|00006190| 20 20 20 20 20 20 20 20 | 20 20 20 46 69 6c 65 49 | | FileI|
|000061a0| 64 20 6d 75 73 74 20 68 | 61 76 65 20 62 65 65 6e |d must h|ave been|
|000061b0| 20 6f 70 65 6e 65 64 20 | 66 6f 72 20 72 65 61 64 | opened |for read|
|000061c0| 69 6e 67 2e 0d 0d 20 20 | 20 20 20 3c 3c 20 76 61 |ing... | << va|
|000061d0| 6c 75 65 20 20 20 20 20 | 20 20 56 61 6c 75 65 20 |lue | Value |
|000061e0| 69 73 20 70 61 73 73 65 | 64 20 74 6f 20 74 68 65 |is passe|d to the|
|000061f0| 20 66 69 72 73 74 20 63 | 6f 6d 6d 61 6e 64 20 20 | first c|ommand |
|00006200| 61 73 20 20 69 74 73 0d | 20 20 20 20 20 20 20 20 |as its.| |
|00006210| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 74 61 6e | | stan|
|00006220| 64 61 72 64 20 69 6e 70 | 75 74 2e 0d 0d 20 20 20 |dard inp|ut... |
|00006230| 20 20 3e 20 66 69 6c 65 | 4e 61 6d 65 20 20 20 20 | > file|Name |
|00006240| 20 53 74 61 6e 64 61 72 | 64 20 6f 75 74 70 75 74 | Standar|d output|
|00006250| 20 20 66 72 6f 6d 20 20 | 74 68 65 20 20 6c 61 73 | from |the las|
|00006260| 74 20 20 63 6f 6d 6d 61 | 6e 64 20 20 69 73 0d 20 |t comma|nd is. |
|00006270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006280| 20 20 20 72 65 64 69 72 | 65 63 74 65 64 20 20 20 | redir|ected |
|00006290| 74 6f 20 20 20 74 68 65 | 20 20 66 69 6c 65 20 20 |to the| file |
|000062a0| 6e 61 6d 65 64 20 20 66 | 69 6c 65 4e 61 6d 65 2c |named f|ileName,|
|000062b0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000062c0| 20 20 20 20 20 6f 76 65 | 72 77 72 69 74 69 6e 67 | ove|rwriting|
|000062d0| 20 69 74 73 20 70 72 65 | 76 69 6f 75 73 20 63 6f | its pre|vious co|
|000062e0| 6e 74 65 6e 74 73 2e 0d | 0d 20 20 20 20 20 32 3e |ntents..|. 2>|
|000062f0| 20 66 69 6c 65 4e 61 6d | 65 20 20 20 20 53 74 61 | fileNam|e Sta|
|00006300| 6e 64 61 72 64 20 65 72 | 72 6f 72 20 66 72 6f 6d |ndard er|ror from|
|00006310| 20 61 6c 6c 20 63 6f 6d | 6d 61 6e 64 73 20 69 6e | all com|mands in|
|00006320| 20 74 68 65 20 70 69 70 | 65 2d 20 20 7c 0d 20 20 | the pip|e- |. |
|00006330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006340| 20 20 6c 69 6e 65 20 20 | 20 69 73 20 20 20 72 65 | line | is re|
|00006350| 64 69 72 65 63 74 65 64 | 20 20 20 74 6f 20 20 74 |directed| to t|
|00006360| 68 65 20 20 66 69 6c 65 | 20 20 6e 61 6d 65 64 20 |he file| named |
|00006370| 20 7c 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | |. | |
|00006380| 20 20 20 20 20 20 20 66 | 69 6c 65 4e 61 6d 65 2c | f|ileName,|
|00006390| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 69 74 73 | overwri|ting its|
|000063a0| 20 70 72 65 76 69 6f 75 | 73 20 63 6f 6e 74 65 6e | previou|s conten|
|000063b0| 74 73 2e 20 20 20 7c 0d | 0d 20 20 20 20 20 3e 26 |ts. |.|. >&|
|000063c0| 20 66 69 6c 65 4e 61 6d | 65 20 20 20 20 20 20 20 | fileNam|e |
|000063d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.