Artifact
e27a24481044739c1429ff02a7b3b4b8d92d7673:
- File
test/th1-tcl9.txt
— part of check-in
[46864ac9cc]
at
2012-08-22 11:15:25
on branch tcl-argv-handling-v2
— Modify the Tcl argument handling to deal with object reference counts and errors.
(user:
mistachkin
size: 313)
[more...]
0000: 3c 74 68 31 3e 0a 20 20 23 0a 20 20 23 20 54 68 <th1>. #. # Th
0010: 69 73 20 69 73 20 61 20 22 54 48 31 20 66 72 61 is is a "TH1 fra
0020: 67 6d 65 6e 74 22 20 75 73 65 64 20 74 6f 20 74 gment" used to t
0030: 65 73 74 20 74 68 65 20 54 63 6c 20 69 6e 74 65 est the Tcl inte
0040: 67 72 61 74 69 6f 6e 20 66 65 61 74 75 72 65 73 gration features
0050: 20 6f 66 20 54 48 31 2e 0a 20 20 23 20 54 68 65 of TH1.. # The
0060: 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 74 corresponding t
0070: 65 73 74 20 66 69 6c 65 20 65 78 65 63 75 74 65 est file execute
0080: 73 20 74 68 69 73 20 66 69 6c 65 20 75 73 69 6e s this file usin
0090: 67 20 74 68 65 20 74 65 73 74 2d 74 68 2d 72 65 g the test-th-re
00a0: 6e 64 65 72 0a 20 20 23 20 46 6f 73 73 69 6c 20 nder. # Fossil
00b0: 63 6f 6d 6d 61 6e 64 2e 0a 20 20 23 0a 20 20 73 command.. #. s
00c0: 65 74 20 63 68 61 6e 6e 65 6c 20 73 74 64 6f 75 et channel stdou
00d0: 74 3b 20 74 63 6c 49 6e 76 6f 6b 65 20 73 65 74 t; tclInvoke set
00e0: 20 63 68 61 6e 6e 65 6c 20 24 63 68 61 6e 6e 65 channel $channe
00f0: 6c 0a 20 20 74 63 6c 45 76 61 6c 20 7b 70 75 74 l. tclEval {put
0100: 73 20 24 63 68 61 6e 6e 65 6c 20 5b 6c 69 73 74 s $channel [list
0110: 20 5b 66 69 6c 65 20 74 61 69 6c 20 24 61 72 67 [file tail $arg
0120: 76 30 5d 20 24 61 72 67 63 20 24 61 72 67 76 5d v0] $argc $argv]
0130: 7d 0a 3c 2f 74 68 31 3e 0a }.</th1>.