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
- 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.
- login: "jcw"
- mimetype: "text/plain"
- username: "jcw"