Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 19aa99bc1e835fc53c8b0e7851be662c824e877c
Ticket: 833713ffffffffffffffffffffffffffffffffff
Creating relative links with "file link .." comman
User & Date: hemanglavana on 2003-12-12 00:49:02
Changes

  1. icomment:
    Logged In: YES 
    user_id=81875
    
    On unix systems, "~/foo" is first expanded by the shell
    before passing it onto the link command. So such files will
    have absolute paths, see below:
    
    godel:271> ln -s ~/foo bar
    godel:272> ls -l bar
    lrwxrwxrwx   1 hlavana  eng           18 Dec 11 10:20 bar ->
    /users/hlavana/foo
    godel:273> 
    
    I have verified that your patch work correctly for relative
    links. As for the ~ chars, it should expand into absolute
    paths, otherwise on unix the link is not created properly:
    
    hlavana-u5:165> ./tcltk/bin/tclsh8.4
    % file link -symbolic foo ~/ddts
    ~/ddts
    % cat foo
    cat: cannot open foo
    child process exited abnormally
    % file exists foo
    0
    % file exists ~/ddts
    1
    % exit
    hlavana-u5:166> ls -l foo 
    lrwxrwxrwx   1 hlavana  eng8           6 Dec 11 12:41 foo ->
    ~/ddts
    hlavana-u5:167> cat foo
    cat: cannot open foo
    hlavana-u5:168>
    
    As you can see, ~/ddts is a valid file but foo not exist.
    
    
  2. login: "hemanglavana"
  3. mimetype: "text/plain"
  4. username: "hemanglavana"