From owner-freebsd-questions Sun Jun 15 16:37:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA01073 for questions-outgoing; Sun, 15 Jun 1997 16:37:47 -0700 (PDT) Received: from pooh.cdrom.com (pooh.cdrom.com [204.216.28.222]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA01058 for ; Sun, 15 Jun 1997 16:37:44 -0700 (PDT) Received: (from r3cgm@localhost) by pooh.cdrom.com (8.8.5/8.7.3) id QAA04048 for questions@freebsd.org; Sun, 15 Jun 1997 16:36:56 -0700 (PDT) From: Christopher G Mann Message-Id: <199706152336.QAA04048@pooh.cdrom.com> Subject: ln behavior To: questions@freebsd.org Date: Sun, 15 Jun 1997 16:36:55 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Greetings... I'm curious why the "-f" parameter for "ln" does not work with directories under FreeBSD 2.2.x. I.e. Files work... [hornet : r3cgm] ~/test - touch file1 file2 -rw-r--r-- 1 r3cgm r3cgm 0 Jun 15 15:32 file1 -rw-r--r-- 1 r3cgm r3cgm 0 Jun 15 15:32 file2 [hornet : r3cgm] ~/test - ln -s file1 file.symbolic lrwxr-xr-x 1 r3cgm r3cgm 5 Jun 15 15:32 file.symbolic@ -> file1 -rw-r--r-- 1 r3cgm r3cgm 0 Jun 15 15:32 file1 -rw-r--r-- 1 r3cgm r3cgm 0 Jun 15 15:32 file2 [hornet : r3cgm] ~/test - ln -fs file2 file.symbolic lrwxr-xr-x 1 r3cgm r3cgm 5 Jun 15 15:33 file.symbolic@ -> file2 -rw-r--r-- 1 r3cgm r3cgm 0 Jun 15 15:32 file1 -rw-r--r-- 1 r3cgm r3cgm 0 Jun 15 15:32 file2 But Directories don't... [hornet : r3cgm] ~/test - mkdir dir1 dir2 drwxr-xr-x 2 r3cgm r3cgm 512 Jun 15 15:34 dir1/ drwxr-xr-x 2 r3cgm r3cgm 512 Jun 15 15:34 dir2/ [hornet : r3cgm] ~/test - ln -s dir1 dir.symbolic lrwxr-xr-x 1 r3cgm r3cgm 4 Jun 15 15:34 dir.symbolic@ -> dir1 drwxr-xr-x 2 r3cgm r3cgm 512 Jun 15 15:34 dir1/ drwxr-xr-x 2 r3cgm r3cgm 512 Jun 15 15:34 dir2/ [hornet : r3cgm] ~/test - ln -fs dir2 dir.symbolic lrwxr-xr-x 1 r3cgm r3cgm 4 Jun 15 15:34 dir.symbolic@ -> dir1 <-- Bzzt! drwxr-xr-x 2 r3cgm r3cgm 512 Jun 15 15:34 dir1/ drwxr-xr-x 2 r3cgm r3cgm 512 Jun 15 15:34 dir2/ I can't seem to find anything in the man pages that indicates why ln would behave this way. Looking forward to your reply.. -- Christopher G. Mann - r3cgm@cdrom.com Walnut Creek CDROM