Maybe misprint in file tcl.html (LFS Ver. 6.3-20070813)

Dan Nicholson dbn.lists at
Wed Sep 5 06:14:23 PDT 2007

On 9/5/07, muskoka at <muskoka at> wrote:
> Version of LFS book: LFS Ver.  6.3-20070813
> Chapter                  : 5.8.Tcl-8.4.14
> file (on CD-LIVE)     : /usr/share/LFS-BOOK-SVN-HTML/chapter05/tcl.html
> line                         : 129
> actually:
> <kbd class="command">ln -sv tclsh8.4 /tools/bin/tclsh</kbd>
> maybe (?):
> <kbd class="command">ln -sv /tools/bin/tclsh8.4 /tools/bin/tclsh</kbd>
>                                                  ^^^^^^^

This is correct and how ln works. Since the first argument is not
absolute, it is relative directory of the link name. In other words,
/tools/bin/tclsh will link to a tclsh8.4 in the same directory, which
happens to be /tools/bin/tclsh8.4. By not making the first argument an
absolute path, it means that we could just mv tclsh and tclsh8.4 to a
different directory and the symlink would still be correct.

I suggest reading the ln man page and playing around with the
different forms of links. It's a strange beast at first.


More information about the lfs-support mailing list