Date: Fri, 2 Aug 2002 18:47:57 -0700 From: Adam Weinberger <adam@vectors.cx> To: Steve Mazerski <smazerski@yahoo.co.jp> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Why hard, not soft links? Message-ID: <20020803014757.GC9210@vectors.cx> In-Reply-To: <200208030344.27552.smazerski@yahoo.co.jp> References: <200208030344.27552.smazerski@yahoo.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
if /usr/bin/nvi were a softlink to /usr/bin/vi, and you moved /usr/bin/vi to /usr/bin/myeditor, then /usr/bin/nvi wouldn't point to the correct place anymore, and would die. furthermore, a softlink implies "this is a shortcut to running this command," whereas a hardlink implies "this is another name for this command." FURTHERMORE, does $0 get set to the name of the calling softlink? -Adam >> (08.02.2002 @ 1844 PST): Steve Mazerski said, in 0.4K: << > > Is there any particular reason why FreeBSD makes frequent use > of hard links instead of soft links when defining "alternative" > names for commands and other files? > > e.g. /usr/bin/nvi and /usr/bin/vi are the same file. > > Linux distros tend to use soft links for the same thing. > > Just wondering > > S.Mazerski > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > >> end of "Why hard, not soft links?" from Steve Mazerski << -- "Oh good, my dog found the chainsaw." -Lilo, "Lilo & Stitch" Adam Weinberger adam@vectors.cx http://vectors.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020803014757.GC9210>