[PC-BSD Support] Can't set environmental variables that are in .profile

Dru Lavigne dru.lavigne at att.net
Fri Oct 28 13:10:46 PDT 2011

> Date: Fri, 28 Oct 2011 13:48:36 -0400
> From: "Martes Wigglesworth" <mailinglistmember at mgwigglesworth.net>
> To: PC-BSD mailing list <support at lists.pcbsd.org>
> Subject: [PC-BSD Support] Can't set environmental variables
> that are
>     in    .profile
> Message-ID: <4EAAEAF4.7080402 at mgwigglesworth.net>
> Content-Type: text/plain; charset=ISO-8859-1;
> format=flowed
> Greetings list.
> I have been working on trying to get my Java_HOME variable
> set using 
> /etc/profile, and it seems that that variables are ignored
> when put into 
> /etc/profile or ~/.profile
> Where should I set these variables for use by developers
> working on the 
> system?
> (I have been using linux too long, and have gotten used to
> plopping some 
> executable script into /etc/profile.d . )

It depends upon the shell (type "env" to find out the current shell). If it is not reading .profile, it sounds like the shell is csh/tcsh, meaning that the setting would go into .cshrc.




More information about the Support mailing list