From owner-freebsd-hackers Fri Jul 3 09:36:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA18847 for freebsd-hackers-outgoing; Fri, 3 Jul 1998 09:36:28 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from elvis.vnet.net (elvis.vnet.net [166.82.1.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA18842 for ; Fri, 3 Jul 1998 09:36:25 -0700 (PDT) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by elvis.vnet.net (8.8.8/8.8.4) with ESMTP id MAA08001; Fri, 3 Jul 1998 12:36:10 -0400 (EDT) Received: from lakes.dignus.com (lakes [10.0.0.3]) by dignus.com (8.8.8/8.8.5) with ESMTP id MAA16608; Fri, 3 Jul 1998 12:57:52 -0400 (EDT) Received: (from rivers@localhost) by lakes.dignus.com (8.8.8/8.6.9) id MAA18898; Fri, 3 Jul 1998 12:29:35 -0400 (EDT) Date: Fri, 3 Jul 1998 12:29:35 -0400 (EDT) From: Thomas David Rivers Message-Id: <199807031629.MAA18898@lakes.dignus.com> To: drosih@rpi.edu, mike@smith.net.au Subject: Re: Variant Link implementation, continued Cc: hackers@FreeBSD.ORG, jkh@time.cdrom.com, rivers@dignus.com In-Reply-To: <199807030416.VAA03798@antipodes.cdrom.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > I think there would be less headaches all-around if symlinks did not > > key off environment variables, although I do think we'd want them to > > key off of something as simple to adjust as environment variables are. > > This expresses my opinion quite succinctly. Overloading the > environment space to also control variant links would be a Very Bad > Idea, simply because the risk of name collision is too high. > > Allowing links to indicate that they *should* be keyed off the > environment space, OTOH, isn't such a sin. eg: > > ${sysctl:hw.arch} and ${env:USER} > > but this creates a new union space with yet another different syntax. > > ${space=sysctl, mib=hw.arch} and ${space=env, var=USER} > > perhaps? > I like this idea (with perhaps a sysctl variable to name the default space if none is provided...) However, I'd like to ask the general syntax question... is there a set of letters from which to choose which will not violate POSIX semantics... That is, can't I, right now, create a file named "${FOO}", or just about anything? So, how do we choose this symlink syntax without potentially breaking something else? - Just curious - - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message