Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6cfc610ac233c55d101e689bd7692e44dbd32610
Ticket: 2094946fffffffffffffffffffffffffffffffff
glob behavior change in Tcl 8.4.14
User & Date: lvirden on 2008-09-05 12:55:58
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    From wiki.tcl.tk:
    
    [LV] There is a minor different in [glob] in Tcl 8.5. I don't see it mentioned in the changes file and can't put my finger on any specific thing in the ChangeLogs for it. Basically, in Tcl 7.6 through 8.4, glob would ''normalize'' a path name, dropping the final slash of a directory name:
    
    ===
    $ tclsh8.4
    % glob /home/lwv27/
    /home/lwv27
    % ^D
    
    but now
    
    $ tclsh8.5
    % glob /home/lwv27/
    /home/lwv27/
    % ^D
    
    ===
    '''[DGP]''' Bug reports like this belong in the Tracker, not here.
    
    [LV] I don't know if I am convinced it is a bug report. It is certainly a difference in behavior, but I myself don't see it as a bug.
    
    This minor difference actually resulted in a bug report over on [email protected] , where a function called listModules no longer works, because of the unexpected behavior. Look for the thread titled:
    recent TCL versions break "listModules" due to different "glob" behavior and result in // instead of / as directory-version separator.
    I suggested the person report it as a bug, and he was not comfortable doing so, indicating that it could very well be an intentional change.
    
    Based on your comment, I will indeed open a new ticket.  Thank you.
    
  4. foundin changed to: "obsolete: 8.5.4"
  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: "lvirden"
  10. subsystem changed to: "16. Commands A-H"
  11. title changed to: "glob behavior change between Tcl 8.4 and 8.5"
  12. type changed to: "Bug"