Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 1998 00:29:33 +0900
From:      Shigio Yamaguchi <shigio@wafu.netgate.net>
To:        sbabkin@dcn.att.com
Cc:        shigio@wafu.netgate.net, hackers@FreeBSD.ORG
Subject:   Re: Improvemnet of ln(1). 
Message-ID:  <199807141528.IAA18558@hub.freebsd.org>
In-Reply-To: Message from sbabkin@dcn.att.com  of "Tue, 14 Jul 1998 09:35:40 -0400." <C50B6FBA632FD111AF0F0000C0AD71EEFF8B60@dcn71.dcn.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: sbabkin@dcn.att.com
> > > ln -s `pwd`/src/sys /tmp
> > > 
> > > Isn't it simpler ?
> > 
> > But it forces user to use absolute symbolic link.
> > 
> Do the relative symbolic links make any sense outside of subdirectory
> hierarchy ?
> Of course, you can do it as ../usr/src/sys and it may be useful in some
> cases but 
> would it make any sense here?

Do you mean a symbolic link including root directory is useless?
You are right. My example was bad.

How about this example?

	% ln -sr /usr/src/sys/kern/tty.c /usr/obj/usr/src/sys/kern/tty.c
	% ls -l !$
	lrwxrwxrwx  1 shigio  bin  33 Jul 14 23:56 /usr/obj/usr/src/sys/kern/tty.c ->
				../../../../../src/sys/kern/tty.c

This symbolic link is solved in the '/usr' subdirectory. So, you can mount
/usr file system at any point.
--
Shigio Yamaguchi (Freelance programmer)
	Mail: shigio@wafu.netgate.net, WWW: http://wafu.netgate.net/tama/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807141528.IAA18558>