Skip to content
Tcl Source Code View Ticket
Login

View Ticket

file join <//machine> <shared_dir>

Closed / Invalid584549ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-21 16:24:30
file join return wrong value when join 
<//machine_name> and <shared_dir>, i.e
% file join //machine_name shared_dir
/machine_name/shared_dir

expected result is //machine_name/shared_dir !

"file join" works properly when first argument contains at 
least one more directory, i.e
% file join //machine_name/shared_dir1 share_dir2
//machine_name/shared_dir1/share_dir2

returns well formed result.

This is common problem both for Windows 2000 and 
Windows NT environment.


Thanks,
Moisei.
vincentdarleyplain2002-07-22 02:07:45
Logged In: YES 
user_id=32170

Please read the 'filename' page in the documentation.  '//machine_name' 
is not a valid UNC path and so the assumption is the extra slash is 
superfluous.

The basic problem is that //machine_name is simply not a "path" of any 
kind.  It is only meaningful as a path when it has an associated shared-
dir.
Log in (anonymous is fine) to add a comment.