Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 746bec3fd69741f76b9b387009aab9fda1657ae3
Ticket: 913536ffffffffffffffffffffffffffffffffff
windows: Glob returns [file normalize]'d paths
User & Date: p_samson on 2004-03-10 15:01:24
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OS: Windows/Cygwin
    
    % set a [file join / var tmp *]
    /var/tmp/*
    % set b [glob $a]
    {D:/cygwin/var/tmp/errors} D:/cygwin/var/tmp/p.log
    
    From the glob documentation (8.4.5), I expected:
    {/var/tmp/errors} /var/tmp/p.log
    
    So, without the windows style such as provided
    (as expected) by file normalize.
    % file normalize /var/tmp/errors
    D:/cygwin/var/tmp/errors
    
    This behaviour brokes a script designed on a Unix
    box:
    A [lsearch -exact] between a result of a
    [split [glob [file join ...]]] and a
    [file join ...]
    
    The glob introduces the windows drive but not
    the file join.
    
    It may be the normal behaviour. If so, I think
    it should be more clear in the doc.
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "p_samson"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "windows: Glob returns [file normalize]'d paths"
  11. type changed to: "Bug"