https://bugzilla.suse.com/show_bug.cgi?id=1219979 https://bugzilla.suse.com/show_bug.cgi?id=1219979#c26 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|REOPENED |RESOLVED --- Comment #26 from Dr. Werner Fink <werner@suse.com> --- (In reply to Chenzi Cao from comment #25)
(In reply to Jean-Claude Dole from comment #23)
Please compare https://doc.opensuse.org/documentation/leap/startup/html/book-startup/cha- adm-shell.html Table 14.1.1 Bash configuration files and Table 14.2: Bash configuration files for non-login shells
There is ambiguity about the choice of '/etc/profile.d' or '/etc/profile.local' The use of '/etc/profile.d' is not prohibited for BASH.
I assign it to this file's maintaner to to take a look at this, thanks.
And please feel free to reassign whenever necessary, thanks.
This was the source of my troubles.
More complete explanations would be welcome.
What is the problem with /etc/profile -- Do not modify this file, otherwise your modifications may be destroyed during your next update. /etc/profile.local -- Use this file if you extend /etc/profile /etc/profile.d/ -- Contains system-wide configuration files for specific programs ~/.profile -- Insert user specific configuration for login shells here the files /etc/profile, /etc/profile.local, and ~/.profile belongs to bourne shells like the bash, ksh, mksh, (d)ash ... whereas in the directory /etc/profile.d/ not only files for various bourne shells but also e.g. the tcsh are located. Those files are provides by packages as otherwise the /etc/profile or /etc/bash.bashrc or /etc/ksh.kshrc or /etc/csh.login or /etc/csh.cshrc has to modified for every package shell based feature. rpm -qf /etc/profile.d/*.sh -- read by /etc/profile rpm -qf /etc/profile.d/*.bash -- those files will be also read by e.g. /etc/bash.bashrc rpm -qf /etc/profile.d/*.csh -- (t)csh files read by /etc/csh.login rpm -qf /etc/profile.d/*.tcsh -- tcsh files read by /etc/csh.cshrc the name /etc/profile.d/ is historically yes, but it will not be renamed. -- You are receiving this mail because: You are on the CC list for the bug.