Re: 2.0.33: "ln -sf" reacts strange on directories

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
15 Apr 1998 14:14:54 +0200


Harald Koenig <koenig@tat.physik.uni-tuebingen.de> writes:

|> I tried to convice them for quite a while that this was a _bad_ change
|> to make `ln' behave incompatiblely to other non-GNU UN*X systems (where
|> ln behaves as `-n' is set by default) but they still were/are happy
|> about that move:(

Just checked on SunOS 4.1.3, and ln -f -s behaves like GNU ln, and there
is no way to change that.

|> On Apr 15, Andreas Schwab wrote:

|>> No, it isn't. Use "ln -sfd" (-d -> no dereference). If the target is a
|>> directory then ln creates the link there.

|> RTFM: it's the `-n' option. from `ln --help' :

|> -d, -F, --directory hard link directories (super-user only)
|> -n, --no-dereference treat destination that is a symlink to a
|> directory as if it were a normal file

Oops, this was from stale memory :-(

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu