Bash-3.0 symlink

Dennis J Perkins dperkins at
Sun Oct 15 09:28:38 PDT 2006

On Sun, 2006-10-15 at 08:32 -0700, Richard Caldwell wrote:
> Hi,
>     book version 6.0 chapter 5.29. After installing bash3.0 the following command is issued:
> ln -s bash /tools/bin/sh
> but immediately after this the bash-3.0 directory is removed! What's the point in 
> this symlink.? As I understand, it creates a link called '/tools/bin/sh' that points
> to bash in the current directory which is subsequently removed. After the bash 
> directory is removed, what does the link point to?
> RC

It's pointing to the bash in /bin.  The target's path is relative to the
link's directory, unless you include the absolute path of the target.  

More information about the lfs-support mailing list