$[] causes crashes
Closed / Duplicate58241eb2e44c14c7fc12a4c468e69d023839e352Created 10 years agoUpdated 10 years ago
Descriptionplain2016-07-14 08:12:05
set yf1 "14-11-03 14-18-27: 88 13 03 05 00 00 5A 00 0D 01 07 09 32 00 7E 00 FF FF FF FF FF FF 00 00 04 00 01 03 09 01 02 03 04 05 06 07 08 00 1E 00 01 00 20 15 08 00 20 00 01 00 01 01 44 00 00 00 D2 04 00 00 00 00 0D 01\ 07 09 32 00 04 07 80 0D 01 07 09 32 00 04 07 80 C3 0D 01 07 09 32 00 04 07 80 C3 0D 01 07 09 32 00 04 07 80 C3 0D 01 07 09 32 00 04 07 80 C3 0D 01 07 09 32 00 04 07 80 C3 00 00 00 00 11 C3 9E" set sen "78 78" set z "16-07-14 12-15-20" set str "" set line "12345" append str [append line "\n"] set str1 [string replace $[string replace $yf1 0 16 $z] 31 35 $sen] ;# oops puts $str1 The code above will make Tcl crash.
dkfwiki2016-07-14 09:45:58
Works for me with the 8.6.6 RC.
dgpplain2016-07-14 12:37:22
Dup of http://core.tcl.tk/tcl/tktview?name=1af8de5705 Already fixed for 8.6.6
Log in (anonymous is fine) to add a comment.