[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

symlink weirdness

From: Roger Dahl
Subject: symlink weirdness
Date: 13 Sep 2004 17:11:56 -0700

If your current directory is A and you want to create a relative
symlink to a file in directory B in directory C, you need to type the
path as it would look from C, not from A.

Though I understand that this makes 'ln' very simple (it just copies
the argument into the link file), it doesn't make sense from a users
perspective. When I'm in A, I can 'cp' from B to C without figuring
out what the path to C will look like from B. 'cp -s' is even worse --
it can only make links in the current directory.

This oddity complicates writing scripts that create symlinks. We need
more intelligent 'ln' and 'cp -s', that, given paths from A to B and
from A to C can create links between B and C.

Any thoughts?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]