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. This was the source of my troubles. More complete explanations would be welcome.