|
2001-04-14
| ||
| 02:24 | • Ticket [218064ffff] file join c: "program files" on Windows status... artifact: 956ef10402 user: dgp | |
|
2000-10-26
| ||
| 08:13 | • Closed ticket [218064ffff]. artifact: 375e83dc69 user: welch | |
| 00:52 | • New ticket [218064ffff]. artifact: 94a65e3f62 user: nobody | |
file join c: "program files" on Windows
Closed / Fixed218064ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:47
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
welch Closed ticket [218064ffff].
[History diff]2000-10-26 08:13:45
dgp Ticket [218064ffff]: 4 changes
[History diff]2001-04-14 02:24:09
Log in (anonymous is fine) to add a comment.