Artifacts Associated With Ticket 9eac2d8a8d
Ticket change [7641c74042] (rid 171389) by anonymous on 2019-05-07 22:07:05:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Following up on the conversation at IRC: «dkf» We used to do a nonsense parse where if the first argument started with a digit (IIRC), Tcl would assume that it was a level _even if that meant there were no other arguments_ (which was an error case) «dkf» it shouldn’t ever consider an argument to be a level if there’s only one argument In current 8.7, this holds but not for a single arg starting with a hash: % namespace eval ::ns1 { uplevel {#0 b}}} bad level "#0 b" should read: invalid command "#0" «dkf» ’tis a bug «dkf» in 8.7 - foundin initialized to: "core-8-branch"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "d4d1d8192a46acf2c7d58cddc1040ecdbc9c9d77"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "22. [proc] and [uplevel]"
- title initialized to:
uplevel: level sniffing for single arg, default-level case (absolute level specifier only)
- type initialized to: "Bug"
Ticket change [50200fe803] (rid 171404) by dgp on 2019-05-08 18:00:00:
- icomment:
For some history, see https://core.tcl-lang.org/tcl/tktview/2673163 https://core.tcl-lang.org/tcl/info/1c6d19544d18c36a
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [cb7dbe76da] (rid 171411) by dgp on 2019-05-08 18:50:07:
- icomment:
The documentation for [uplevel]: https://www.tcl-lang.org/man/tcl8.7/TclCmd/uplevel.htm clearly states " Level cannot be defaulted if the first command argument starts with a digit or #. " So this is not a bug, but it is a report of absolutely boneheaded behavior. We should TIP the fix, using the fact that we already did this for [upvar] as justification. - login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [46fed0a6ac] (rid 186867) by pooryorick on 2020-09-19 17:28:27:
- icomment:
See ticket [b9ecf3ce98] for a backwards-compatible solution that addresses most practical concerns by interpreting the first argument as a script if it is the only argument and is a list containing more than one item.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- icomment: