Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 94a65e3f62e3bcdcd131004ea7650ef151fde5b6
Ticket: 218064ffffffffffffffffffffffffffffffffff
file join c: "program files" on Windows
User & Date: nobody on 2000-10-26 00:52:47
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1537 Bug
    Version: 8.0.5
    SubmitDate: '1999-03-18'
    LastModified: '1999-12-04'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    OS: All Windows
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-12-04'
    
    
    Name:
    John Ellson
    
    ReproducibleScript:
        if {$tcl_platform(os) == "Windows NT"} {
           set EDIT [file join c: "program files" "windows nt" accessories
        wordpad]
        } else {
           set EDIT [file join c: "program files" accessories wordpad]
        }
        exec $EDIT
    
    ObservedBehavior:
        Works on Windows NT, but not on Windows 95.
        
        file join c: "program files"    misses the "\" after "c:"
    
    DesiredBehavior:
        file join should be platform independent
    
    Talking with Stanton, this is actually the correct behavior,
    and with 8.2 both NT and Win9* behave the same:
        file join c: a
    =>  c:a
    
    This is because c: has a special and different meaning on
    Windows than c:\.  The first is volumerelative, the next
    absolute (use file pathtype).  You would get even different
    behavior on a Mac.  volumerelative means that c:a refers to
    the file/dir 'a' in the cwd of drive c: (in Windows, each
    drive has its own cwd). 
    -- 12/04/1999 hobbs
    
  4. foundin changed to: "final: 8.0.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "37. File System"
  10. title changed to: "file join c: "program files" on Windows"
  11. type changed to: "Bug"