Re: annoyances that i have not mastered

[email protected]
Newsgroups gmane.linux.usability.annoyances
Message-ID <[email protected]>
On Mon, 25 Aug 2003, Robin Green wrote:

> On Mon, Aug 25, 2003 at 12:45:48AM +0100, [email protected] wrote:
> > Finally, the -s paramter to ln creates a symbolic link, -f forces
> > replacement of any pre-existing TARGET.
> 
> If there's already a link and it points to a directory, ln doesn't
> always work the way you'd expect. Thus, I've gotten in to the habit
> of always looking for and rm-ing existing links first. Slower, but
> guaranteed to do what you want.

Quite correct. If the target is a directory, or a link to a directory, then
the link is created *in* that directory. If there is no residue from the
TARGET after removing that directory from it, then the symlink will be named
the same as the object it links to.

I'd agree that this isn't entirely intuitive, but compatibility probably
requires that ln continues to work in this way.

Best Regards,
Alex.
-- 
Alex Butcher      Brainbench MVP for Internet Security: www.brainbench.com
Bristol, UK                      Need reliable and secure network systems?
PGP/GnuPG ID:0x271fd950                         <http://www.assursys.com/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.