Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-01-11
21:09 • Closed ticket [1093104fff]: file link -symbolic should not test for dest exists<... artifact: ef50a8e9b5 user: vincentdarley
2004-12-30
23:02 • Pending ticket [1093104fff]. artifact: 7fb40f872d user: dgp
04:35 • New ticket [1093104fff]. artifact: a8219ac2de user: coldstore

file link -symbolic should not test for dest exists

Closed / Duplicate1093104fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-12-30 04:35:06
Currently:

% file delete wilma fred
% file link -symbolic fred wilma
could not create new link "fred": target "wilma"
doesn't exist

This is neither necessary nor desireable.  It should be
possible to simply construct a dangling symlink,
because it is impossible to prevent symlinks dangling.

tcl also normalizes the symlink's destination and uses
that normalized form instead of the destination string
as given.

This isn't consistent with the unix ln -s command, nor
is it necessary, nor is it useful, because while it is
always possible to explicitly symlink to a fully
normalized path, the current implementation makes it
impossible to symlink to a non-absolute path. 
Furthermore, normalizing the dest path will remove any
symlinks in the path, which is not desirable behavior.
dgpplain2004-12-30 23:02:43
Logged In: YES 
user_id=80530


this is a dup of reports
833713 and 951964, right?
vincentdarleyplain2005-01-11 21:09:18
Logged In: YES 
user_id=32170

Yes, it is a duplicate.
Log in (anonymous is fine) to add a comment.