|
2008-11-11
| ||
| 00:58 | • Closed ticket [2255235fff]: platform::shell::generic is broken plus 3 other ... artifact: 92cda0be97 user: andreas_kupries | |
| 00:58 | • Ticket [2255235fff]: 4 changes artifact: 8e54f6cce4 user: andreas_kupries | |
| 00:41 | • Ticket [2255235fff]: 4 changes artifact: d7f74425d1 user: andreas_kupries | |
|
2008-11-10
| ||
| 20:14 | • Ticket [2255235fff]: 3 changes artifact: b8f9b66bd0 user: dkf | |
| 12:01 | • New ticket [2255235fff]. artifact: d171574b16 user: uring | |
platform::shell::generic is broken
Closed / Fixed2255235fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-11-10 12:01:52
the following 2 commands are broken:
platform::shell::generic
platform::shell::identity
see file: library/platform/shell.tcl - installed
as a tcl-module in tcl8/8.4/shell-1.1.3.tm
actually, the bug is located in the 3rd code line
of the internal procedure ::platform::shell::LOCATE
foreach {cmd base} $pl break
this line tries to extract the pathname of the
sourced module platform-1.0.3.tm, which is expected
to be the 2nd item of the list returned by the
previous command
[package ifneeded platform [package require platform]]
nowadays we find something more complex like:
"package provide platform 1.0.3; source -encoding ...".
so, variable base becomes "provide", which is not what
we want.
suggested PATCH: use
set base [lindex $pl end]
to get the filepath.
regards,
Ulrich
dkf Ticket [2255235fff]: 3 changes
[History diff]2008-11-10 20:14:57
andreas_kupriesplain2008-11-11 00:41:04
Thanks Ulrich. You are quite right. The latest changes to the provide command generated by tm.tcl in the core require us to update and change the implementation of LOCATE as well. I will do that now and add a cross-reference to tm.tcl so that this will not be forgotten should tm.tcl be changed again in the future.
andreas_kupriesplain2008-11-11 00:58:37
Both HEAD and 8.5 branch head are now updated with the suggested patch. Bumped package to 1.1.4, and updated docs and Makefiles for that as well.
andreas_kupries Closed ticket [2255235fff].
[History diff]2008-11-11 00:58:45
Log in (anonymous is fine) to add a comment.