Skip to content
Tcl Source Code History Of Ticket 219101
Login

History Of Ticket 219101

Artifacts Associated With Ticket 219101

  1. Ticket change [fcf1ff56d2] (rid 108326) by nobody on 2000-10-26 01:10:45:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5922 Bug
      Version: 8.4a1
      SubmitDate: '2000-06-20'
      LastModified: '2000-06-20'
      Severity: MED
      Status: Released
      Submitter: techsupp
      ChangedBy: ericm
      OS: Linux-SuSE
      FixedDate: '2000-06-20'
      FixedInVersion: 8.4a2
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Christian Krone
      
      
      
      ObservedBehavior:
      
      The pattern and string argument of the "string match" command are crossed.
      
      This way there may be more entries in the cache than needed.
      
      
      
      Patch:
      
      *** optparse.tcl.org    Fri Apr 16 02:47:18 1999
      
      --- optparse.tcl        Tue Jun 20 15:50:06 2000
      
      ***************
      
      *** 253,259 ****
      
        # into local variable named "Args".
      
        proc ::tcl::OptProc {name desc body} {
      
            set namespace [uplevel namespace current];
      
      !     if {   ([string match $name "::*"])
      
                || ([string compare $namespace "::"]==0)} {
      
                # absolute name or global namespace, name is the key
      
                set key $name;
      
      --- 253,259 ----
      
        # into local variable named "Args".
      
        proc ::tcl::OptProc {name desc body} {
      
            set namespace [uplevel namespace current];
      
      !     if {   ([string match "::*" $name])
      
                || ([string compare $namespace "::"]==0)} {
      
                # absolute name or global namespace, name is the key
      
                set key $name;
      
      
      
      PatchFiles:
      
      optparse.tcl
      
      
      
      
      
      Thanks for the patch.  I applied it to the sources in the CVS repository, and the fix will go out with Tcl 8.4a2.  You should note that we discourage use of the opt package in favor of the cmdline package that is part of tcllib.  cmdline is more sophisticated and reliable than opt is.  Go to http://dev.scriptics.com/software/tcllib/ for more information.  Thanks!
      
      - eric
      
      -- 06/20/2000 ericm
      
      
      
    4. foundin initialized to: "obsolete: 8.4a1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "opt0.4: wrong argument order in tcl::OptProc"
    11. type initialized to: "Bug"
  2. Ticket change [e403fd54b7] (rid 87889) by welch on 2000-10-26 08:34:56:

    1. closedate changed to: "2000-10-26T01:34:56"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [95c48718b3] (rid 106210) by dgp on 2001-04-20 02:47:18:

    1. closedate changed to: "2001-04-19T19:47:18"
    2. closer changed to: "dgp"
    3. subsystem changed to: "31. opt Package"