Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 731655b28e255bb4633a23b5574fd821ad1fc404
Ticket: 678662ffffffffffffffffffffffffffffffffff
Tcl needs 'file normalize -full' and similar C api.
User & Date: jcw on 2003-02-05 01:37:11
Changes

  1. icomment:
    Logged In: YES 
    user_id=1983
    
    Yes, this is indeed (on purpose) naively wrong:
    - file normalize [file readlink foo/bar]'
    
    But the solution you offer does not work, I think:
    - file normalize [file join [pwd] [file readlink foo/bar]]
    
    Explanation: readlink will return "../tclkit".  Join that to pwd, which is try, and you end up with /home/shared/tclkit/tclkit
    
    This is not rigth either: the point is that symlinks resolve relatively to where *they* are, not to what my pwd happens to be.  This is the essence of the whole problem, IMO.
    
    Methinks we may need a better file normalize (or perhaps "file normalize -full") which does symlink expansion.  This is all solvable, but I'm afraid the current situation will trip people.  Well, at least one person... me.  Heh.
    
    
  2. login: "jcw"
  3. mimetype: "text/plain"
  4. username: "jcw"