Overview
| Artifact ID: | 94a65e3f62e3bcdcd131004ea7650ef151fde5b6 |
|---|---|
| Ticket: | 218064ffffffffffffffffffffffffffffffffff
file join c: "program files" on Windows |
| User & Date: | nobody on 2000-10-26 00:52:47 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "final: 8.0.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "37. File System"
- title changed to: "file join c: "program files" on Windows"
- type changed to: "Bug"