Subject: Re: Setting global enviornmental variables
To: Stuart Brooks <stuartb@cat.co.za>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 07/24/2001 21:02:39
On Tue, Jul 24, 2001 at 02:30:49PM +0200, Stuart Brooks wrote:
> How would you go about setting an environmental variable globally in the
> system? I am trying to globally set a variable which contains the netbsd
> release version, ie. "1.4.1" etc.
> 
> I know that for csh users you could add 'setenv BSDVER `uname -r`' into
> /etc/csh.cshrc, or alternatively into the .login or .cshrc scripts in the
> individual users' directories, but that doesn't solve the problem. I have
> tried adding a setenv to rc.local with no luck ...

Well, you have to add it to /etc/csh.cshrc, or /etc/profile.

> 
> How are variables such as MACHTYPE, OSTYPE etc. actually set? I can't find
> any references in /etc or /root. Any pointers would be appreciated.

These are built-in to the shell

--
Manuel Bouyer <bouyer@antioche.eu.org>
--