From owner-freebsd-questions Sat Jul 8 3: 8:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rz.uni-ulm.de (sirius-ether.rz.uni-ulm.de [134.60.1.36]) by hub.freebsd.org (Postfix) with ESMTP id 767E937B9C3 for ; Sat, 8 Jul 2000 03:08:33 -0700 (PDT) (envelope-from siegbert.baude@gmx.de) Received: from gmx.de (lilith.wohnheim.uni-ulm.de [134.60.106.64]) by mail.rz.uni-ulm.de (8.9.3/8.9.3) with ESMTP id MAA16617 for ; Sat, 8 Jul 2000 12:08:31 +0200 (MEST) Message-ID: <3966FD9F.E3314796@gmx.de> Date: Sat, 08 Jul 2000 12:08:31 +0200 From: Siegbert Baude X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.0-STABLE i386) X-Accept-Language: de, en MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: Replacing symbolic link to directory Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I wonder why the following isn't working: su-2.03# mkdir d1 d2 su-2.03# ln -vs d1 d3 d3 -> d1 su-2.03# ls -l total 2 drwxr-xr-x 2 root wheel 512 8 Jul 11:56 d1/ drwxr-xr-x 2 root wheel 512 8 Jul 11:56 d2/ lrwxr-xr-x 1 root wheel 2 8 Jul 11:56 d3@ -> d1 su-2.03# ln -fvs d2 d3 d3/d2 -> d2 su-2.03# ls -l total 2 drwxr-xr-x 2 root wheel 512 8 Jul 11:56 d1/ drwxr-xr-x 2 root wheel 512 8 Jul 11:56 d2/ lrwxr-xr-x 1 root wheel 2 8 Jul 11:56 d3@ -> d1 su-2.03# So nothing has been changed by "ln -fvs d2 d3". I would have expected it to behave exactly like: su-2.03# unlink d3 su-2.03# ll total 2 drwxr-xr-x 2 root wheel 512 8 Jul 11:56 d1/ drwxr-xr-x 2 root wheel 512 8 Jul 11:56 d2/ su-2.03# ln -vs d2 d3 d3 -> d2 su-2.03# ll total 2 drwxr-xr-x 2 root wheel 512 8 Jul 11:56 d1/ drwxr-xr-x 2 root wheel 512 8 Jul 11:56 d2/ lrwxr-xr-x 1 root wheel 2 8 Jul 11:57 d3@ -> d2 su-2.03# Because in the man-page of ln there are the following lines: The options are as follows: -f Unlink any already existing file, permitting the link to occur. -s Create a symbolic link. -v Cause ln to be verbose, showing files as they are processed. What ist the meaning of the output: d3/d2 -> d2 ? BTW, the same procedure with normal files works just as expected. Puzzled Siegbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message