Comment # 22 on bug 1219979 from Jean-Claude Dole
(In reply to Dr. Werner Fink from comment #19)
> Created attachment 874405 [details]
> bash.bashrc.local and profile.local
> ...
> ...
> ...

To put it simply I decided one day to make a list of variables that I used
often. With this list I was sure to always use the same name for the same
object.
I applied the same principle for functions that I often used; which prevented
me from reinventing the wheel.
On the other hand, I decided not to differentiate between different types of
bash sessions; so I only have two definition files, one for variables and one
for functions. To continue in simplicity I decided to make this organization
available as soon as linux is powered on even before the user is logged in.

I have made some test with other distributions on VBOX virtual machine.
Some distro ignore my function definitions without errors if sourced in
/etc/profile.d. No messages in journald concerning the infamous '%%'. It seems
that systemd "clear environment" in that case. Messages sent to logger show
that function definitions has been sourced without errors but does not survive.

Regarding Leap 15.5, putting stuff in /etc.bashrc.local and in
/etc/profile.local seems to satisfy my need. I just need to make sure that
things won’t be sourced more than once.


You are receiving this mail because: