From: <no...@tc...> - 2025-10-05 07:48:50
|
Automated mail by fx, on behalf of no...@tc... Ticket Change [2b722b53bbbf52038748ee601ef82a2888945505cbed10c026b8a7a8ca3426cf] [list command overwrites $plugin variable] By juliannoble2 For Tcllib On 2025-10-05T07:46:54.678 Details https://core.tcl-lang.org/tcllib/tinfo?name=2b722b53bbbf52038748ee601ef82a2888945505cbed10c026b8a7a8ca3426cf Ticket https://core.tcl-lang.org/tcllib/tktview/8ab3be2e6a1776e8a813d8b96d53407a2c3bf222 Changed Fields assignee: nobody closer: nobody comment: calling 'objectName list' will overwrite the instance variable $plugin with the last entry in the returned list e.g if a pattern is specified that returns multiple plugins, the last one will be asssigned to $plugin. This means a subsequent call to 'objectName plugin' can return the wrong name. This seems to be a result of using plugin for the capture variable in the list method: foreach p [$sip eval {package names}] { if {![regexp $pattern $p -> plugin]} continue lappend result $plugin } is_private: 0 login: juliannoble2 priority: 5 Medium private_contact: 957fdfcd8744611e3fe1f4896c7538b1d9bf47b2 resolution: None severity: Minor status: Open submitter: juliannoble2 subsystem: pluginmgr title: list command overwrites $plugin variable type: Bug ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl-lang.org/ ------------------------------------------------------------ |