"Wu Jianglin" <[EMAIL PROTECTED]> writes:

> what i want is to override the existent symbol link java.

You might try the -T (--no-target-directory) option of GNU ln 5.3.0
or later.

> it does work on others unix platform.

Which Unix platform was that?  Solaris 10 'ln' behaves like GNU ln
here.  For example:

$ mkdir a b
$ ln -s a s
$ ls -l
total 6
drwxrwxr-x   2 eggert   faculty      512 Dec  5 22:47 a
drwxrwxr-x   2 eggert   faculty      512 Dec  5 22:47 b
lrwxrwxrwx   1 eggert   faculty        1 Dec  5 22:47 s -> a
$ ln -sf b s
$ ls -l . a
.:
total 6
drwxrwxr-x   2 eggert   faculty      512 Dec  5 22:47 a
drwxrwxr-x   2 eggert   faculty      512 Dec  5 22:47 b
lrwxrwxrwx   1 eggert   faculty        1 Dec  5 22:47 s -> a

a:
total 2
lrwxrwxrwx   1 eggert   faculty        1 Dec  5 22:47 b -> b


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to