file link -relative

From: Rene Meyer (rene.meyer_at_sturmit.de)
Date: 07/30/04


Date: Fri, 30 Jul 2004 13:10:51 +0200

Hallo,

do we need a "file link -relative" option or do i missing something.
I would like to create a relative link like:
  rene@digedag:~> touch a
  rene@digedag:~> ln -s a b
  rene@digedag:~> ls -l b
  lrwxrwxrwx 1 rene site 1 2004-07-30 12:59 b -> a
but tcl gives me:
  rene@digedag:~> tclsh
  % file link -symbolic c a
  a
  % ls -l c
  lrwxrwxrwx 1 rene site 12 2004-07-30 13:00 c -> /home/rene/a
The absolute path is then a problem on mounted directories.

A "file link -relative" option should only supress the call of
"Tcl_FSConvertToPathType()" in the "Tcl_FileObjCmd()" function.
Or is there a other tcl only solution?

Rene



Relevant Pages

  • Re: need substitute of "file link" command in older versions of Tcl
    ... file link was a part of Tcl 8.4.0. ... there's no guarantee that your use of file link is ... going to work the same on Windows as Linux - some versions of Windows ... Windows have varying degrees of support. ...
    (comp.lang.tcl)
  • Re: Vista inconsistency(?)
    ... not sure how Tcl's 'file link' and 'file islink' interact with those, ... You must not care about this, because TCL sees the real name. ... Use a command window to list the real names (Commands: ... The magic happens using "desktop.ini" files in each coincerned folder: ...
    (comp.lang.tcl)
  • Re: Supress Windows Error Message
    ... This tool causes a windows exception window to pop up if a file ... is corrupt (File Link is missing or such things). ...
    (microsoft.public.vb.winapi)