[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/profile.d



In linux.debian.devel, you wrote:
>On Sun, 24 Oct 1999, Darren Benham wrote:
>> >but I think this directory could be useful in some cases.
>> >
>> Figure out how to do it with the rest of the shells...
>
>I see no problem.
>Each login shells have some global profile.
>Packages which modify environment should have POSIX-like and CSH-like scripts.
>

Each shell (potentially) has a different syntax for setting environment
variables.  I know bash and tcsh are different.  A seperate /etc/profile.d
/etc/login.d  /etc/cshrc.d  directory for each shell would be ridiculous as
would a seperate file in one directory for each shell by each package that
had envirnment variables.  For one, that would require the package
maintainer to know the syntax for all possible shells.


Better, if we were to do something like this, would be to choose a common 
file syntax and have each shell maintainer process the file/fileset.


Reply to: