On 8/5/07, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > Dan Nicholson wrote: > > > I'd suggest always using -n when making directory symlinks. > > Normally, for scripting purposes, yes. And it may be useful for the CD > scripts. > > But if we're trying to follow the book here precisely, then perhaps not. > At that point in the book there should definitely *not* be a > /tools/lib64 symlink. Having a -v switch is more useful there because > then you can see if the link was made incorrectly immediately.
But the book should be using -n in that case, too. For the old case of ln -sv $LFS/tools / it will fail if /tools already exists since the target name (tools) is created in the directory (/). This is the third form in ln(1). But here you're using the first form (specifying target and link), and it won't fail the same way. It should be ln -svn lib /tools/lib64 This way, both commands will fail if the symlink already exists instead of creating a wrong link. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/livecd FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
