Glob-magic in clock format string
Closed / Fixed1494664fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 20 years ago
Descriptionplain2006-05-25 00:15:53
% info patchlevel
8.5a5
% clock format 0 -format {}
% clock format 0 -format *
invalid command name "::tcl::clock::formatproc'*'C"
This comes from parseClockFormatFormat where existence
of previous formatter is checked with
if {[info procs $procName] != {}} {
which finds everything (with *). Can be fixed with
if {$procName in [info procs "formatproc*"]} {
which doesn't use glob-magic. Usage of 8.5 "in"
operator seems appropriate since new clock isn't being
backported.
dgpplain2006-05-25 22:55:06
Logged In: YES user_id=80530 [namespace which] makes a good alternative to [info commands] when one command is sought that might contain glob-special chars.
kennykb Closed ticket [1494664fff].
[History diff]2006-07-31 02:16:05
Log in (anonymous is fine) to add a comment.