Tcl Source Code

View Ticket
Login
Ticket UUID: 1093104
Title: file link -symbolic should not test for dest exists
Type: Bug Created on: 2004-12-30 04:35:06
Submitter: coldstore Assigned to: vincentdarley
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2005-01-11 21:09:18
Status: Closed Closed by: vincentdarley
Resolution: Duplicate Closed on: 2005-01-11 14:09:18
Version: obsolete: 8.4.9
Description:
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.
User Comments:
dgp added on 2004-12-30 23:02:43:
Logged In: YES 
user_id=80530


this is a dup of reports
833713 and 951964, right?

vincentdarley added on 2005-01-11 21:09:18:
Logged In: YES 
user_id=32170

Yes, it is a duplicate.