Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 67afabbc37da2e69db5ae436f5d08a9419ba1c8b
Ticket: 2321713fffffffffffffffffffffffffffffffff
glob -join broken in 8.5
User & Date: sourceforgebenn on 2008-11-21 16:53:41
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The -join option of the glob command has a bug that inadvertently returns a double slash when joining on a drive's root directory.
    
    For example:
    
        glob -join c:/ *
    
    returns files in a form
    
         c://name1 ... c://nameN
    
    There should be only one slash. There was only one slash in Tcl 8.4 and prior versions.
    
    I only tested Tcl 8.5.2 and Tcl 8.5.5 and the bug appeared in both versions. The bug appeared in both Windows 2000 and Windows XP. No other environments were tested.
    
    Workaround: When the -join is instead replaced with
    
        glob [file join c:/ *]
    
    the resulting files have only one slash.
    
    
  4. foundin changed to: "None"
  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: "sourceforgebenn"
  10. subsystem changed to: "16. Commands A-H"
  11. title changed to: "glob -join broken in 8.5"
  12. type changed to: "Bug"