|
2001-04-20
| ||
| 02:47 | • Ticket [219101ffff] opt0.4: wrong argument order in tcl::OptProc status stil... artifact: 95c48718b3 user: dgp | |
|
2000-10-26
| ||
| 08:34 | • Closed ticket [219101ffff]. artifact: e403fd54b7 user: welch | |
| 01:10 | • New ticket [219101ffff]. artifact: fcf1ff56d2 user: nobody | |
opt0.4: wrong argument order in tcl::OptProc
Closed / Fixed219101ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:10:45
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
welch Closed ticket [219101ffff].
[History diff]2000-10-26 08:34:56
dgp Ticket [219101ffff]: 3 changes
[History diff]2001-04-20 02:47:18
Log in (anonymous is fine) to add a comment.