Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d171574b16eb68cb92768a1f906e295ac5245a85
Ticket: 2255235fffffffffffffffffffffffffffffffff
platform::shell::generic is broken
User & Date: uring on 2008-11-10 12:01:52
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    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
    
  4. foundin changed to: "obsolete: 8.5.5"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "uring"
  10. subsystem changed to: "69. Other"
  11. title changed to: "platform::shell::generic is broken"
  12. type changed to: "Bug"