[YLUG] PERL5LIB
Patrick Dupre
pd520 at york.ac.uk
Mon Aug 3 19:24:51 UTC 2009
Hello Roger,
You are right, but PERL5LIB does not behave like that !
I am using bash (or sh), and PERL5LIB is just not exported like the
other variables, it appears to be resetted by gnome-terminal to a value
sitting is /etc/profile.d/atrpms.sh (it I understand right).
> On Mon, Aug 03, 2009 at 02:36:44PM +0100, Patrick Dupre wrote:
>
>> I wanted to modify PERL5LIB variable (which is easy) and then
>> I wanted to it exported when running a new gnome-terminal, but it
>> appears that ever gnome-terminal reset PERL5LIB to the
>> original value probably resulting from profile.d/atrpms.sh
>>
>> How can I control a lot better the PERL5LIB environment variable ?
>
> As you would for any environment variable, make sure it's exported
> into the environment in your shell's configuration file. You haven't
> told us what your shell is, so you should read the documentation for
> your shell. As an example, my zsh configuration is in ~/.zshrc,
> which includes lines such as
>
> export DEBEMAIL="Roger Leigh <rleigh at debian.org>"
>
> bash uses ~/.profile ~/.bashrc and ~/.bash_profile, and you can use
> similar syntax in them (see the documentation for which one to
> alter).
>
> If you want to modify it system wide, you can set it up with PAM
> (see /etc/security/pam_env.conf and possibly also /etc/environment)
> using pam_env.so in /etc/pam.d/). Probably set up automatically by
> your distribution.
>
>
> Regards,
> Roger
>
>
--
---
==========================================================================
Patrick DUPRÉ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: pd520 at york.ac.uk
==========================================================================
More information about the York
mailing list