Date: Sat, 11 Jul 1998 23:49:22 +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: <199807111448.HAA07600@hub.freebsd.org> In-Reply-To: Message from sbabkin@dcn.att.com of "Fri, 10 Jul 1998 16:18:26 -0400." <C50B6FBA632FD111AF0F0000C0AD71EEFF8B5F@dcn71.dcn.att.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, > > [Problem] > > > > Ln(1) with -s option makes illegal symbolic link in some case. > > For example, > > > > (Both '/usr/src/sys' and '/tmp' are real directories.) > > > > % cd /usr > > % ln -s src/sys /tmp > > % ls -l /tmp/sys > > lrwxrwxrwx 1 shigio wheel 7 Jul 11 02:03 /tmp/sys -> src/sys > > % cd /tmp/sys > > /tmp/sys: No such file or directory. > > > > Symbolic link '/tmp/sys' has illegal value, so we cannot move there. > > Above behavior is not desireble in almost case, I think. > > > > [Solution] > > > ln -s `pwd`/src/sys /tmp > > Isn't it simpler ? But it forces user to use absolute symbolic link. There are two important issue, I think. o Is it right symbolic link? o Can we make a choice whether absolute or relative symbolic link? -- 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?199807111448.HAA07600>