Artifacts Associated With Ticket 1788984
Ticket change [b2927338b8] (rid 98357) by dgp on 2007-09-05 20:58:23:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
"For example, suppose the command set script [namespace code {foo bar}] is invoked in namespace ::a::b. Then eval "$script x y" can be executed in any namespace (assuming the value of script has been passed in properly) and will have the same effect as the command ::namespace eval ::a::b {foo bar x y}." For literal values like "x" and "y" this advice is fine, but for a value containing substitution characters, this doesn't work. In order to prevent the substitution from happening, the "..." quoting has to be rejected as the script building tool. This leaves us with the safer [list]-based building schemes. eval $script [list x y] or eval [linsert $script end x y] are more generally correct solutions. - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "21. [namespace]"
- title initialized to: "[namespace code] doc improvement "
- type initialized to: "Bug"
Ticket change [dc474f310b] (rid 114449) by jenglish on 2007-09-06 05:44:34:
- icomment:
Logged In: YES user_id=68433 Originator: NO I don't think the docs currently guarantee that eval [linsert $script end x y] shall work. However, it happens to be true, and it would be a good thing to guarantee. - login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"
- icomment:
Ticket change [7727e3d617] (rid 89730) by msofer on 2007-09-13 07:42:56:
- foundin changed to: "obsolete: 8.5a7"
- priority changed to: "8"
Ticket change [971b4504af] (rid 106450) by msofer on 2007-10-27 20:52:42:
- closedate changed to: "2007-10-27T13:52:42"
- closer changed to: "msofer"
- resolution changed to: "Fixed"
- status changed to: "Closed"