For Programmers: Free Programming Magazines  


Home > Archive > Tcl > July 2004 > file link -relative









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author file link -relative
Rene Meyer

2004-07-30, 8:56 am

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com