On Wed, May 28, 2008 at 11:46 AM, Nick Pilon <[EMAIL PROTECTED]> wrote:

> On Wed, May 28, 2008 at 2:37 AM, Sorin Ionescu <[EMAIL PROTECTED]>
> wrote:
> > It does not work like that. /etc/profile must be sourced every time at
> > login. That's what bash does because /etc/profile.d/* is sourced by
> > /etc/profile. In that folder applications that need environmental
> > variables install scripts to set them. That's why you have to relogin
> > or resource /etc/profile after you install java, mozilla, et al.
>
> I'm curious - how do other non-sh-like shells like csh handle this?


At least on Gentoo, the distribution provides scripts (python in this case)
which construct both a sh-like /etc/profile, and a csh-like /etc/profile.csh
from the various broken out files. Further, shell-specific scripts can be
placed in profile.d/* with appropriate extensions: .sh files are read by
bash start-up scripts, and .csh by csh derivative shells.

My solution was to hand-duplicate the functionality of the profile.d/*.sh
scripts, and use my own tool to handle the auto-generated conten in
/etc/profile.

-Chandler



>
>
> --
> -Nick Pilon
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to