From owner-freebsd-questions Wed Jan 3 23:20:29 2001 From owner-freebsd-questions@FreeBSD.ORG Wed Jan 3 23:20:27 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 4F90D37B400 for ; Wed, 3 Jan 2001 23:20:27 -0800 (PST) Received: from rfx-64-6-211-149.users.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 3 Jan 2001 23:18:39 -0800 Received: (from cjc@localhost) by rfx-64-6-211-149.users.reflexcom.com (8.11.0/8.11.0) id f047KIc16443; Wed, 3 Jan 2001 23:20:18 -0800 (PST) (envelope-from cjc) Date: Wed, 3 Jan 2001 23:20:18 -0800 From: "Crist J. Clark" To: groggy@iname.com Cc: freebsd-questions Subject: Re: ln bug? Message-ID: <20010103232017.G95729@rfx-64-6-211-149.users.reflexco> Reply-To: cjclark@alum.mit.edu References: <200101032338.XAA07211@groggy.anc.acsalaska.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200101032338.XAA07211@groggy.anc.acsalaska.net>; from groggy@iname.com on Wed, Jan 03, 2001 at 11:38:39PM +0000 Sender: cjc@rfx-64-6-211-149.users.reflexcom.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 03, 2001 at 11:38:39PM +0000, groggy@iname.com wrote: > is this a bug in "ln"? > > if i am in a directory with a file xxx: > > ln -s xxx /tmp/xxx > > will create link /tmp/xxx, but it will point to itself in /tmp. > ln is not pointing the link to to xxx in the current directory > as specified/intended on the command line. doesn't seem right. No, that's right. When making symbolic links, the first argument is the _string_ that the link points to. It is better to not think of symbolic links pointing to a specific file. Rather, when a symbolic link is processed as part of a path, the string value of the link is substituted. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message