Menu

#3437 Glob-magic in clock format string

obsolete: 8.5a5
closed-fixed
5
2006-07-30
2006-05-25
Kaitzschu
No

% 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.

Discussion

  • Don Porter

    Don Porter - 2006-05-25

    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.

     
  • Kevin B KENNY

    Kevin B KENNY - 2006-07-30
    • status: open --> closed-fixed
     
MongoDB Logo MongoDB